Skip to content

Commit

Permalink
authelia: update to 4.38
Browse files Browse the repository at this point in the history
Still needs proper migration when doing reset instead of a full reset
  • Loading branch information
saltydk committed Mar 14, 2024
1 parent c37e607 commit ec904ed
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
6 changes: 2 additions & 4 deletions roles/authelia/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ authelia_notifier_smtp_tls_minimum_version: ""
# Settings for Authelia's server
# Reference: https://www.authelia.com/configuration/miscellaneous/server/
# https://www.authelia.com/c/server#buffer-sizes
authelia_server_host: "0.0.0.0"
authelia_server_port: "9091"
authelia_server_path: ""
authelia_server_address: "0.0.0.0:9091"
authelia_server_buffers_read: "10485760"
authelia_server_buffers_write: "10485760"
authelia_server_enable_pprof: "false"
Expand Down Expand Up @@ -200,7 +198,7 @@ authelia_docker_container: "{{ authelia_name }}"

# Image
authelia_docker_image_pull: true
authelia_docker_image_tag: "4.37"
authelia_docker_image_tag: "4.38"
authelia_docker_image: "authelia/authelia:{{ authelia_docker_image_tag }}"

# Ports
Expand Down
35 changes: 23 additions & 12 deletions roles/authelia/templates/configuration.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Authelia configuration #
###############################################################

jwt_secret: {{ authelia_jwt_secret }}
identity_validation:
reset_password:
jwt_secret: {{ authelia_jwt_secret }}

# Options are light, dark, grey or auto
theme: {{ authelia_theme }}
Expand All @@ -15,17 +17,16 @@ default_redirection_url: {{ authelia_default_redirection_url }}
default_2fa_method: "{{ authelia_default_2fa_method }}"

server:
host: {{ authelia_server_host }}
port: {{ authelia_server_port }}
path: "{{ authelia_server_path }}"
address: {{ authelia_server_address }}
buffers:
read: {{ authelia_server_buffers_read }}
write: {{ authelia_server_buffers_write }}
enable_pprof: {{ authelia_server_enable_pprof }}
enable_expvars: {{ authelia_server_enable_expvars }}
disable_healthcheck: {{ authelia_server_disable_healthcheck }}
headers:
csp_template: "{{ authelia_server_headers_csp_template }}"
endpoints:
enable_pprof: {{ authelia_server_enable_pprof }}
enable_expvars: {{ authelia_server_enable_expvars }}

log:
level: {{ authelia_log_level }}
Expand Down Expand Up @@ -89,7 +90,7 @@ authentication_backend:
{% if authelia_authentication_backend == 'ldap' %}
ldap:
implementation: custom
url: ldap://lldap:3890
address: ldap://lldap:3890
start_tls: false
tls:
skip_verify: true
Expand All @@ -99,11 +100,14 @@ authentication_backend:
users_filter: "(&({username_attribute}={input})(objectClass=person))"
additional_groups_dn: ou=groups
groups_filter: "(member={dn})"
group_name_attribute: cn
mail_attribute: mail
display_name_attribute: displayName

user: uid={{ user.name }},ou=people,dc={{ authelia_domain.stdout }},dc={{ authelia_tld.stdout }}
password: {{ user.pass }}
attributes:
group_name: cn
display_name: displayName
mail: mail

{% endif %}

password_policy:
Expand Down Expand Up @@ -132,12 +136,19 @@ session:
secret: {{ lookup('password', '/dev/null chars=ascii_letters,digits length=32') }}
expiration: 1h
inactivity: 5m
remember_me_duration: 1M
remember_me: 1M
same_site: lax
domain: {{ user.domain | lower }}
redis:
host: authelia-redis
port: 6379
cookies:
- domain: {{ authelia_web_domain | lower }}
authelia_url: {{ authelia_web_url | lower }}
name: authelia_{{ authelia_web_domain | lower }}
same_site: lax
inactivity: 5m
expiration: 1h
remember_me: 1M

regulation:
max_retries: 3
Expand Down

0 comments on commit ec904ed

Please sign in to comment.