fix: ensure oidc keys get generated on existing authelia installations
This commit is contained in:
@@ -38,4 +38,4 @@ sources:
|
|||||||
- https://github.com/authelia/chartrepo
|
- https://github.com/authelia/chartrepo
|
||||||
- https://github.com/authelia/authelia
|
- https://github.com/authelia/authelia
|
||||||
type: application
|
type: application
|
||||||
version: 3.0.2
|
version: 3.0.3
|
||||||
|
|||||||
@@ -106,10 +106,10 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.identity_providers.oidc.enabled }}
|
|
||||||
{{- if $autheliaprevious }}
|
{{- 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_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 }}
|
{{- else }}
|
||||||
{{- $oidckey := genPrivateKey "rsa" }}
|
{{- $oidckey := genPrivateKey "rsa" }}
|
||||||
{{- $oidcsecret := randAlphaNum 32 }}
|
{{- $oidcsecret := randAlphaNum 32 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user