Skip to content

Commit 1c2a038

Browse files
committed
feat: run workload and charm as unprivileged user
Signed-off-by: Dario Faccin <[email protected]>
1 parent 1851947 commit 1c2a038

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charms/jupyter-controller/metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ issues: https://github.com/canonical/notebook-operators/issues
88
containers:
99
jupyter-controller:
1010
resource: oci-image
11+
uid: 584792
12+
gid: 584792
1113
resources:
1214
oci-image:
1315
type: oci-image
@@ -23,3 +25,4 @@ requires:
2325
logging:
2426
interface: loki_push_api
2527
optional: true
28+
charm-user: non-root

charms/jupyter-ui/metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ issues: https://github.com/canonical/notebook-operators/issues
88
containers:
99
jupyter-ui:
1010
resource: oci-image
11+
uid: 584792
12+
gid: 584792
1113
resources:
1214
oci-image:
1315
type: oci-image
@@ -59,3 +61,4 @@ requires:
5961
logging:
6062
interface: loki_push_api
6163
optional: true
64+
charm-user: non-root

0 commit comments

Comments
 (0)