Skip to content

Commit

Permalink
create core-encryption secret only if encryption.existingSecret is no…
Browse files Browse the repository at this point in the history
…t set
  • Loading branch information
illya-havsiyevych authored May 18, 2024
1 parent 331c580 commit 728b832
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/dial-core/templates/secret-encryption.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.configuration.encryption.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -23,3 +24,4 @@ type: Opaque
data:
aidial.encryption.password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "dialCore.encryptionSecretName" .) "key" "aidial.encryption.password" "providedValues" (list "configuration.encryption.password") "length" 32 "strong" false "context" $) }}
aidial.encryption.salt: {{ include "common.secrets.passwords.manage" (dict "secret" (include "dialCore.encryptionSecretName" .) "key" "aidial.encryption.salt" "providedValues" (list "configuration.encryption.salt") "length" 32 "strong" false "context" $) }}
{{- end }}

0 comments on commit 728b832

Please sign in to comment.