fix: ensure oidc keys get generated on existing authelia installations

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-14 17:52:28 +02:00
parent 582febdd93
commit 725aa5c6b6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -38,4 +38,4 @@ sources:
- https://github.com/authelia/chartrepo
- https://github.com/authelia/authelia
type: application
version: 3.0.2
version: 3.0.3
@@ -106,10 +106,10 @@ data:
{{- end }}
{{- end }}
{{- if .Values.identity_providers.oidc.enabled }}
{{- if $autheliaprevious }}
{{- if and ( hasKey $autheliaprevious.data "OIDC_PRIVATE_KEY" ) ( hasKey $autheliaprevious.data "OIDC_HMAC_SECRET" ) }}
OIDC_PRIVATE_KEY: {{ index $autheliaprevious.data "OIDC_PRIVATE_KEY" }}
OIDC_HMAC_SECRET: {{index $autheliaprevious.data "OIDC_HMAC_SECRET" }}
OIDC_HMAC_SECRET: {{ index $autheliaprevious.data "OIDC_HMAC_SECRET" }}
{{- else }}
{{- $oidckey := genPrivateKey "rsa" }}
{{- $oidcsecret := randAlphaNum 32 }}