Skip to content

Commit

Permalink
Merge pull request #42 from replicatedhq/cbo/fix-kotsadm-encryption-s…
Browse files Browse the repository at this point in the history
…ecret

fix invalid encryption key generation
  • Loading branch information
Craig O'Donnell authored Apr 18, 2024
2 parents 51d6378 + 84b8cf1 commit 642b1c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/secret-api-encryption.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $encryptionKey := randAlphaNum 24 | b64enc | quote }}
{{- $encryptionKey := randAlphaNum 36 | b64enc | quote }}
{{- $secret := (lookup "v1" "Secret" .Release.Namespace "kotsadm-encryption") }}
{{- if $secret }}
{{- $encryptionKey = index $secret.data "encryptionKey" }}
Expand All @@ -9,6 +9,6 @@ metadata:
labels:
{{- include "admin-console.labels" . | nindent 4 }}
name: kotsadm-encryption
data:
stringData:
encryptionKey: {{ $encryptionKey }}

0 comments on commit 642b1c5

Please sign in to comment.