Skip to content

Commit c3d055f

Browse files
authored
Merge pull request #3464 from lahwaacz/security-context
Security context hardening
2 parents 61d0fba + dcb7e79 commit c3d055f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

jupyterhub/values.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,16 @@ hub:
8989
pullSecrets: []
9090
resources: {}
9191
podSecurityContext:
92+
runAsNonRoot: true
9293
fsGroup: 1000
94+
seccompProfile:
95+
type: "RuntimeDefault"
9396
containerSecurityContext:
9497
runAsUser: 1000
9598
runAsGroup: 1000
9699
allowPrivilegeEscalation: false
100+
capabilities:
101+
drop: ["ALL"]
97102
lifecycle: {}
98103
loadRoles: {}
99104
services: {}
@@ -197,9 +202,14 @@ proxy:
197202
chp:
198203
revisionHistoryLimit:
199204
containerSecurityContext:
205+
runAsNonRoot: true
200206
runAsUser: 65534 # nobody user
201207
runAsGroup: 65534 # nobody group
202208
allowPrivilegeEscalation: false
209+
capabilities:
210+
drop: ["ALL"]
211+
seccompProfile:
212+
type: "RuntimeDefault"
203213
image:
204214
name: quay.io/jupyterhub/configurable-http-proxy
205215
# tag is automatically bumped to new patch versions by the
@@ -250,9 +260,14 @@ proxy:
250260
traefik:
251261
revisionHistoryLimit:
252262
containerSecurityContext:
263+
runAsNonRoot: true
253264
runAsUser: 65534 # nobody user
254265
runAsGroup: 65534 # nobody group
255266
allowPrivilegeEscalation: false
267+
capabilities:
268+
drop: ["ALL"]
269+
seccompProfile:
270+
type: "RuntimeDefault"
256271
image:
257272
name: traefik
258273
# tag is automatically bumped to new patch versions by the
@@ -300,9 +315,14 @@ proxy:
300315
extraPodSpec: {}
301316
secretSync:
302317
containerSecurityContext:
318+
runAsNonRoot: true
303319
runAsUser: 65534 # nobody user
304320
runAsGroup: 65534 # nobody group
305321
allowPrivilegeEscalation: false
322+
capabilities:
323+
drop: ["ALL"]
324+
seccompProfile:
325+
type: "RuntimeDefault"
306326
image:
307327
name: quay.io/jupyterhub/k8s-secret-sync
308328
tag: "set-by-chartpress"
@@ -481,9 +501,14 @@ scheduling:
481501
weight: 1
482502
type: MostAllocated
483503
containerSecurityContext:
504+
runAsNonRoot: true
484505
runAsUser: 65534 # nobody user
485506
runAsGroup: 65534 # nobody group
486507
allowPrivilegeEscalation: false
508+
capabilities:
509+
drop: ["ALL"]
510+
seccompProfile:
511+
type: "RuntimeDefault"
487512
image:
488513
# IMPORTANT: Bumping the minor version of this binary should go hand in
489514
# hand with an inspection of the user-scheduelr's RBAC
@@ -560,9 +585,14 @@ scheduling:
560585
labels: {}
561586
annotations: {}
562587
containerSecurityContext:
588+
runAsNonRoot: true
563589
runAsUser: 65534 # nobody user
564590
runAsGroup: 65534 # nobody group
565591
allowPrivilegeEscalation: false
592+
capabilities:
593+
drop: ["ALL"]
594+
seccompProfile:
595+
type: "RuntimeDefault"
566596
resources: {}
567597
corePods:
568598
tolerations:
@@ -596,9 +626,14 @@ prePuller:
596626
annotations: {}
597627
resources: {}
598628
containerSecurityContext:
629+
runAsNonRoot: true
599630
runAsUser: 65534 # nobody user
600631
runAsGroup: 65534 # nobody group
601632
allowPrivilegeEscalation: false
633+
capabilities:
634+
drop: ["ALL"]
635+
seccompProfile:
636+
type: "RuntimeDefault"
602637
extraTolerations: []
603638
# hook relates to the hook-image-awaiter Job and hook-image-puller DaemonSet
604639
hook:
@@ -611,9 +646,14 @@ prePuller:
611646
pullPolicy:
612647
pullSecrets: []
613648
containerSecurityContext:
649+
runAsNonRoot: true
614650
runAsUser: 65534 # nobody user
615651
runAsGroup: 65534 # nobody group
616652
allowPrivilegeEscalation: false
653+
capabilities:
654+
drop: ["ALL"]
655+
seccompProfile:
656+
type: "RuntimeDefault"
617657
podSchedulingWaitDuration: 10
618658
nodeSelector: {}
619659
tolerations: []
@@ -628,9 +668,14 @@ prePuller:
628668
extraImages: {}
629669
pause:
630670
containerSecurityContext:
671+
runAsNonRoot: true
631672
runAsUser: 65534 # nobody user
632673
runAsGroup: 65534 # nobody group
633674
allowPrivilegeEscalation: false
675+
capabilities:
676+
drop: ["ALL"]
677+
seccompProfile:
678+
type: "RuntimeDefault"
634679
image:
635680
name: registry.k8s.io/pause
636681
# tag is automatically bumped to new patch versions by the

0 commit comments

Comments
 (0)