Skip to content

Commit

Permalink
feat(helm): set default database encryption key to random value
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Pinsel <[email protected]>
  • Loading branch information
DominikPinsel committed Aug 10, 2023
1 parent 6be4222 commit 896f31d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/managed-identity-wallet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
- name: MIW_HOST_NAME
value: {{ tpl .Values.miw.host . }}
- name: ENCRYPTION_KEY
value: {{ .Values.miw.database.encryptionKey }}
value: {{ default .Values.miw.database.encryptionKey (randAlphaNum 32)}}
- name: AUTHORITY_WALLET_BPN
value: {{ tpl .Values.miw.authorityWallet.bpn . }}
- name: AUTHORITY_WALLET_DID
Expand Down
3 changes: 2 additions & 1 deletion charts/managed-identity-wallet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ anchors:
vcExpiryDate: &vcExpiryDate ""
postgres:
database: &miwPostgresDatabase "miw_app"
encryptionKey: &miwPostgresEncryptionKey 76a7834fb37e090c2789a9b1a76748d3
# -- database encryption key for confidential data. Default: 32 random alphanumeric chars
encryptionKey: &miwPostgresEncryptionKey ""
defaultSecurityContext: &defaultSecurityContext
runAsUser: 1001
runAsGroup: 0
Expand Down

0 comments on commit 896f31d

Please sign in to comment.