fix(authelia): correct upgrade handling without encryption key
This commit is contained in:
@@ -38,7 +38,7 @@ 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: 8.0.12
|
version: 8.0.13
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- security
|
- security
|
||||||
|
|||||||
@@ -15,9 +15,14 @@ metadata:
|
|||||||
{{- $encryptionkey := "" }}
|
{{- $encryptionkey := "" }}
|
||||||
data:
|
data:
|
||||||
{{- if $autheliaprevious }}
|
{{- if $autheliaprevious }}
|
||||||
ENCRYPTION_KEY: {{ index $autheliaprevious.data "ENCRYPTION_KEY" }}
|
|
||||||
SESSION_ENCRYPTION_KEY: {{ index $autheliaprevious.data "SESSION_ENCRYPTION_KEY" }}
|
SESSION_ENCRYPTION_KEY: {{ index $autheliaprevious.data "SESSION_ENCRYPTION_KEY" }}
|
||||||
JWT_TOKEN: {{ index $autheliaprevious.data "JWT_TOKEN" }}
|
JWT_TOKEN: {{ index $autheliaprevious.data "JWT_TOKEN" }}
|
||||||
|
{{- if ( hasKey $autheliaprevious.data "ENCRYPTION_KEY" ) }}
|
||||||
|
ENCRYPTION_KEY: {{ index $autheliaprevious.data "ENCRYPTION_KEY" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $encryptionkey := randAlphaNum 100 }}
|
||||||
|
ENCRYPTION_KEY: {{ $encryptionkey | b64enc | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $jwtsecret := randAlphaNum 50 }}
|
{{- $jwtsecret := randAlphaNum 50 }}
|
||||||
{{- $sessionsecret := randAlphaNum 50 }}
|
{{- $sessionsecret := randAlphaNum 50 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user