Single sign-on (authelia)
Single sign-on on a Self Host Wizard box: the authelia piece, served at auth.<apps domain>, none sign-in, memory limit 80 MB.
At a glance
| Field | Value |
|---|---|
| Address | https://auth.<apps domain> |
| Sign-in | none: no office sign-in in front of it |
| Memory limit | 80 MB (ram_mb: measured peak × 1.3) |
| Database | none shared: it keeps its own data in THX_DATA |
| Needs | lldap |
| Needed by | boards, bookstack, drive, easyappointments, espocrm, forgejo, freescout, glitchtip, home, listmonk, radicale, snappymail, umami, uptime-kuma, vaultwarden, vikunja |
| Containers | authelia |
Image: authelia | authelia/authelia:4.39.28@sha256:bd97cff4fcbf715b5ff1f9ae286afbe6033afce385302520b0368122d43a6f54 |
| Licence (from the README) | Apache-2.0 |
| Upstream (from the README) | https://www.authelia.com |
Turn it on
thx enable adds authelia and everything it needs to the box's state; thx apply then installs it. Apps are applied only once site_domain is set.
sudo thx enable authelia
sudo thx apply
Engineering notes (pieces/authelia/README.md)
Authelia 4.39.28, Apache-2.0. Image authelia/authelia:4.39.28, pinned by index
digest sha256:bd97cff4…a6f54; the index has linux/arm64 (docker buildx imagetools inspect,
2026-11-24). Upstream image, unmodified.
How it is wired
- Users from LLDAP (
implementation: lldap, bound asthx-readonly). Password change/reset are disabled here: that is LLDAP's web UI. SQLite storage and the session inTHX_DATA/ memory; one session cookie for the whole apps domain. Two config files:
files/configuration.yml(shipped, the same everywhere) andfiles/generated.yml(written bythx applyfrom the enabled pieces):access_control:one_factorfor every forward-auth host; defaultdeny.identity_providers.oidc: one client perauth = "oidc"piece, its secret stored as a pbkdf2-sha512 digest (the plain secret is only in that piece's own .env), redirect URIs and scopes from its piece.toml,token_endpoint_auth_methodper piece. The RSA key that signs ID tokens isoidc_jwks_key.pem, generated on the box.- notifier: SMTP to the mail piece when it is enabled, otherwise the filesystem notifier.
- Caddy puts
forward_authtoauthelia:9091/api/authz/forward-authin front of everyauth = "forward"piece and passes onlyRemote-User,Remote-Groups,Remote-Email,Remote-Name(a client-sent copy is overwritten; tested).
Measured
RAM: measured peak 61 MiB (anon + shmem + kernel from memory.stat, sampled through the whole check.sh docker stage including a 10-client database load; 124 MiB with page cache) × 1.3 = ram_mb 80, mem_limit 80m. Measured 2026-11-25, e2e run 6.
Known gaps
- Tested on the dev PC: forward auth, first-factor login (right and wrong password), the OIDC code flow
with userinfo + ID token claims and a wrong client secret refused. NOT tested: the branch with no forward
hosts at all (
default_policy: one_factorthere), mail notifications through Stalwart, 2FA enrolment. - Changing the client list recreates the container (a few seconds of no login).