Skip to content

Commit a54bbbc

Browse files
committed
Update permissions
1 parent bb8a252 commit a54bbbc

File tree

13 files changed

+14
-18
lines changed

13 files changed

+14
-18
lines changed

charts/nginx-gateway-fabric/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ spec:
139139
capabilities:
140140
drop:
141141
- ALL
142+
allowPrivilegeEscalation: false
142143
readOnlyRootFilesystem: true
143144
runAsUser: 101
144145
runAsGroup: 1001

charts/nginx-gateway-fabric/templates/scc.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ readOnlyRootFilesystem: true
1515
runAsUser:
1616
type: MustRunAsRange
1717
uidRangeMin: 101
18-
uidRangeMax: 102
18+
uidRangeMax: 101
1919
fsGroup:
2020
type: MustRunAs
2121
ranges:
@@ -30,16 +30,8 @@ seLinuxContext:
3030
type: MustRunAs
3131
seccompProfiles:
3232
- runtime/default
33-
volumes:
34-
- emptyDir
35-
- secret
36-
- configMap
37-
- projected
3833
users:
3934
- {{ printf "system:serviceaccount:%s:%s" .Release.Namespace (include "nginx-gateway.serviceAccountName" .) }}
40-
allowedCapabilities:
41-
- NET_BIND_SERVICE
42-
- KILL
4335
requiredDropCapabilities:
4436
- ALL
4537
{{- end }}

config/tests/static-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ spec:
6969
capabilities:
7070
drop:
7171
- ALL
72+
allowPrivilegeEscalation: false
7273
readOnlyRootFilesystem: true
7374
runAsUser: 101
7475
runAsGroup: 1001

deploy/aws-nlb/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ spec:
292292
initialDelaySeconds: 3
293293
periodSeconds: 1
294294
securityContext:
295+
allowPrivilegeEscalation: false
295296
capabilities:
296297
drop:
297298
- ALL

deploy/azure/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ spec:
289289
initialDelaySeconds: 3
290290
periodSeconds: 1
291291
securityContext:
292+
allowPrivilegeEscalation: false
292293
capabilities:
293294
drop:
294295
- ALL

deploy/default/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ spec:
289289
initialDelaySeconds: 3
290290
periodSeconds: 1
291291
securityContext:
292+
allowPrivilegeEscalation: false
292293
capabilities:
293294
drop:
294295
- ALL

deploy/experimental-nginx-plus/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ spec:
304304
initialDelaySeconds: 3
305305
periodSeconds: 1
306306
securityContext:
307+
allowPrivilegeEscalation: false
307308
capabilities:
308309
drop:
309310
- ALL

deploy/experimental/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ spec:
295295
initialDelaySeconds: 3
296296
periodSeconds: 1
297297
securityContext:
298+
allowPrivilegeEscalation: false
298299
capabilities:
299300
drop:
300301
- ALL

deploy/nginx-plus/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ spec:
298298
initialDelaySeconds: 3
299299
periodSeconds: 1
300300
securityContext:
301+
allowPrivilegeEscalation: false
301302
capabilities:
302303
drop:
303304
- ALL

deploy/nodeport/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ spec:
289289
initialDelaySeconds: 3
290290
periodSeconds: 1
291291
securityContext:
292+
allowPrivilegeEscalation: false
292293
capabilities:
293294
drop:
294295
- ALL

0 commit comments

Comments
 (0)