chore(authelia): cleanup secret a bit (#7768)
* chore(authelia): cleanup secret a bit * Daemonset -> DaemonSet * fix some typos * no group on nested var * more typos * cspell * lowercase all
This commit is contained in:
@@ -36,7 +36,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: 15.0.8
|
version: 15.0.9
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- security
|
- security
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ questions:
|
|||||||
required: true
|
required: true
|
||||||
- variable: default_redirection_url
|
- variable: default_redirection_url
|
||||||
group: "App Configuration"
|
group: "App Configuration"
|
||||||
label: "Default Redirection Url"
|
label: "Default Redirection URL"
|
||||||
description: "If user tries to authenticate without any referer, this is used"
|
description: "If user tries to authenticate without any referrer, this is used"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
@@ -44,7 +44,7 @@ questions:
|
|||||||
description: "dark"
|
description: "dark"
|
||||||
- variable: log
|
- variable: log
|
||||||
group: "App Configuration"
|
group: "App Configuration"
|
||||||
label: "Log Configuration "
|
label: "Log Configuration"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -179,7 +179,7 @@ questions:
|
|||||||
- variable: regulation
|
- variable: regulation
|
||||||
group: "App Configuration"
|
group: "App Configuration"
|
||||||
label: "Regulation Configuration"
|
label: "Regulation Configuration"
|
||||||
description: "his mechanism prevents attackers from brute forcing the first factor."
|
description: "This mechanism prevents attackers from brute forcing the first factor."
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -241,15 +241,15 @@ questions:
|
|||||||
subquestions:
|
subquestions:
|
||||||
- variable: implementation
|
- variable: implementation
|
||||||
label: "Implementation"
|
label: "Implementation"
|
||||||
description: "The LDAP implementation, this affects elements like the attribute utilised for resetting a password"
|
description: "The LDAP implementation, this affects elements like the attribute utilized for resetting a password"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: "custom"
|
default: "custom"
|
||||||
enum:
|
enum:
|
||||||
- value: "activedirectory"
|
- value: "activedirectory"
|
||||||
description: "activedirectory"
|
description: "Active Directory"
|
||||||
- value: "custom"
|
- value: "custom"
|
||||||
description: "custom"
|
description: "Custom"
|
||||||
- variable: url
|
- variable: url
|
||||||
label: "URL"
|
label: "URL"
|
||||||
description: "The url to the ldap server. Format: <scheme>://<address>[:<port>]"
|
description: "The url to the ldap server. Format: <scheme>://<address>[:<port>]"
|
||||||
@@ -446,7 +446,7 @@ questions:
|
|||||||
- variable: notifier
|
- variable: notifier
|
||||||
group: "App Configuration"
|
group: "App Configuration"
|
||||||
label: "Notifier Configuration"
|
label: "Notifier Configuration"
|
||||||
description: "otifications are sent to users when they require a password reset, a u2f registration or a TOTP registration."
|
description: "Notifications are sent to users when they require a password reset, a u2f registration or a TOTP registration."
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -804,7 +804,7 @@ questions:
|
|||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
- variable: enabled
|
- variable: enabled
|
||||||
label: "enabled"
|
label: "Enabled"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|||||||
@@ -2,26 +2,31 @@
|
|||||||
{{- define "authelia.secrets" -}}
|
{{- define "authelia.secrets" -}}
|
||||||
{{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}}
|
{{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}}
|
||||||
{{- $fetchname := printf "%s-authelia-secrets" $basename -}}
|
{{- $fetchname := printf "%s-authelia-secrets" $basename -}}
|
||||||
{{- $autheliaprevious := lookup "v1" "Secret" .Release.Namespace $fetchname }}
|
|
||||||
{{- $oidckey := "" }}
|
{{/* Initialize all keys */}}
|
||||||
{{- $oidcsecret := "" }}
|
{{- $oidckey := genPrivateKey "rsa" }}
|
||||||
{{- $jwtsecret := "" }}
|
{{- $oidcsecret := randAlphaNum 32 }}
|
||||||
{{- $sessionsecret := "" }}
|
{{- $jwtsecret := randAlphaNum 50 }}
|
||||||
{{- $encryptionkey := "" }}
|
{{- $sessionsecret := randAlphaNum 50 }}
|
||||||
|
{{- $encryptionkey := randAlphaNum 100 }}
|
||||||
|
|
||||||
enabled: true
|
enabled: true
|
||||||
data:
|
data:
|
||||||
{{- if $autheliaprevious }}
|
{{ with (lookup "v1" "Secret" .Release.Namespace $fetchname) }}
|
||||||
SESSION_ENCRYPTION_KEY: {{ index $autheliaprevious.data "SESSION_ENCRYPTION_KEY" | b64dec }}
|
{{/* Get previous values and decode */}}
|
||||||
JWT_TOKEN: {{ index $autheliaprevious.data "JWT_TOKEN" | b64dec }}
|
{{ $sessionsecret = (index .data "SESSION_ENCRYPTION_KEY") | b64dec }}
|
||||||
ENCRYPTION_KEY: {{ index $autheliaprevious.data "ENCRYPTION_KEY" | b64dec }}
|
{{ $jwtsecret = (index .data "JWT_TOKEN") | b64dec }}
|
||||||
{{- else }}
|
{{ $encryptionkey = (index .data "ENCRYPTION_KEY") | b64dec }}
|
||||||
{{- $jwtsecret := randAlphaNum 50 }}
|
|
||||||
{{- $sessionsecret := randAlphaNum 50 }}
|
{{/* Check if those keys ever existed. as OIDC is optional */}}
|
||||||
{{- $encryptionkey := randAlphaNum 100 }}
|
{{ if and (hasKey .data "OIDC_PRIVATE_KEY") (hasKey .data "OIDC_HMAC_SECRET") }}
|
||||||
|
{{ $oidckey = (index .data "OIDC_PRIVATE_KEY") | b64dec }}
|
||||||
|
{{ $oidcsecret = (index .data "OIDC_HMAC_SECRET") | b64dec }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
SESSION_ENCRYPTION_KEY: {{ $sessionsecret }}
|
SESSION_ENCRYPTION_KEY: {{ $sessionsecret }}
|
||||||
JWT_TOKEN: {{ $jwtsecret}}
|
JWT_TOKEN: {{ $jwtsecret }}
|
||||||
ENCRYPTION_KEY: {{ $encryptionkey }}
|
ENCRYPTION_KEY: {{ $encryptionkey }}
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if .Values.authentication_backend.ldap.enabled }}
|
{{- if .Values.authentication_backend.ldap.enabled }}
|
||||||
LDAP_PASSWORD: {{ .Values.authentication_backend.ldap.plain_password }}
|
LDAP_PASSWORD: {{ .Values.authentication_backend.ldap.plain_password }}
|
||||||
@@ -42,15 +47,8 @@ data:
|
|||||||
REDIS_SENTINEL_PASSWORD: {{ .Values.redis.sentinelPassword | trimAll "\"" }}
|
REDIS_SENTINEL_PASSWORD: {{ .Values.redis.sentinelPassword | trimAll "\"" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if $autheliaprevious }}
|
{{- if .Values.identity_providers.oidc.enabled }}
|
||||||
{{- if and ( hasKey $autheliaprevious.data "OIDC_PRIVATE_KEY" ) ( hasKey $autheliaprevious.data "OIDC_HMAC_SECRET" ) }}
|
|
||||||
OIDC_PRIVATE_KEY: {{ index $autheliaprevious.data "OIDC_PRIVATE_KEY" | b64dec }}
|
|
||||||
OIDC_HMAC_SECRET: {{ index $autheliaprevious.data "OIDC_HMAC_SECRET" | b64dec }}
|
|
||||||
{{- else }}
|
|
||||||
{{- $oidckey := genPrivateKey "rsa" }}
|
|
||||||
{{- $oidcsecret := randAlphaNum 32 }}
|
|
||||||
OIDC_PRIVATE_KEY: {{ $oidckey }}
|
OIDC_PRIVATE_KEY: {{ $oidckey }}
|
||||||
OIDC_HMAC_SECRET: {{ $oidcsecret }}
|
OIDC_HMAC_SECRET: {{ $oidcsecret }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+26
-25
@@ -10,6 +10,7 @@ words:
|
|||||||
- appname
|
- appname
|
||||||
- appnamehere
|
- appnamehere
|
||||||
- auditlog
|
- auditlog
|
||||||
|
- authelia
|
||||||
- authentik
|
- authentik
|
||||||
- authexample
|
- authexample
|
||||||
- authkey
|
- authkey
|
||||||
@@ -22,7 +23,7 @@ words:
|
|||||||
- basicauthexample
|
- basicauthexample
|
||||||
- batnoter
|
- batnoter
|
||||||
- bazarr
|
- bazarr
|
||||||
- Blocklists
|
- blocklists
|
||||||
- blocktype
|
- blocktype
|
||||||
- briefkasten
|
- briefkasten
|
||||||
- bugfixer's
|
- bugfixer's
|
||||||
@@ -46,8 +47,8 @@ words:
|
|||||||
- csgo
|
- csgo
|
||||||
- cuda
|
- cuda
|
||||||
- daemonset
|
- daemonset
|
||||||
- DASHDOT
|
- dashdot
|
||||||
- DATAPOINTS
|
- datapoints
|
||||||
- datascience
|
- datascience
|
||||||
- dbcreds
|
- dbcreds
|
||||||
- dbengine
|
- dbengine
|
||||||
@@ -65,11 +66,11 @@ words:
|
|||||||
- emby
|
- emby
|
||||||
- entrypoints
|
- entrypoints
|
||||||
- eptgmk
|
- eptgmk
|
||||||
- EXIF
|
- exif
|
||||||
- fireshare
|
- fireshare
|
||||||
- flatnotes
|
- flatnotes
|
||||||
- flemarr
|
- flemarr
|
||||||
- Flemmarr
|
- flemmarr
|
||||||
- flushtables
|
- flushtables
|
||||||
- forcegc
|
- forcegc
|
||||||
- fullname
|
- fullname
|
||||||
@@ -78,8 +79,8 @@ words:
|
|||||||
- gibibyte
|
- gibibyte
|
||||||
- gluster
|
- gluster
|
||||||
- goauthentik
|
- goauthentik
|
||||||
- Gotify
|
- gotify
|
||||||
- Groupname
|
- groupname
|
||||||
- gunicorn
|
- gunicorn
|
||||||
- healthcheck
|
- healthcheck
|
||||||
- healthchecks
|
- healthchecks
|
||||||
@@ -111,7 +112,7 @@ words:
|
|||||||
- kavita
|
- kavita
|
||||||
- keepalive
|
- keepalive
|
||||||
- killswitch
|
- killswitch
|
||||||
- Kiwix
|
- kiwix
|
||||||
- kjeld
|
- kjeld
|
||||||
- kube
|
- kube
|
||||||
- kubeconfig
|
- kubeconfig
|
||||||
@@ -148,7 +149,7 @@ words:
|
|||||||
- meshroom
|
- meshroom
|
||||||
- metallb
|
- metallb
|
||||||
- microbin
|
- microbin
|
||||||
- Midarr
|
- midarr
|
||||||
- middlewares
|
- middlewares
|
||||||
- middlewaretcps
|
- middlewaretcps
|
||||||
- mikrotik
|
- mikrotik
|
||||||
@@ -156,7 +157,7 @@ words:
|
|||||||
- mimetypes
|
- mimetypes
|
||||||
- minecraft
|
- minecraft
|
||||||
- minio
|
- minio
|
||||||
- Misskey
|
- misskey
|
||||||
- modelstore
|
- modelstore
|
||||||
- modports
|
- modports
|
||||||
- mongosh
|
- mongosh
|
||||||
@@ -176,11 +177,11 @@ words:
|
|||||||
- nodeports
|
- nodeports
|
||||||
- nohardlinks
|
- nohardlinks
|
||||||
- noisedash
|
- noisedash
|
||||||
- Nordigen
|
- nordigen
|
||||||
- notebookbar
|
- notebookbar
|
||||||
- ODBC
|
- odbc
|
||||||
- OIDC
|
- oidc
|
||||||
- OOKLA
|
- ookla
|
||||||
- organizr
|
- organizr
|
||||||
- ornias
|
- ornias
|
||||||
- ovpn
|
- ovpn
|
||||||
@@ -207,7 +208,7 @@ words:
|
|||||||
- putregexhere
|
- putregexhere
|
||||||
- pvcname
|
- pvcname
|
||||||
- pvcpath
|
- pvcpath
|
||||||
- Pyspark
|
- pyspark
|
||||||
- qbitmanage
|
- qbitmanage
|
||||||
- quotum
|
- quotum
|
||||||
- radarr
|
- radarr
|
||||||
@@ -226,12 +227,12 @@ words:
|
|||||||
- replacementurlhere
|
- replacementurlhere
|
||||||
- resolv
|
- resolv
|
||||||
- restreamer
|
- restreamer
|
||||||
- Retrobot
|
- retrobot
|
||||||
- rtmp
|
- rtmp
|
||||||
- rtmps
|
- rtmps
|
||||||
- sabnzbd
|
- sabnzbd
|
||||||
- schouten
|
- schouten
|
||||||
- Scipy
|
- scipy
|
||||||
- selfsigned
|
- selfsigned
|
||||||
- sendgrid
|
- sendgrid
|
||||||
- serpbear
|
- serpbear
|
||||||
@@ -242,7 +243,7 @@ words:
|
|||||||
- sgateway
|
- sgateway
|
||||||
- signup
|
- signup
|
||||||
- smallblock
|
- smallblock
|
||||||
- SNMP
|
- snmp
|
||||||
- somefile
|
- somefile
|
||||||
- somethingelse
|
- somethingelse
|
||||||
- sonarr
|
- sonarr
|
||||||
@@ -255,7 +256,7 @@ words:
|
|||||||
- statefulset
|
- statefulset
|
||||||
- staticdhcpleases
|
- staticdhcpleases
|
||||||
- staticfiles
|
- staticfiles
|
||||||
- Statping
|
- statping
|
||||||
- steamcommunica
|
- steamcommunica
|
||||||
- steammasterser
|
- steammasterser
|
||||||
- subchart
|
- subchart
|
||||||
@@ -274,10 +275,10 @@ words:
|
|||||||
- themenamehere
|
- themenamehere
|
||||||
- tlsoptions
|
- tlsoptions
|
||||||
- tlsstores
|
- tlsstores
|
||||||
- TOTP
|
- totp
|
||||||
- traefik
|
- traefik
|
||||||
- traefikservices
|
- traefikservices
|
||||||
- Traggo
|
- traggo
|
||||||
- trakt
|
- trakt
|
||||||
- truecharts
|
- truecharts
|
||||||
- truenas
|
- truenas
|
||||||
@@ -285,9 +286,9 @@ words:
|
|||||||
- umami
|
- umami
|
||||||
- unet
|
- unet
|
||||||
- unifi
|
- unifi
|
||||||
- Upsnap
|
- upsnap
|
||||||
- UPSNAP
|
- upsnap
|
||||||
- Upstreams
|
- upstreams
|
||||||
- userspace
|
- userspace
|
||||||
- vaapi
|
- vaapi
|
||||||
- valheim
|
- valheim
|
||||||
@@ -306,6 +307,6 @@ words:
|
|||||||
- wger
|
- wger
|
||||||
- whisparr
|
- whisparr
|
||||||
- xsystems
|
- xsystems
|
||||||
- Zabbix
|
- zabbix
|
||||||
- zerotier
|
- zerotier
|
||||||
- zwavejs
|
- zwavejs
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
- variable: envList
|
- variable: envList
|
||||||
label: Extra Environment Variables
|
label: Extra Environment Variables
|
||||||
description: "Please be aware that some variables are set in the background, adding duplicates here might cause issues or prevent the app from starting..."
|
description: "Please be aware that some variables are set in the background, adding duplicates here might cause issues or prevent the app from starting..."
|
||||||
group: "General Settings"
|
|
||||||
schema:
|
schema:
|
||||||
type: list
|
type: list
|
||||||
default: []
|
default: []
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
description: Set the number of Replicas
|
description: Set the number of Replicas
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
show_if: [["type", "!=", "Daemonset"]]
|
show_if: [["type", "!=", "DaemonSet"]]
|
||||||
default: 1
|
default: 1
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
description: Set the number of Replicas
|
description: Set the number of Replicas
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
show_if: [["type", "!=", "Daemonset"]]
|
show_if: [["type", "!=", "DaemonSet"]]
|
||||||
default: 2
|
default: 2
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
description: Set the number of Replicas
|
description: Set the number of Replicas
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
show_if: [["type", "!=", "Daemonset"]]
|
show_if: [["type", "!=", "DaemonSet"]]
|
||||||
default: 3
|
default: 3
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
label: Type (Advanced)
|
label: Type (Advanced)
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: Daemonset
|
default: DaemonSet
|
||||||
enum:
|
enum:
|
||||||
- value: Deployment
|
- value: Deployment
|
||||||
description: Deployment
|
description: Deployment
|
||||||
- value: Daemonset
|
- value: DaemonSet
|
||||||
description: Daemonset
|
description: DaemonSet
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
enum:
|
enum:
|
||||||
- value: Deployment
|
- value: Deployment
|
||||||
description: Deployment
|
description: Deployment
|
||||||
- value: Daemonset
|
- value: DaemonSet
|
||||||
description: Daemonset
|
description: DaemonSet
|
||||||
|
|||||||
Reference in New Issue
Block a user