authelia

by HelmForge

Helm chartv1.5.21App 4.39.28Apache-2.0Verified publisher

Authelia authentication and authorization server with SSO, MFA, and OpenID Connect

About this chart

Authelia Helm Chart

Deploy Authelia on Kubernetes — an authentication and authorization server with SSO, MFA (TOTP, WebAuthn, Duo), and OpenID Connect provider capabilities.

Features

  • Forward auth for Traefik, nginx, Caddy, and Envoy
  • Multi-factor authentication — TOTP, WebAuthn/FIDO2, Duo
  • OpenID Connect certified identity provider
  • File or LDAP authentication backends
  • SQLite, PostgreSQL, or MySQL storage backends
  • Redis session storage for stateless deployments
  • Access control rules with domain, user, group, and network policies
  • Brute force protection with configurable regulation
  • Prometheus metrics with optional ServiceMonitor
  • S3 backup — SQLite tar, pg_dump, or mysqldump with S3 upload
  • Ingress support with TLS via cert-manager
  • Gateway API — HTTPRoute via gateway.enabled=true (GR-060)
  • External Secrets Operator — opt-in ExternalSecret via externalSecrets.enabled=true (GR-061)
  • Dual-stack — service.ipFamilyPolicy / service.ipFamilies (GR-058)

Architecture

The chart runs the official Authelia image behind a named-port Service and optional Ingress or HTTPRoute. A rendered configuration Secret and separate credential/user Secrets are mounted read-only. SQLite uses the application PVC; production profiles can select bundled or external PostgreSQL/MySQL and optional Redis session storage. Native health and metrics listeners follow containerPorts, while the ingress-only NetworkPolicy limits reachable Pod ports without blocking external identity, mail or storage dependencies.

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install authelia helmforge/authelia -f values.yaml

OCI registry:

helm install authelia oci://ghcr.io/helmforgedev/helm/authelia -f values.yaml

Quick Start (SQLite)

jwtSecret, sessionSecret, and storageEncryptionKey are auto-generated on first helm install and persisted across upgrades via cluster lookup. No manual configuration required for direct installs.

GitOps users (Argo CD, Flux): set secrets.jwtSecret, secrets.sessionSecret, and secrets.storageEncryptionKey explicitly. Client-side rendering cannot perform cluster lookups, so leaving these empty will rotate credentials on every sync.

A disabled placeholder admin account is shipped because Authelia requires a non-empty file users database when the file backend is enabled. Enable it only after setting a strong password hash. Generate one with:

docker run authelia/authelia:4.39.28 authelia crypto hash generate argon2
# values.yaml — minimal production example
config:
  session:
    cookies:
      - domain: example.com
        authelia_url: "https://auth.example.com"
  access_control:
    default_policy: one_factor

usersDatabase:
  users:
    admin:
      disabled: false
      displayname: "Admin"
      email: "[email protected]"
      password: "$argon2id$v=19$m=65536,t=3,p=4$..."  # replace with your hash
      groups:
        - admins

Access via kubectl port-forward svc/<release>-authelia 9091:80.

PostgreSQL + Redis Mode

database:
  type: postgres

postgresql:
  enabled: true
  auth:
    password: "strong-password"

redis:
  enabled: true
  auth:
    password: "strong-redis-password"

MySQL Mode

database:
  type: mysql

mysql:
  enabled: true
  auth:
    password: "strong-password"

External Database

database:
  type: postgres
  external:
    host: postgres.example.com
    name: authelia
    username: authelia
    existingSecret: authelia-db-credentials

postgresql:
  enabled: false

Key Values

KeyDefaultDescription
config(see values.yaml)Full Authelia configuration rendered as YAML
containerPorts.http9091Native Authelia HTTP listener
containerPorts.metrics9959Native Prometheus listener
secrets.jwtSecret""JWT secret — auto-generated on first install if empty
secrets.sessionSecret""Session secret — auto-generated on first install if empty
secrets.storageEncryptionKey""Storage key — auto-generated on first install if empty
secrets.existingSecret""Use existing secret for credentials
database.typesqliteStorage backend: sqlite, postgres, mysql
usersDatabase.enabledtrueMount file-based users database
usersDatabase.usersdisabled admin placeholderInline user definitions. Enable only after setting a strong password hash
persistence.enabledtrueEnable PVC for /data
persistence.size1GiPVC size
ingress.enabledfalseEnable ingress
gateway.enabledfalseEnable Gateway API HTTPRoute (requires Gateway API CRDs)
externalSecrets.enabledfalseRender ExternalSecret for credentials (requires ESO)
service.ipFamilyPolicy~Dual-stack policy: SingleStack, PreferDualStack, RequireDualStack
service.ipFamilies[]Dual-stack IP families: IPv4, IPv6
networkPolicy.enabledtrueRestrict ingress to declared listeners
serviceAccount.automountServiceAccountTokenfalseKeep Kubernetes API credentials out of the Pod
metrics.enabledfalseEnable metrics service
backup.enabledfalseEnable S3 backups
podSecurityContext.fsGroup1000Run with a non-root writable group for persistent data
securityContext.runAsNonRoottrueRun Authelia without root privileges by default
postgresql.enabledfalseDeploy PostgreSQL subchart
mysql.enabledfalseDeploy MySQL subchart
redis.enabledfalseDeploy Redis subchart

Bundled Dependency Versions

The chart uses HelmForge-maintained subcharts for optional stateful services:

DependencyVersionUsage
PostgreSQL2.1.1Production storage backend
MySQL2.1.1Production storage backend alternative
Redis3.1.1Session storage for distributed/HA deployments

containerPorts.http and containerPorts.metrics are the listener source of truth. The chart generates server.address and telemetry.metrics.address from them, so the process, probes and named Service targets remain aligned.

For upgrades from releases before 1.5.18, retained config.server.address and config.telemetry.metrics.address values remain supported and take precedence over the corresponding containerPorts values until the legacy addresses are removed. Remove the matching legacy address before changing a listener through containerPorts.

Do not upgrade from chart 1.5.17 with --reuse-values alone. It can omit the newer networkPolicy parent map and make template rendering fail at .Values.networkPolicy.enabled. With Helm 3.14 or later, use helm upgrade RELEASE helmforge/authelia --reset-then-reuse-values --dry-run to preview the rendered release, then repeat the command without --dry-run. With Helm 3.13 or earlier, export the release overrides with helm get values RELEASE -o yaml > retained-values.yaml, preview with helm upgrade RELEASE helmforge/authelia --reset-values -f retained-values.yaml --dry-run, then repeat that command without --dry-run. The preview can contain rendered Kubernetes Secrets. Run it only in a trusted environment and keep its output out of logs. Create retained-values.yaml with permissions restricted to its owner and remove it immediately after the upgrade.

Security

Use stable existing Secrets or External Secrets for the JWT, session and storage encryption keys. Treat those values and the selected database as one recovery set; losing the storage encryption key permanently makes enrolled TOTP and WebAuthn data unreadable. Terminate TLS at a trusted proxy, configure trusted headers explicitly and restrict access to the rendered configuration Secret. The default read-only root filesystem uses a bounded /tmp volume, disables API token mounting and restricts ingress to the HTTP and optional metrics listeners. Set explicit networkPolicy.ingressFrom peers when the platform owns trusted proxy namespaces.

Troubleshooting

  • If the Pod does not become ready, inspect /api/health, application logs and database or Redis endpoints before restarting it.
  • If a custom port fails, confirm containerPorts.http or containerPorts.metrics; legacy listener addresses under config take precedence when retained from an older release.
  • If login redirects or cookies fail, verify the public Authelia URL, cookie domain, TLS scheme and reverse-proxy forwarded headers.
  • If MFA data cannot be decrypted, restore the matching database and original storage encryption key. Generating a replacement key does not recover data.

Forward Auth Configuration

Traefik

Add a middleware pointing to Authelia's forward-auth endpoint:

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
  name: authelia
spec:
  forwardAuth:
    address: http://<release>-authelia.<namespace>.svc.cluster.local/api/authz/forward-auth
    trustForwardHeader: true
    authResponseHeaders:
      - Remote-User
      - Remote-Groups
      - Remote-Email
      - Remote-Name

nginx

Use the auth_request directive:

auth_request /authelia;
auth_request_set $user $upstream_http_remote_user;

Upgrading to 4.39.28

The 4.39.23-4.39.28 patches fix OIDC client authentication, resource grants, client-credentials subjects, JARM responses, storage queries and SMTP IPv6 addresses. Remove the obsolete website configuration attribute from custom configuration. Review all intervening releases: 4.39.23, 4.39.24, 4.39.25, 4.39.26, 4.39.27, and 4.39.28.

The bundled dependency baseline is PostgreSQL 2.1.1, MySQL 2.1.1 and Redis 3.1.1. Their documented storage and authentication contracts remain unchanged.

Authelia 4.39.21 changes storage encryption to use HKDF and authenticated additional data; 4.39.22 fixes the access-token JWT session migration. Back up the database and retain the storage encryption key before upgrading. Allow startup migrations to complete before serving traffic. Restore the matching database backup and key if a rollback requires the previous storage format.

The chart preserves generated credentials through Helm cluster lookup. Use an existing Secret for GitOps or offline rendering, where lookup cannot retrieve the installed key. Do not rotate the storage key as part of an image update. After rollout, run authelia storage encryption check --config /config/configuration.yml inside the Authelia container and verify application health and MFA enrollment.

Release notes: 4.39.21, 4.39.22.

More Information

Security Scan: authelia

FrameworkScore
MITRE + NSA + SOC287.88%

Kubescape 4.0.14 scan of rendered Kubernetes resources on 2026-09-15; application authentication and storage behavior require separate runtime validation.

Deploy authelia with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has authelia on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartauthelia is pinned at v1.5.21 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply