Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add db-encryption Support #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/portainer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 1.0.22
version: 1.0.23

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
10 changes: 10 additions & 0 deletions charts/portainer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
secret:
secretName: {{ .Values.tls.existingSecret }}
{{- end }}
{{- if .Values.dbEncryption.enabled }}
- name: db-encryption-key
secret:
secretName: {{ .Values.dbEncryption.secret }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.enterpriseEdition.enabled }}
Expand Down Expand Up @@ -64,6 +69,11 @@ spec:
mountPath: /certs
readOnly: true
{{- end }}
{{- if .Values.dbEncryption.enabled }}
- name: db-encryption-key
mountPath: "/run/secrets/portainer"
subPath: portainer
{{- end }}
ports:
{{- if not .Values.tls.force }}
- name: http
Expand Down
7 changes: 7 additions & 0 deletions charts/portainer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ tls:
feature:
flags: ""

dbEncryption:
# If set, Portainer will encrypt the database
enabled: false
# If enabled, the following secret will be mounted into the pod for the database encryption
# Ensure to pre-create the secret in the cluster
secret: ""

ingress:
enabled: false
ingressClassName: ""
Expand Down