Skip to content

Commit

Permalink
Update permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjberman committed Jan 10, 2025
1 parent bb8a252 commit a54bbbc
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 18 deletions.
1 change: 1 addition & 0 deletions charts/nginx-gateway-fabric/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ spec:
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsUser: 101
runAsGroup: 1001
Expand Down
10 changes: 1 addition & 9 deletions charts/nginx-gateway-fabric/templates/scc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ readOnlyRootFilesystem: true
runAsUser:
type: MustRunAsRange
uidRangeMin: 101
uidRangeMax: 102
uidRangeMax: 101
fsGroup:
type: MustRunAs
ranges:
Expand All @@ -30,16 +30,8 @@ seLinuxContext:
type: MustRunAs
seccompProfiles:
- runtime/default
volumes:
- emptyDir
- secret
- configMap
- projected
users:
- {{ printf "system:serviceaccount:%s:%s" .Release.Namespace (include "nginx-gateway.serviceAccountName" .) }}
allowedCapabilities:
- NET_BIND_SERVICE
- KILL
requiredDropCapabilities:
- ALL
{{- end }}
1 change: 1 addition & 0 deletions config/tests/static-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ spec:
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsUser: 101
runAsGroup: 1001
Expand Down
1 change: 1 addition & 0 deletions deploy/aws-nlb/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/azure/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/default/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/experimental-nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/experimental/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/nodeport/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
11 changes: 2 additions & 9 deletions deploy/openshift/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down Expand Up @@ -458,9 +459,6 @@ allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: false
allowPrivilegedContainer: false
allowedCapabilities:
- NET_BIND_SERVICE
- KILL
apiVersion: security.openshift.io/v1
fsGroup:
ranges:
Expand All @@ -475,7 +473,7 @@ requiredDropCapabilities:
- ALL
runAsUser:
type: MustRunAsRange
uidRangeMax: 102
uidRangeMax: 101
uidRangeMin: 101
seLinuxContext:
type: MustRunAs
Expand All @@ -488,8 +486,3 @@ supplementalGroups:
type: MustRunAs
users:
- system:serviceaccount:nginx-gateway:nginx-gateway
volumes:
- emptyDir
- secret
- configMap
- projected
1 change: 1 addition & 0 deletions deploy/snippets-filters-nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions deploy/snippets-filters/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down

0 comments on commit a54bbbc

Please sign in to comment.