Skip to content

Conversation

@dariofaccin
Copy link
Contributor

@dariofaccin dariofaccin commented Dec 3, 2025

This PR introduces rootless platform-component workload and charms.
The workload container is run with user ID 584792 (which in the rock OCI image is mapped to user _daemon_).
The charm container is run with user juju, with static ID 170.
The PR includes integration tests to assert that the security context of each container in the pod is correct.

Storage mounts in charm

This PR adds two new storages, named config and logos, in the charm metadata; these storages are then mounted in the workload container under the /etc/config and /src/apps/default/static/assets/logos/ paths (respectively).
This addition is necessary since the workload is required to write config files and logos on the filesystem, and pebble is not running as root anymore, causing the operation to fail otherwise.
This change allows to remove hardcoded config and logos paths in the charm code.

This PR closes #520.

@github-actions github-actions bot added the Libraries: Out of sync The charm libs used are out-of-sync label Dec 3, 2025
@dariofaccin dariofaccin marked this pull request as draft December 3, 2025 09:02
@dariofaccin dariofaccin force-pushed the KF-8210-unprivileged-charm branch from f52280b to 02ffd44 Compare December 3, 2025 09:06
@dariofaccin dariofaccin force-pushed the KF-8210-unprivileged-charm branch from 619eef6 to aaaede0 Compare December 3, 2025 18:12
@dariofaccin dariofaccin marked this pull request as ready for review December 3, 2025 18:13
Copy link
Contributor

@MattiaSarti MattiaSarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: as for most charms, there are no other workloads in addition to the charms' ones, already configured via metadata.yaml

Signed-off-by: Dario Faccin <[email protected]>
@dariofaccin dariofaccin merged commit 115c2fb into main Dec 5, 2025
22 checks passed
@dariofaccin dariofaccin deleted the KF-8210-unprivileged-charm branch December 5, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Libraries: Out of sync The charm libs used are out-of-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unprivileged configuration and tests for the Notebook operators charm

4 participants