diff --git a/smardigo/templates/connect/secret.yml b/smardigo/templates/connect/secret.yml index 44125ad..a49ae2d 100644 --- a/smardigo/templates/connect/secret.yml +++ b/smardigo/templates/connect/secret.yml @@ -15,7 +15,7 @@ data: # check, if a secret is already set {{- if or (not $old_sec) (not $old_sec.data) (not index $old_sec.data "JWT_SECRET") }} # if not set, then generate a new password - JWT_SECRET: {{ # 20 | b64enc }} + JWT_SECRET: {{ randAlphaNum 32 | b64enc }} {{ else }} # if set, then use the old value JWT_SECRET: {{ index $old_sec.data "JWT_SECRET" }}