Skip to content

Commit dcb7e79

Browse files
committed
drop all capabilities and enable RuntimeDefault seccomp profile for more SecurityContext hardening
1 parent 41f2391 commit dcb7e79

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

jupyterhub/values.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,14 @@ hub:
9191
podSecurityContext:
9292
runAsNonRoot: true
9393
fsGroup: 1000
94+
seccompProfile:
95+
type: "RuntimeDefault"
9496
containerSecurityContext:
9597
runAsUser: 1000
9698
runAsGroup: 1000
9799
allowPrivilegeEscalation: false
100+
capabilities:
101+
drop: ["ALL"]
98102
lifecycle: {}
99103
loadRoles: {}
100104
services: {}
@@ -202,6 +206,10 @@ proxy:
202206
runAsUser: 65534 # nobody user
203207
runAsGroup: 65534 # nobody group
204208
allowPrivilegeEscalation: false
209+
capabilities:
210+
drop: ["ALL"]
211+
seccompProfile:
212+
type: "RuntimeDefault"
205213
image:
206214
name: quay.io/jupyterhub/configurable-http-proxy
207215
# tag is automatically bumped to new patch versions by the
@@ -256,6 +264,10 @@ proxy:
256264
runAsUser: 65534 # nobody user
257265
runAsGroup: 65534 # nobody group
258266
allowPrivilegeEscalation: false
267+
capabilities:
268+
drop: ["ALL"]
269+
seccompProfile:
270+
type: "RuntimeDefault"
259271
image:
260272
name: traefik
261273
# tag is automatically bumped to new patch versions by the
@@ -307,6 +319,10 @@ proxy:
307319
runAsUser: 65534 # nobody user
308320
runAsGroup: 65534 # nobody group
309321
allowPrivilegeEscalation: false
322+
capabilities:
323+
drop: ["ALL"]
324+
seccompProfile:
325+
type: "RuntimeDefault"
310326
image:
311327
name: quay.io/jupyterhub/k8s-secret-sync
312328
tag: "set-by-chartpress"
@@ -488,6 +504,10 @@ scheduling:
488504
runAsUser: 65534 # nobody user
489505
runAsGroup: 65534 # nobody group
490506
allowPrivilegeEscalation: false
507+
capabilities:
508+
drop: ["ALL"]
509+
seccompProfile:
510+
type: "RuntimeDefault"
491511
image:
492512
# IMPORTANT: Bumping the minor version of this binary should go hand in
493513
# hand with an inspection of the user-scheduelr's RBAC
@@ -568,6 +588,10 @@ scheduling:
568588
runAsUser: 65534 # nobody user
569589
runAsGroup: 65534 # nobody group
570590
allowPrivilegeEscalation: false
591+
capabilities:
592+
drop: ["ALL"]
593+
seccompProfile:
594+
type: "RuntimeDefault"
571595
resources: {}
572596
corePods:
573597
tolerations:
@@ -605,6 +629,10 @@ prePuller:
605629
runAsUser: 65534 # nobody user
606630
runAsGroup: 65534 # nobody group
607631
allowPrivilegeEscalation: false
632+
capabilities:
633+
drop: ["ALL"]
634+
seccompProfile:
635+
type: "RuntimeDefault"
608636
extraTolerations: []
609637
# hook relates to the hook-image-awaiter Job and hook-image-puller DaemonSet
610638
hook:
@@ -621,6 +649,10 @@ prePuller:
621649
runAsUser: 65534 # nobody user
622650
runAsGroup: 65534 # nobody group
623651
allowPrivilegeEscalation: false
652+
capabilities:
653+
drop: ["ALL"]
654+
seccompProfile:
655+
type: "RuntimeDefault"
624656
podSchedulingWaitDuration: 10
625657
nodeSelector: {}
626658
tolerations: []
@@ -639,6 +671,10 @@ prePuller:
639671
runAsUser: 65534 # nobody user
640672
runAsGroup: 65534 # nobody group
641673
allowPrivilegeEscalation: false
674+
capabilities:
675+
drop: ["ALL"]
676+
seccompProfile:
677+
type: "RuntimeDefault"
642678
image:
643679
name: registry.k8s.io/pause
644680
# tag is automatically bumped to new patch versions by the

0 commit comments

Comments
 (0)