Skip to content

Commit

Permalink
fix(authelia): make redis username actually optional (#51)
Browse files Browse the repository at this point in the history
This is so the username is only rendered if the username is not an empty string. Additionally it makes the default an empty string. This is so when users do not have the new redis v6 authentication enabled they can still use pre-v6 redis authentication.
  • Loading branch information
james-d-elliott authored May 5, 2021
1 parent dcaa63f commit 8433545
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.3.16
version: 0.3.17
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
4 changes: 3 additions & 1 deletion charts/authelia/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ data:
redis:
host: {{ $session.redis.host }}
port: {{ default 6379 $session.redis.port }}
username: {{ default "authelia" $session.redis.username }}
{{- if not (eq $session.redis.username "") }}
username: {{ $session.redis.username }}
{{- end }}
maximum_active_connections: {{ default 8 $session.redis.maximum_active_connections }}
minimum_idle_connections: {{ default 0 $session.redis.minimum_idle_connections }}
{{- if $session.redis.tls.enabled }}
Expand Down
3 changes: 2 additions & 1 deletion charts/authelia/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@ configMap:
port: 6379

## Optional username to be used with authentication.
username: authelia
# username: authelia
username: ""

## This is the Redis DB Index https://redis.io/commands/select (sometimes referred to as database number, DB, etc).
database_index: 0
Expand Down
3 changes: 2 additions & 1 deletion charts/authelia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ configMap:
port: 6379

## Optional username to be used with authentication.
username: authelia
# username: authelia
username: ""

## This is the Redis DB Index https://redis.io/commands/select (sometimes referred to as database number, DB, etc).
database_index: 0
Expand Down

0 comments on commit 8433545

Please sign in to comment.