Skip to content

Commit

Permalink
Improved security configuration (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
groundhog2k authored Dec 17, 2023
1 parent e87e33f commit 67b5a64
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/vaultwarden/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: guerzon
email: [email protected]
url: https://github.com/guerzon
version: 0.18.1
version: 0.18.2
kubeVersion: ">=1.12.0-0"
4 changes: 4 additions & 0 deletions charts/vaultwarden/templates/_podSpec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ affinity:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
Expand Down
16 changes: 16 additions & 0 deletions charts/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,23 @@ startupProbe:
##
failureThreshold: 10

## Pod security options
podSecurityContext: {}
# fsGroup: 1001
# supplementalGroups:
# - 1001

## Default security options to run vault as read only container without privilege escalation
securityContext: {}
# allowPrivilegeEscalation: false
# privileged: false
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsGroup: 1001
# runAsUser: 1001
# capabilities:
# drop:
# - ALL

## Service configuration
service:
Expand Down

0 comments on commit 67b5a64

Please sign in to comment.