Skip to content

Commit edb9add

Browse files
authored
Add seccompProfile to Helm chart (#2323)
Problem: Not specifying the seccompProfile gives warnings in certain enviroments Solution: Set the seccompProfile
1 parent 01c46ae commit edb9add

File tree

8 files changed

+28
-0
lines changed

8 files changed

+28
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ spec:
115115
periodSeconds: 1
116116
{{- end }}
117117
securityContext:
118+
seccompProfile:
119+
type: RuntimeDefault
118120
allowPrivilegeEscalation: {{ .Values.nginxGateway.securityContext.allowPrivilegeEscalation }}
119121
capabilities:
120122
add:
@@ -151,6 +153,8 @@ spec:
151153
- containerPort: 443
152154
name: https
153155
securityContext:
156+
seccompProfile:
157+
type: RuntimeDefault
154158
capabilities:
155159
add:
156160
- NET_BIND_SERVICE

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ supplementalGroups:
2727
max: 1001
2828
seLinuxContext:
2929
type: MustRunAs
30+
seccompProfiles:
31+
- runtime/default
3032
volumes:
3133
- emptyDir
3234
- secret

config/tests/static-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ spec:
5858
initialDelaySeconds: 3
5959
periodSeconds: 1
6060
securityContext:
61+
seccompProfile:
62+
type: RuntimeDefault
6163
allowPrivilegeEscalation: false
6264
capabilities:
6365
add:
@@ -87,6 +89,8 @@ spec:
8789
- containerPort: 443
8890
name: https
8991
securityContext:
92+
seccompProfile:
93+
type: RuntimeDefault
9094
capabilities:
9195
add:
9296
- NET_BIND_SERVICE

deploy/manifests/nginx-gateway-experimental.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ spec:
214214
initialDelaySeconds: 3
215215
periodSeconds: 1
216216
securityContext:
217+
seccompProfile:
218+
type: RuntimeDefault
217219
allowPrivilegeEscalation: false
218220
capabilities:
219221
add:
@@ -243,6 +245,8 @@ spec:
243245
- containerPort: 443
244246
name: https
245247
securityContext:
248+
seccompProfile:
249+
type: RuntimeDefault
246250
capabilities:
247251
add:
248252
- NET_BIND_SERVICE

deploy/manifests/nginx-gateway.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ spec:
210210
initialDelaySeconds: 3
211211
periodSeconds: 1
212212
securityContext:
213+
seccompProfile:
214+
type: RuntimeDefault
213215
allowPrivilegeEscalation: false
214216
capabilities:
215217
add:
@@ -239,6 +241,8 @@ spec:
239241
- containerPort: 443
240242
name: https
241243
securityContext:
244+
seccompProfile:
245+
type: RuntimeDefault
242246
capabilities:
243247
add:
244248
- NET_BIND_SERVICE

deploy/manifests/nginx-plus-gateway-experimental.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ spec:
221221
initialDelaySeconds: 3
222222
periodSeconds: 1
223223
securityContext:
224+
seccompProfile:
225+
type: RuntimeDefault
224226
allowPrivilegeEscalation: false
225227
capabilities:
226228
add:
@@ -250,6 +252,8 @@ spec:
250252
- containerPort: 443
251253
name: https
252254
securityContext:
255+
seccompProfile:
256+
type: RuntimeDefault
253257
capabilities:
254258
add:
255259
- NET_BIND_SERVICE

deploy/manifests/nginx-plus-gateway.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ spec:
217217
initialDelaySeconds: 3
218218
periodSeconds: 1
219219
securityContext:
220+
seccompProfile:
221+
type: RuntimeDefault
220222
allowPrivilegeEscalation: false
221223
capabilities:
222224
add:
@@ -246,6 +248,8 @@ spec:
246248
- containerPort: 443
247249
name: https
248250
securityContext:
251+
seccompProfile:
252+
type: RuntimeDefault
249253
capabilities:
250254
add:
251255
- NET_BIND_SERVICE

deploy/manifests/scc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ supplementalGroups:
2828
max: 1001
2929
seLinuxContext:
3030
type: MustRunAs
31+
seccompProfiles:
32+
- runtime/default
3133
volumes:
3234
- emptyDir
3335
- secret

0 commit comments

Comments
 (0)