Skip to content

Commit

Permalink
fix: keys are not idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Dec 30, 2024
1 parent 0a9b698 commit 463315f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postal/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ metadata:
{{- end }}
data:
mariadb-password: {{ .Values.mariadb.auth.password | b64enc | quote }}
signing-key: {{ $key | b64enc | quote }}
rails-secret-key: {{ $key | b64enc | quote }}
signing-key: {{ .Values.global.signingKey | required "You must provide a global.signingKey value" | b64enc | quote }}
rails-secret-key: {{ .Values.global.railsSecretKey | required "You must provide a global.railsSecretKey value" | b64enc | quote }}
{{- end }}
4 changes: 4 additions & 0 deletions postal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ commonsAnnotations: {}
global:
# use an existing secret instead of the automaticaly generated one
existingSecretName: ""
# -- key used to sign emails
signingKey: ""
# -- the secret key used to sign and encrypt cookies and session data in the application
railsSecretKey: ""
# The hostname that the Postal web interface runs on
webHostname: localhost
# The HTTP protocol to use for the Postal web interface
Expand Down

0 comments on commit 463315f

Please sign in to comment.