From 84b8cf1349880ab1765a1c98c6f93f4510ebb89e Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Thu, 18 Apr 2024 16:09:41 -0400 Subject: [PATCH] fix invalid encryption key generation --- templates/secret-api-encryption.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/secret-api-encryption.yaml b/templates/secret-api-encryption.yaml index e87096f..8db2612 100644 --- a/templates/secret-api-encryption.yaml +++ b/templates/secret-api-encryption.yaml @@ -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" }} @@ -9,6 +9,6 @@ metadata: labels: {{- include "admin-console.labels" . | nindent 4 }} name: kotsadm-encryption -data: +stringData: encryptionKey: {{ $encryptionKey }}