Skip to content

Commit c3bb415

Browse files
committed
feat: set allowPrivilegeEscalation: false and drop capabilities
1 parent e9d755c commit c3bb415

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

charts/steadybit-extension-prometheus/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: steadybit-extension-prometheus
33
description: Steadybit Prometheus extension Helm chart for Kubernetes.
4-
version: 1.4.15
4+
version: 1.4.16
55
appVersion: latest
66
home: https://www.steadybit.com/
77
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png

charts/steadybit-extension-prometheus/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ spec:
8080
runAsNonRoot: true
8181
runAsUser: 10000
8282
runAsGroup: 10000
83+
allowPrivilegeEscalation: false
84+
capabilities:
85+
drop:
86+
- ALL
8387
volumes:
8488
{{- include "extensionlib.deployment.volumes" (list .) | nindent 8 }}
8589
serviceAccountName: {{ .Values.serviceAccount.name }}

charts/steadybit-extension-prometheus/tests/__snapshot__/deployment_test.yaml.snap

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ manifest should match snapshot using podAnnotations and Labels:
5050
cpu: 50m
5151
memory: 32Mi
5252
securityContext:
53+
allowPrivilegeEscalation: false
54+
capabilities:
55+
drop:
56+
- ALL
5357
readOnlyRootFilesystem: true
5458
runAsGroup: 10000
5559
runAsNonRoot: true
@@ -111,6 +115,10 @@ manifest should match snapshot with TLS:
111115
cpu: 50m
112116
memory: 32Mi
113117
securityContext:
118+
allowPrivilegeEscalation: false
119+
capabilities:
120+
drop:
121+
- ALL
114122
readOnlyRootFilesystem: true
115123
runAsGroup: 10000
116124
runAsNonRoot: true
@@ -182,6 +190,10 @@ manifest should match snapshot with extra env vars:
182190
cpu: 50m
183191
memory: 32Mi
184192
securityContext:
193+
allowPrivilegeEscalation: false
194+
capabilities:
195+
drop:
196+
- ALL
185197
readOnlyRootFilesystem: true
186198
runAsGroup: 10000
187199
runAsNonRoot: true
@@ -241,6 +253,10 @@ manifest should match snapshot with extra labels:
241253
cpu: 50m
242254
memory: 32Mi
243255
securityContext:
256+
allowPrivilegeEscalation: false
257+
capabilities:
258+
drop:
259+
- ALL
244260
readOnlyRootFilesystem: true
245261
runAsGroup: 10000
246262
runAsNonRoot: true
@@ -304,6 +320,10 @@ manifest should match snapshot with mutual TLS:
304320
cpu: 50m
305321
memory: 32Mi
306322
securityContext:
323+
allowPrivilegeEscalation: false
324+
capabilities:
325+
drop:
326+
- ALL
307327
readOnlyRootFilesystem: true
308328
runAsGroup: 10000
309329
runAsNonRoot: true
@@ -381,6 +401,10 @@ manifest should match snapshot with mutual TLS using containerPaths:
381401
cpu: 50m
382402
memory: 32Mi
383403
securityContext:
404+
allowPrivilegeEscalation: false
405+
capabilities:
406+
drop:
407+
- ALL
384408
readOnlyRootFilesystem: true
385409
runAsGroup: 10000
386410
runAsNonRoot: true
@@ -438,6 +462,10 @@ manifest should match snapshot without TLS:
438462
cpu: 50m
439463
memory: 32Mi
440464
securityContext:
465+
allowPrivilegeEscalation: false
466+
capabilities:
467+
drop:
468+
- ALL
441469
readOnlyRootFilesystem: true
442470
runAsGroup: 10000
443471
runAsNonRoot: true

0 commit comments

Comments
 (0)