@@ -175,11 +175,22 @@ rules:
175175 - security.openshift.io
176176 resourceNames :
177177 - nginx-gateway-scc
178+ - nginx-gateway-scc-nginx
178179 resources :
179180 - securitycontextconstraints
180181 verbs :
181182 - use
183+ - apiGroups :
184+ - rbac.authorization.k8s.io
185+ resources :
186+ - roles
187+ - rolebindings
188+ verbs :
182189 - create
190+ - update
191+ - delete
192+ - list
193+ - get
183194 - watch
184195---
185196apiVersion : rbac.authorization.k8s.io/v1
@@ -272,6 +283,7 @@ spec:
272283 - --metrics-port=9113
273284 - --health-port=8081
274285 - --leader-election-lock-name=nginx-gateway-leader-election
286+ - --nginx-scc=nginx-gateway-scc-nginx
275287 env :
276288 - name : POD_NAMESPACE
277289 valueFrom :
@@ -442,6 +454,10 @@ fsGroup:
442454 type : MustRunAs
443455kind : SecurityContextConstraints
444456metadata :
457+ labels :
458+ app.kubernetes.io/instance : nginx-gateway
459+ app.kubernetes.io/name : nginx-gateway
460+ app.kubernetes.io/version : edge
445461 name : nginx-gateway-scc
446462readOnlyRootFilesystem : true
447463requiredDropCapabilities :
@@ -463,3 +479,87 @@ users:
463479- system:serviceaccount:nginx-gateway:nginx-gateway
464480volumes :
465481- secret
482+ ---
483+ allowHostDirVolumePlugin : false
484+ allowHostIPC : false
485+ allowHostNetwork : false
486+ allowHostPID : false
487+ allowHostPorts : false
488+ allowPrivilegeEscalation : false
489+ allowPrivilegedContainer : false
490+ apiVersion : security.openshift.io/v1
491+ fsGroup :
492+ ranges :
493+ - max : 1001
494+ min : 1001
495+ type : MustRunAs
496+ kind : SecurityContextConstraints
497+ metadata :
498+ labels :
499+ app.kubernetes.io/instance : nginx-gateway
500+ app.kubernetes.io/name : nginx-gateway
501+ app.kubernetes.io/version : edge
502+ name : nginx-gateway-scc-cert-generator
503+ readOnlyRootFilesystem : true
504+ requiredDropCapabilities :
505+ - ALL
506+ runAsUser :
507+ type : MustRunAsRange
508+ uidRangeMax : 101
509+ uidRangeMin : 101
510+ seLinuxContext :
511+ type : MustRunAs
512+ seccompProfiles :
513+ - runtime/default
514+ supplementalGroups :
515+ ranges :
516+ - max : 1001
517+ min : 1001
518+ type : MustRunAs
519+ users :
520+ - system:serviceaccount:nginx-gateway:nginx-gateway-cert-generator
521+ volumes :
522+ - projected
523+ ---
524+ allowHostDirVolumePlugin : false
525+ allowHostIPC : false
526+ allowHostNetwork : false
527+ allowHostPID : false
528+ allowHostPorts : false
529+ allowPrivilegedContainer : false
530+ allowedCapabilities :
531+ - NET_BIND_SERVICE
532+ apiVersion : security.openshift.io/v1
533+ fsGroup :
534+ ranges :
535+ - max : 1001
536+ min : 1001
537+ type : MustRunAs
538+ kind : SecurityContextConstraints
539+ metadata :
540+ labels :
541+ app.kubernetes.io/instance : nginx-gateway
542+ app.kubernetes.io/name : nginx-gateway
543+ app.kubernetes.io/version : edge
544+ name : nginx-gateway-scc-nginx
545+ readOnlyRootFilesystem : true
546+ requiredDropCapabilities :
547+ - ALL
548+ runAsUser :
549+ type : MustRunAsRange
550+ uidRangeMax : 101
551+ uidRangeMin : 101
552+ seLinuxContext :
553+ type : MustRunAs
554+ seccompProfiles :
555+ - runtime/default
556+ supplementalGroups :
557+ ranges :
558+ - max : 1001
559+ min : 1001
560+ type : MustRunAs
561+ volumes :
562+ - emptyDir
563+ - secret
564+ - configMap
565+ - projected
0 commit comments