Skip to content

Commit

Permalink
feat: set allowPrivilegeEscalation: false and drop capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Aug 17, 2023
1 parent 8965aa5 commit f325590
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/steadybit-extension-scaffold/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-scaffold
description: Steadybit scaffold extension Helm chart for Kubernetes.
version: 1.0.16
version: 1.0.17
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
4 changes: 4 additions & 0 deletions charts/steadybit-extension-scaffold/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ spec:
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumes:
{{- include "extensionlib.deployment.volumes" (list .) | nindent 8 }}
serviceAccountName: {{ .Values.serviceAccount.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ manifest should match snapshot using podAnnotations and Labels:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down Expand Up @@ -103,6 +107,10 @@ manifest should match snapshot with TLS:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down Expand Up @@ -170,6 +178,10 @@ manifest should match snapshot with extra env vars:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down Expand Up @@ -225,6 +237,10 @@ manifest should match snapshot with extra labels:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down Expand Up @@ -284,6 +300,10 @@ manifest should match snapshot with mutual TLS:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down Expand Up @@ -357,6 +377,10 @@ manifest should match snapshot with mutual TLS using containerPaths:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down Expand Up @@ -410,6 +434,10 @@ manifest should match snapshot without TLS:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
Expand Down

0 comments on commit f325590

Please sign in to comment.