fix(manifest): handle the case of present secret with missing key (#2091)

This commit is contained in:
dkeven 2025-11-20 15:00:17 +08:00 committed by GitHub
parent 2901fcfd24
commit 1e7cc5b6ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,17 +19,15 @@
{{- $pg_password = (index $auth_secret "data" "pg_password") -}}
{{- $nats_password = (index $auth_secret "data" "nats_password") -}}
{{- $probe_secret = (index $auth_secret "data" "probe_secret") -}}
{{ else -}}
{{ $jwt_secret = randAlphaNum 16 | b64enc }}
{{ $session_secret = randAlphaNum 16 | b64enc }}
{{ $hmac_secret = randAlphaNum 16 | b64enc }}
{{ $encryption_key = randAlphaNum 32 | b64enc }}
{{ $redis_password = randAlphaNum 16 | b64enc }}
{{ $pg_password = randAlphaNum 16 | b64enc }}
{{ $nats_password = randAlphaNum 16 | b64enc }}
{{ $probe_secret = randAlphaNum 16 | b64enc }}
{{- end -}}
{{- $jwt_secret = (default (randAlphaNum 16 | b64enc) $jwt_secret) -}}
{{- $session_secret = (default (randAlphaNum 16 | b64enc) $session_secret) -}}
{{- $hmac_secret = (default (randAlphaNum 16 | b64enc) $hmac_secret) -}}
{{- $encryption_key = (default (randAlphaNum 32 | b64enc) $encryption_key) -}}
{{- $redis_password = (default (randAlphaNum 16 | b64enc) $redis_password) -}}
{{- $pg_password = (default (randAlphaNum 16 | b64enc) $pg_password) -}}
{{- $nats_password = (default (randAlphaNum 16 | b64enc) $nats_password) -}}
{{- $probe_secret = (default (randAlphaNum 16 | b64enc) $probe_secret) -}}
---
apiVersion: v1