r/Authentik • • 2d ago

Notice of upcoming authentik Security releases 2026.8.7 and 2026.5.9

55 Upvotes

We'll be publishing eleven security issues (GHSA-55mc-jpww-xm3p, GHSA-j3px-vjgh-6p6f, GHSA-hp5v-fgcf-jhrh, GHSA-g9hc-mm35-wh9v, GHSA-9r9v-255q-7ffr, GHSA-jw8g-8f5p-9pwm, GHSA-p8h5-jjx3-27hf, GHSA-pcqx-8jx6-68x4, GHSA-6v2c-352p-ghmw, GHSA-4x4c-384x-386f, GHSA-pvq8-8pj6-m4r4) and accompanying fixes on 2026-11-25 at 15:00 UTC with the Severity levels: Critical, High, and Moderate.

For more info, see the authentik Security policy here: https://goauthentik.io/docs/security/policy.


r/Authentik • • 5h ago

Release of authentik Security releases 2026.8.7 and 2026.5.9

28 Upvotes

The following security advisories have been published:

Releases 2026.8.7 and 2026.5.9 with fixes included are available here:

  • ghcr.io/goauthentik/server:2026.8.7
  • ghcr.io/goauthentik/server:2026.5.9
  • ghcr.io/goauthentik/proxy:2026.8.7
  • ghcr.io/goauthentik/proxy:2026.5.9

r/Authentik • • 10d ago

Ad user password reset and MFA turn on Enterprise only?

11 Upvotes

I was monitoring this feature for a while https://github.com/goauthentik/authentik/pull/24846 hoping this would land in November. It was the last thing i needed for a migration to authentik from keycloak. It doesn't seem like an enterprise feature to me it seems very basic support. It is very disappointing that this is an enterprise only feature.


r/Authentik • • 16d ago

Attempting to use authentik - Two big issues [local files 404 / unhealthy outpost]

3 Upvotes

Issues

I spent the past few days installing / configuring authentik as an SSO provider for all of my self-hosted services. While SSO seems to work, there are two issues which plague my installation and make me hesitant to rely on the product.

1. Local files always give 404 errors when accessed.

Any uploaded files are completely unusable. Software logos do not show up on the dashboard, custom branding gives a 404, etc... Any attempt to access the files results in a 404 error. There are no errors during upload, file permissions are fine [they can be accessed as the authentik user within the container], they are stored under the /data/media directory hierarchy, and were uploaded via the customization -> files workflow.

2. Embedded outpost shows as unhealthy.

This one is perplexing as well. This is a fresh install on an empty database. When I initially thought about setting up authentik months ago [2026.5], that install showed healthy. This install does not, despite using the same configuration outside of updating the container image version and moving the data mount point.

While things appear to be working, it's hard to trust something when its internal systems fail healthchecks on a fresh install.

General Setup

Authentik version: 2026.8.5

Authentik sits behind two reverse proxies, one accessible from the public internet [proxy1] and one on the edge of my private network [proxy2]. They are connected via wireguard tunnel. Both proxies are running caddy.

TLS certificates are obtained via proxy1 using lets encrypt. It speaks plain http to proxy2 over the tunneled interface [TLS is forced off on proxy2]. Traffic for the auth.mydomain.tld domain is proxied over authentik's port 9000.

I have looked at the proxy setup numerous times to see if maybe that was the failure point, but curl -v $URL shows everything working fine up to authentik itself throwing the 404. AFAICT, all the appropriate headers are forwarded.

Authentik itself, is running via podman quadlet. The server / worker share a pod. The podman socket is mounted in the worker. The /data and /templates volumes are shared between both containers and point to the same locations. Everything is readable / writable from within the containers, as the authentik user.

Installation is using the nearest equivalent to the default docker compose, just converted to quadlet format.

Quadlet Configuration Files

authentik.env

AUTHENTIK_POSTGRESQL__USER=authentik
AUTHENTIK_POSTGRESQL__NAME=authentik
AUTHENTIK_POSTGRESQL__PASSWORD=<REDACTED>
AUTHENTIK_SECRET_KEY=<REDACTED>

authentik.pod

[Pod]
PodName=authentik
PublishPort=9000:9000
ShmSize=512m

# UID/GID Map ##################################################################
UIDMap=+1000:2000:1
GIDMap=+1000:2000:1

[Install]
WantedBy=default.target

authentik-server.container

[Unit]
Description=Authentik Server Container (Authentik)
Wants=NetworkManager-wait-online.service
After=NetworkManager-wait-online.service wait-remote-db-online.service

[Container]
ContainerName=authentik-server
Pod=authentik.pod

Image=docker.io/authentik/server:2026.8

# Environment ##################################################################
EnvironmentFile=authentik.env
Environment=AUTHENTIK_POSTGRESQL__HOST=<REDACTED>

# Volumes ######################################################################
Volume=/var/mnt/authentik/data:/data:z
Volume=/var/mnt/authentik/templates:/templates:z

Exec=server
AutoUpdate=registry

[Service]
Restart=always

[Install]
WantedBy=default.target

authentik-worker.container

[Unit]
Description=Authentik Worker Container (Authentik)
Wants=NetworkManager-wait-online.service
After=NetworkManager-wait-online.service wait-remote-db-online.service

[Container]
ContainerName=authentik-worker
Pod=authentik.pod

Image=docker.io/authentik/server:2026.8

# Environment ##################################################################
EnvironmentFile=authentik.env
Environment=AUTHENTIK_POSTGRESQL__HOST=<REDACTED>

# Volumes ######################################################################
Volume=/var/mnt/authentik/data:/data:z
Volume=/var/mnt/authentik/templates:/templates:z
Volume=/var/mnt/authentik/certs:/certs:Z
Volume=/run/user/1000/podman/podman.sock:/var/run/docker.sock

Exec=worker
AutoUpdate=registry

[Service]
Restart=always

[Install]
WantedBy=default.target

Notes

The UID/GID mapping is a quirk of my environment. All services store their data under UID/GID 2000, which gets mapped to a subuid/subgid pair that is consistent among containers. This allows me to store most static files on NFS easily.

AFAICT, this has zero impact, unless authentik is somehow surfacing a quirk that no other container does. Inside the container namespace, all files are owned by the authentik user.

I use dedicated VMs for databases to keep redundancy to a minimum and allow for potential expansion ease. As a result, I am providing the host address in an environment variable, and have a dependency on its availability.

Neither of these should be the issue [unless I'm missing something], as the authentik user has no permission issue when accessing files inside the container, and it can definitely access the database. Everything else is pretty close to default configuration.

The podman socket user unit is active, and the socket is available.

Thoughts

Things appear to be working superficially. I can log into services via SSO with this setup. It's just the big blue circle in the dashboard and broken icons for services making things look very half-assed.

I am hesitant to trust this as my SSO provider, because while it appears to be working, it also appears to be broken, and uncertainty isn't something I want in my IDP.

I know this seems light on details, but honestly... it's a default install. It should "just work" but it doesn't. I am perfectly willing to provide redacted configurations or logs if someone has a clue as to why it isn't working.


r/Authentik • • 19d ago

Authentik-Community-Edition User/Pass/Group-Sync

1 Upvotes

Hi there!

I have Authentik running on my homeserver managing (a handfull of) users from LAN and VPN(netbird).

SSO, auto-create-user and domainlevel-auth for (almost) every web-application! Its great! Can't get enough!

The connection to my network via netbird is required by some services i offer, but most of the standard web-applications do not.

So.. since i'd really like to lower the barrier-to-entry for my older folks, to be able to 'just-log-in' on any device with a browser, and really really really do not want to open any ports to my homeserver itself, i got myself a vServer in hopes my imagination somewhat overlaps with reality.

I created a dedicated Wireguard-Tunnel beween the Docker-Networks on the Home- and vServer.
As a Note: Homeserver-FQDN is reachable from anything within the vServer-Docker-Network, the LAN and Netbird-VPN, but not from the wider internet itself.

As

Now... since 1)I'm lazy, 2)My users shouldnd have to manage different credentials for each 'entrypoint' and 3)It seems like a 'thing' possible;
i'd like to treat Authentik on the Homeserver as the Master-Instance where i actually manage users and groups, and sync all groups/users from there to the vServer.

I feel like in the past week i tried almost all possible configuration options and i do not get any form of 'usable' sync to work.

LDAP-Full-Sync:
Got the LDAP-Server running and the LDAP-Source succsessfully tests connectivity.
Sync always errors out with something to do with 'distinguishedName'.
Tried all suggested workarounds and installed an ldap-proxy to test.. no joy.
Spend literal days trying out stuff.

SCIM-Sync:
I got SCIM setup and working properly pretty quick.
It is syncing Users and Groups, but still needs the password to login.
Here i tried the 'LDAP-Way' and some pythonscript-api-sorcery to get those passwordhashes over to the vServer, but failed miserably.

OIDC/SAML:
ruled out because of no internet-user to Master-Authentik connectivity.

Is this just me beeing rediculously stupid(very real possibility)?
Does any kind soul have a working sync running that fits my needs and would be willing to share the config?

ty in advance

[edit]
forgot to mention that i'm running on the current 2026.8.5 version
also, i know there is not enough info here to properly 'debug'..
this is just because i'm realy realy frustrated and am actually looking for a confirmed working configuration since i feel i have exhausted the internets extend of documentation, examples und samples in this matter.
and maybe its just pebkac, but usually i do grasp the configuration options of something when i see them and can set then accordingly. At latest after reading the relating docs..
[/edit]

[edit2] Workaround: Bi-Directional Password Hash Sync between Master & Edge Authentik via Webhooks & SCIM

I have spent the last few days messing around with the setup. After many more failures, I've got a working workaround for my setup!

I sync users/groups via SCIM. The password hashes get synced by a script that is run once manually after setup and then is triggered automatically by webhooks. When a user changes their password on either side (or an admin does it for them), a webhook gets triggered to run the script. The script then looks at the 'last changed' timestamp for the user's password on both sides and copies the more current side's password hash to the other.

I feel a little dirty since I'm actually touching the databases and would prefer not to, but I guess it's okay...?

For anyone in a situation similar to mine, here is a little setup guide for what I have running and working now.

Some notes before I start:

  • Versions: This setup is built around one master and (only!) one edge Authentik, both running 2026.8.5.
  • Network: Some form of a fully functional VPN tunnel between the master- and edge-Authentik Docker networks is assumed.
  • SCIM Setup: Also, I assume you've got SCIM successfully syncing users, groups, and linking the users to the correct groups.
  • I configured SCIM to only sync specific groups and only users within a 'Sync-Group'.
  • The script will also use a (configurable) group for limiting which users get synced.

⚠️ NOTE: I'm sadly NO code wizard... AI did the work! I do not have the capability to check 'code integrity' or anything like that! Personally, I feel comfortable running this on my humble setup because, from what I do understand, the code seems not to be doing anything 'funky' that it isn't supposed to, and it is only accessible from within the internal Docker network. Check the code, or run it as is — you have been informed, and if anything should go wrong, it's on you. All I can guarantee is that this configuration and script are currently working as intended on my setup, and that I do not have any ill intent in sharing this. (Funky that I feel compelled to even mention all that...)

⚠️ Backup First!

Because we are messing with password hashes, a 'mishap' may lead to you not being able to log in! This is why I highly suggest, before doing anything at all:

  1. Shut down both Authentik instances.
  2. Back up their DBs (e.g., sudo cp -rp ./postgres ./postgres.working.backup).
  3. Restart them.
  4. Just in case something does go wrong, you simply shut down Authentik again, remove the currently faulty DB (e.g., sudo rm -r ./postgres), copy the backup (e.g., sudo cp -rp ./postgres.working.backup ./postgres), and start it back up.

Prerequisites

Things you will need to have handy during the process:

  • IPs of the master & edge Authentik Postgres containers: If not done yet, maybe set the current container IPs as static IPs for the Postgres containers to avoid headaches if Docker should ever decide to assign them a new IP.
  • DB passwords of both master & edge.
  • Name of the group you intend to use as the 'Sync-Group' to only sync its members.
  • Name of the Docker network the master Authentik is running in.
  • An unused IP to be assigned to the Webhook container in the master Authentik Docker network.

Step-by-Step Guide: The 'Master' Side

  1. Create the Required Files

We need 2 files to be mounted in the Docker container that acts as the Webhook target.
First, create a directory for the files anywhere you like (e.g., /opt/authentik/password-sync).
The two files we need are hooks.json and password-sync.py.
• /opt/authentik/password-sync/hooks.json (Just copy/paste):

[
  {
    "id": "authentik-user-sync",
    "execute-command": "/usr/local/bin/python3",
    "command-working-directory": "/app",
    "pass-arguments-to-command": [
      {
        "source": "string",
        "name": "/app/password-sync.py"
      },
      {
        "source": "payload",
        "name": "event_user_username"
      }
    ]
  }
]

• /opt/authentik/password-sync/password-sync.py (Insert your values in the configuration section):

import os
import sys
from datetime import datetime
import psycopg2
from psycopg2.extras import RealDictCursor

# --- CONFIGURATION ---
SYNC_GROUP = "<SYNC_GROUP>"
DB_MASTER = {
    "host": "<MASTER_DB_IP>", "port": 5432, "database": "authentik", "user": "authentik", "password": "<MASTER_DB_PASSWD>"
}
DB_EDGE = {
    "host": "<EDGE_DB_IP>", "port": 5432, "database": "authentik", "user": "authentik", "password": "<EDGE_DB_PASSWD>"
}
# ^^^ CONFIGURATION ^^^

def is_user_in_sync_group(conn, username):
    """Checks if the user is a member of the configured sync group."""
    query = """
        SELECT 1 FROM authentik_core_user u
        JOIN authentik_core_user_groups ug ON u.id = ug.user_id
        JOIN authentik_core_group g ON ug.group_id = g.group_uuid
        WHERE u.username = %s AND g.name = %s;
    """
    with conn.cursor() as cur:
        cur.execute(query, (username, SYNC_GROUP))
        return cur.fetchone() is not None

def get_user_crypto_data(conn, username):
    """Retrieves password hash and change timestamp."""
    query = "SELECT password, password_change_date FROM authentik_core_user WHERE username = %s;"
    with conn.cursor(cursor_factory=RealDictCursor) as cur:
        cur.execute(query, (username,))
        return cur.fetchone()

def update_user_password(conn, username, password_hash, change_date):
    """Updates the password hash and its change timestamp."""
    query = """
        UPDATE authentik_core_user
        SET password = %s, password_change_date = %s, last_updated = NOW()
        WHERE username = %s;
    """
    with conn.cursor() as cur:
        cur.execute(query, (password_hash, change_date, username))
    conn.commit()

def sync_user(username):
    print(f"[*] Trigger received for user: {username}")
    try:
        conn_master = psycopg2.connect(**DB_MASTER)

        # 1. Group membership check on the Master instance
        if not is_user_in_sync_group(conn_master, username):
            print(f"[x] Abort: User '{username}' is not a member of the group '{SYNC_GROUP}'.")
            conn_master.close()
            return

        conn_edge = psycopg2.connect(**DB_EDGE)

        master_data = get_user_crypto_data(conn_master, username)
        edge_data = get_user_crypto_data(conn_edge, username)

        # Safety check: Does the user exist on both sides?
        if not master_data:
            print(f"[!] User {username} is missing on the Master instance.")
            return
        if not edge_data:
            print(f"[i] User {username} is missing on the Edge instance. SCIM provisioning might still be running. Aborting for now.")
            return

        m_time = master_data['password_change_date']
        e_time = edge_data['password_change_date']
        
        # SAFEGUARD: Detect if the Edge user has an empty/uninitialized password from SCIM
        is_edge_scim_dummy = edge_data['password'] == "" or edge_data['password'] is None

        # If Edge password is empty, force sync from Master to Edge regardless of timestamps
        if is_edge_scim_dummy:
            print(f"[!] Safeguard triggered: Edge user '{username}' has an empty SCIM password. Forcing Master-to-Edge sync...")
            update_user_password(conn_edge, username, master_data['password'], m_time)
            print("[+] Edge initialized with Master password successfully.")
            
        elif m_time > e_time:
            print(f"[>] Master is newer. Copying hash to Edge...")
            update_user_password(conn_edge, username, master_data['password'], m_time)
            print("[+] Edge updated successfully.")
            
        elif e_time > m_time:
            print(f"[<] Edge is newer. Copying hash to Master...")
            update_user_password(conn_master, username, edge_data['password'], e_time)
            print("[+] Master updated successfully.")
            
        else:
            print("[=] Already synchronized.")

    except Exception as e:
        print(f"[ERROR] Sync failure: {e}", file=sys.stderr)
    finally:
        if 'conn_master' in locals() and conn_master: conn_master.close()
        if 'conn_edge' in locals() and conn_edge: conn_edge.close()

if __name__ == "__main__":
    if len(sys.argv) > 1:
        sync_user(sys.argv[1])
    else:
        print("Please provide a username as an argument.")

2. Creating the Webhook Container

Set the network name, container IP, and the path you created.
This is a standalone YAML, but I actually integrated it into the Authentik stack of the master. yaml

services:
  authentik-pwd-sync:
    image: python:3.11-alpine
    container_name: authentik-password-sync
    restart: unless-stopped
    volumes:
      - <PATH_TO_FILES>/password-sync.py:/app/password-sync.py:ro
      - <PATH_TO_FILES>/hooks.json:/app/hooks.json:ro
    working_dir: /app
    entrypoint: >
      /bin/sh -c "
      apk add --no-cache webhook postgresql-dev gcc musl-dev &&
      pip install --no-cache-dir psycopg2-binary &&
      exec /usr/bin/webhook -hooks /app/hooks.json -ip 0.0.0.0 -port 9000 -verbose
      "
    networks:
      <MASTER_DOCKER_NETWORK_NAME>:
        ipv4_address: <NEW_WEBHOOK_IP>
networks:
  <MASTER_DOCKER_NETWORK_NAME>:
    external: true

3. Testing & Initializing

At this point, it is assumed that you have:

  • Users with passwords inside the 'Sync-Group' on the master Authentik.
  • The users and all the groups you want/need synced via SCIM to the edge Authentik.

Before the setup does everything automatically: for existing users, you need to sync the current master users' passwords to the edge once manually.
This also gives you the opportunity to test if the DB connections to both the master and the edge are working before continuing any further.

Let's manually get all users within the 'Sync-Group' from the master and then trigger the script to sync all matching users.
Check both the container names, set the <SYNC_GROUP>, and run this on the master:

docker exec -i authentik-postgresql-1 psql -U authentik -d authentik -t -A -c "
  SELECT u.username 
  FROM authentik_core_user u
  JOIN authentik_core_user_groups ug ON u.id = ug.user_id
  JOIN authentik_core_group g ON ug.group_id = g.group_uuid
  WHERE g.name = '<SYNC_GROUP>';
" | xargs -I {} docker exec -i authentik-password-sync /usr/local/bin/python3 /app/password-sync.py {}

Expected output should look something like this:

[*] Trigger received for user: TestUserA1
[!] Safeguard triggered: Edge user 'TestUserA1' has an empty SCIM password. Forcing Master-to-Edge sync...
[+] Edge initialized with Master password successfully.
[*] Trigger received for user: TestUserB2
[!] Safeguard triggered: Edge user 'TestUserB2' has an empty SCIM password. Forcing Master-to-Edge sync...
[+] Edge initialized with Master password successfully.
[*] Trigger received for user: TestUserC3
[!] Safeguard triggered: Edge user 'TestUserC3' has an empty SCIM password. Forcing Master-to-Edge sync...
[+] Edge initialized with Master password successfully.

In the above example, all test users are now able to log in with their passwords on the edge Authentik! Give it a try with one of your (test) users! If this is not working, some debugging needs to be done.
This is the heart of the whole operation and needs to be running!

4. Master Authentik Configuration

To trigger the password sync automatically when the user themselves changes their password (or an admin does it for them), we need to set up only a few things in Authentik itself:

4.1) Filter Policy

Go to Customization -> Policies.

Create a new policy:

• Policy Type: Expression Policy

• Name: Filter-User-Updates

• Expression:

event_obj = request.context.get("event")
if event_obj:
    # Captures user self-service changes AND admin password resets
    return event_obj.action in ["user_write", "password_set"]
return False

4.2) Defining the Webhook Channel (Notification Transport)

  • Go to Events -> Notification Transports.
  • Create a new notification transport:
  • Name: Trigger-Local-Container-Sync
  • Mode: Webhook (generic)
  • Webhook URL: http://<NEW_WEBHOOK_IP>:9000/hooks/authentik-user-sync

4.3) Activating the Automation Rule (Notification Rule)

  • Go to Events -> Notification Rules.
  • Create a new notification rule:
  • Name: Sync-Passwords-To-Local-Container
  • Group: authentik Admins
  • Selected Transports: Trigger-Local-Container-Sync
  • Save the new rule.
  • Look for the newly created Sync-Passwords-To-Local-Container in the list.
  • Expand it by clicking the > on the very left.
  • Inside the expansion on the top left, click on the blue 'Create or bind...' button. • Select 'Bind an existing policy'.
  • Select Policy: Filter-User-Updates

4.4) Testing the Master

Congrats! The master side is done!
At this point, you could watch the logs of the container (e.g., docker logs -f authentik-password-sync) and should see any password changes by a user or admin on the master being synced to the edge instantly.
Expected log when changing a password:

[webhook] date+time [0048ab] incoming HTTP POST request from 172.x.x.14:55944
[webhook] date+time [0048ab] authentik-user-sync got matched
[webhook] date+time [0048ab] authentik-user-sync hook triggered successfully
[webhook] date+time [0048ab] 200 | 0 B | 122.19µs | 172.x.x.34:9000 | POST /hooks/authentik-user-sync
[webhook] date+time [0048ab] executing /usr/local/bin/python3 (/usr/local/bin/python3) with arguments ["/usr/local/bin/python3" "/app/sync_passwords.py" "TestUserC3"] and environment [] using /app as cwd
[webhook] date+time [0048ab] command output: [*] Trigger received for user: TestUserC3
[>] Master is newer. Copying hash to Edge...
[+] Edge updated successfully.
[webhook] date+time [0048ab] finished handling authentik-user-sync

5. Setting up the Edge

It's pretty much the same as on the master, but with some name changes.

5.1) Filter Policy

Go to Customization -> Policies.

Create a new policy:

Policy Type: Expression Policy

• Name: Filter-User-Updates

• Expression:

event_obj = request.context.get("event")
if event_obj:
    # Captures user self-service changes AND admin password resets
    return event_obj.action in ["user_write", "password_set"]
return False

5.2) Defining the Webhook Channel (Notification Transport)

  1. Go to Events -> Notification Transports.
  2. Create a new notification transport:
  3. • Name: Trigger-Master-Container-Sync
  4. • Mode: Webhook (generic)
  5. • Webhook URL: http://<NEW_WEBHOOK_IP>:9000/hooks/authentik-user-sync

5.3) Activating the Automation Rule (Notification Rule)

  1. Go to Events -> Notification Rules.
  2. Create a new notification rule:
  3. • Name: Sync-Passwords-To-Master
  4. • Group: authentik Admins
  5. • Selected Transports: Trigger-Master-Container-Sync
  6. Save the new rule.
  7. Look for the newly created Sync-Passwords-To-Master in the list.
  8. • Expand it by clicking the > on the very left.
  9. • Inside the expansion on the top left, click on the blue 'Create or bind...' button.
  10. • Select 'Bind an existing policy'.
  11. • Select Policy: Filter-User-Updates

5.4) Testing the Edge

Now, any password change will trigger the script. It will then check which side's password is more current and overwrite the side with the older password. Fully automatic! The Docker log output should be the same as on the master side, but the messages will indicate a write from edge to master.

6.0) Adding New Users

Pretty much as usual, I think...

  1. Add a new user on the Master.
  2. Assign them (at least) to the 'Sync-Group'.
  3. Set the user's password. User/group changes will be instantly pushed to the edge via SCIM, and the password is sent over as soon as you set it. That said... I'm just having the thought that it may not behave correctly if you set the password before assigning the groups. Well... frankly, I have had enough of tinkering around with user/group sync in Authentik for the foreseeable future and don't see myself debugging this—if it is a problem at all, that is.

Conclusion

Well... I really hope I didn't miss any steps, but this should be it. Let me and others who might read this know if there are any glaring issues. Also, feel free to use any of the code I posted as you like—it's not mine, and I do not know where the AI stole it. In case you try it, please also let people know if this is working for you!

Happy Authin' yall :o) [/edit2]


r/Authentik • • 21d ago

Help with a weird config

3 Upvotes

Hi all,

I've got an upcoming project that uses Authentik, so I've been trying to get setup with it in my own sort of sandbox to play with google auth and user matching.

The setup is a little goofy, I have Authentik running on the same vps as a toy frontend app. The app has a domain name and ssl set up. NginX is reverse proxy. The proxy, app and authentik are on the same docker network.

In order to avoid getting another domain I set up appname.com/authentik/ for login.

The trouble comes after logging in. It attempts to route me back to the app with an auth token but this produces a 502. I've added beefed up proxy buffer configs to my headers.

The app was accessible previously without authentik.

Has anybody wrote nginx configs in a similar setup? Any tips?

Pretty new to this. Thank ye kindly...


r/Authentik • • 25d ago

Authentik behind Nginx issues

Post image
14 Upvotes

I have a Authentik rootless podman container running and have no issues being able to log in when directly connecting to the container URL: http://podman:9000. To keep exposing podman ports ourside the server and the ability to use https ACME certificates i stood up a NGINIX server on baremetal listening to 443. Setup NGINIX according to documentation on the authentik website and was able to get to the aginix splash screen. However, i cannot log in i just get the message **"**The request failed and the interceptors did not return an alternative response" I can log in normally when going direct to the container but not through NGINIX. Thanks!

Below is my NGINIX config:

upstream authentik {

server 192.168.1.13:9000;

keepalive 10;

}

map $http_upgrade $connection_upgrade_keepalive {

default upgrade;

'' '';

}

server {

# HTTPS server config

http2 on;

server_name authentik.twistedpair.org;

# TLS certificates

add_header Strict-Transport-Security "max-age=63072000" always;

listen 443 ssl; # managed by Certbot

ssl_certificate /etc/letsencrypt/live/authentik.twistedpair.org/fullchain.pem; # managed by Certbot

ssl_certificate_key /etc/letsencrypt/live/authentik.twistedpair.org/privkey.pem; # managed by Certbot

include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot

ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

# If authentik is served under a subpath, also review:

# https://docs.goauthentik.io/install-config/configuration/#authentik_web__path

location / {

proxy_pass http://authentik;

proxy_http_version 1.1;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Host $http_host;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection $connection_upgrade_keepalive;

}

}

EDIT:

u/OhBeeOneKenOhBee was correct... NGINX didn't like the 'proxy_pass <hostname>:9000' and it wanted 127.0.0.1:9000. Then i needed to change the Authentik's 'AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS' to 127.0.0.1.

I didn't want podman to publish the port ourside the host unless it went only through NGINX and not podman.


r/Authentik • • Oct 21 '26

Release of authentik Security releases 2026.8.5 and 2026.5.8

27 Upvotes

Releases 2026.8.5 and 2026.5.8 are available here:

  • ghcr.io/goauthentik/server:2026.8.5
  • ghcr.io/goauthentik/server:2026.5.8

These releases include updates to all dependencies that mitigate the eMudhra Intermediate CA Compromise (see https://emudhra.we-have-a-problem.com/)


r/Authentik • • Oct 14 '26

Pull email_verified and go through email verification if false

5 Upvotes

I'm trying to setup my default auth flow to check email_verified and if false, send a verification email and I can't figure it out.

User accounts and groups are all in MS Active directory and already exist.

I do not want to blanket add email verified, I want them all to have to verify.


r/Authentik • • Oct 10 '26

I am unable to switch to cloudflare

1 Upvotes

Hi all,
I was using dynu for ddns and I was opening port on my router. I have switched to cloudflared tunnels and using another domain so far everything is working fine except authentik. My previous domain still works fine however authentik is popping up this error each time.
My current setup is

  • Everything is on docker
  • Cloudflared -> npmplus:80 -> authentik-server-1:9000
  • I am forcing SSL on cloudflared, I couldn't have it running with custom certificates I have obtained from cloudflare
  • I have tried

    • Cloudflared -> npmplus:80 -> authentik-server-1:9443
    • Cloudflared -> npmplus:443 -> authentik-server-1:9443

      • Cloudflare ->npmplus:443 doesn't work for anything
    • I changed branding settings didn't change anything at all
    • I asked AI, gave me some nginx headers to force SSL - didn't work

At this stage I am not sure if this is an authentik problem or an npmplus problem but I am open to all the suggestions.
Thank you all in advance


r/Authentik • • Oct 03 '26

Passing Basic WebAuth??

5 Upvotes

So I'm just getting Authentik setup with NPM, and so far despite the learning curve, it's been really nice. I do love being able to lock down a particular app that doesn't have it's own auth, but that I'd like to be able to log into remotely, but keep it secure. That's been great!

I have other apps however that have basic web auth. OpenMediaVault for instance. I often will log into my server from work to do things. Having Authentik means I can now lock this down which is great!! I'd love if Authentik could log into the web interface for me though. I have a few other apps as well, but this is an example.

I did set the "custom http basic auth" in the provider. Is there something different I need to do in NPM? It currently doesn't seem to be working. Any help would be appreciated!


r/Authentik • • Oct 02 '26

Expose Authentik to Internet

11 Upvotes

So far, I've been using Authentik for various services internally only.

Since I want my Gitea instance to be accessible from Internet, with Authentik as the OIDC provider, I'm interested in: Is it safe to expose Authentik to the Internet?

I'm using Traefik, btw. as the reverse proxy. My domains are registered at Cloudflare.


r/Authentik • • Sep 25 '26

Help with authentik LDAP

2 Upvotes

I had configured a LDAP outpost with everything working on my Jellyfin, but after updating yesterday to 2026.8.3 it stopped working, only my LDAP, the user is in the LDAP search group and has every needed permission to my knowledge, but it still gives the LDAPInsufficientAccessRightsResult. Can someone give me a light on this pls?


r/Authentik • • Sep 24 '26

Weird behavior with proxy/forward_auth provider after enabling profile photo uploads

5 Upvotes

I am relatively new to Authentik and am loving it so far. I use it for SSO for my modest homelab, which I use to host a small number of private services for my immediate family. I managed to set up a number of Applications and Providers for my local services, and everything was working well, when I discovered the option for enabling custom avatar uploads. I created a custom.avatar.upload prompt and integrated it into the settings flow and uploaded a profile avatar for my account. I quickly discovered that the default OpenID 'profile' scope includes the actual uploaded avatar in its payload, which can be too big for many applications/integrations. So I created a custom profile scope that excludes the avatar in its payload and started switching to that custom scope for the applications/providers that broke with the profile picture included.

I was unable to change the scopes of one proxy/forward_auth provider. I use Hubitat for home automation devices, and had created a proxy/forward_auth provider that allows me to keep my Hubitat C8 Pro's interface behind Authentik's authenication. But that provider broke when it received my large profile picture, so I tried to switch over to my custom profile scope. Strangely, it won't let me. I've tried to remove the default OpenID 'profile' scope several times (saving each time), and each time it immediately returns to the provider's scopes list. I am simply unable to remove the default OpenID 'profile' scope from the provider. I even tried removing the provider from association with my Outpost and then removing the scope, but nothing worked. I intend to delete the whole Application/Provider pair and recreate it from scratch, but find it odd that Authentik will not permit me to delete the scope. Is this normal or expected behavior for proxy/forward_auth providers?


r/Authentik • • Sep 15 '26

Proxmox cluster

6 Upvotes

SOLVED: added mutliple servers to Redirect URIs on the working provider

I had five standalone Proxmox servers working with Authentik but then moved them to a cluster and Authentik authentication broke (Redirect errors)

I've been able to get it working for one server in the cluster only (the web UI does allow me to administer all the nodes from this singe node). This is because the Realm configuration is at cluster level. Googling around I see comments like configure it each server but that doesnt seem to be possible.

Currently if the configured server is down then I cant SSO to any other or my Proxmox servers.

Whats the best way to configure it so I can access the web UI for any of the Proxmox VE servers via Authentik SSO?


r/Authentik • • Sep 10 '26

Script to automatically version-update your yaml file

0 Upvotes

A while ago I started using the following script which automatically updates authentik's docker compose file so that it always uses the latest version available.

The idea is to cronjob this and then auto-update authentik automatically as well (with another script or tool etc)

Authentik removed the "latest" tag unfortunately as it can cause issues. However, for those with automated backups, VM snapshots etc this is practically of no concern.

I thought I'd share this because it works really well.

You'll have to adjust the following line:
COMPOSE_FILE="/home/user/authentik/docker-compose.yml"

and then chmod +x the whole script.

#!/bin/sh
set -eu

COMPOSE_FILE="/home/user/authentik/docker-compose.yml"

LOG_DIR="/home/chris/scripts/authentik"
LOG_FILE="$LOG_DIR/authentik-version-check.log"

mkdir -p "$LOG_DIR"

log() {
  echo "$1" | tee -a "$LOG_FILE"
}

log "========================================"
log "===== Authentik version check started ====="
log "===== $(date) ====="
log "========================================"

LATEST_VERSION="$(
  curl -fsSL https://api.github.com/repos/goauthentik/authentik/releases/latest \
  | grep '"tag_name":' \
  | sed -E 's/.*"version\/([^"]+)".*/\1/'
)"

if [ -z "$LATEST_VERSION" ]; then
  log "Could not detect latest Authentik version."
  exit 1
fi

CURRENT_VERSION="$(
  grep -oE 'AUTHENTIK_TAG:-[0-9]+\.[0-9]+(\.[0-9]+)?' "$COMPOSE_FILE" \
  | head -n 1 \
  | sed 's/AUTHENTIK_TAG:-//'
)"

if [ -z "$CURRENT_VERSION" ]; then
  log "Could not detect current Authentik version in $COMPOSE_FILE."
  exit 1
fi

log "Current version: $CURRENT_VERSION"
log "Latest version:  $LATEST_VERSION"

if [ "$CURRENT_VERSION" = "$LATEST_VERSION" ]; then
  log "Already up to date."
  log ""
  exit 0
fi

BACKUP_FILE="$COMPOSE_FILE.bak"

cp "$COMPOSE_FILE" "$BACKUP_FILE"
log "Backup updated: $BACKUP_FILE"

sed -i -E "s/AUTHENTIK_TAG:-[0-9]+\.[0-9]+(\.[0-9]+)?/AUTHENTIK_TAG:-$LATEST_VERSION/g" "$COMPOSE_FILE"

log "Updated docker-compose.yml from $CURRENT_VERSION to $LATEST_VERSION"

log "========================================"
log "===== Authentik version check finished ====="
log "===== $(date) ====="
log "========================================"
log ""

r/Authentik • • Sep 09 '26

Release of authentik Security releases 2026.8.2, 2026.5.7 and 2026.2.7

38 Upvotes

The following security advisories have been published:

Releases 2026.8.2, 2026.5.7 and 2026.2.7 with fixes included are available here:

  • ghcr.io/goauthentik/server:2026.8.2
  • ghcr.io/goauthentik/server:2026.5.7
  • ghcr.io/goauthentik/server:2026.2.7

The outpost images and binaries will follow within a few hours as we go through our regular release process.


r/Authentik • • Sep 02 '26

Notice of upcoming authentik Security releases 2026.8.2, 2026.5.7 and 2026.2.7

42 Upvotes

We'll be publishing five security issues (GHSA-qgqp-xh8r-v73r, GHSA-h6c5-mpvq-j4jc, GHSA-cqj8-fxxf-9pg7, GHSA-m9h4-7j9c-55x9, GHSA-cxwx-9x59-28qm) and accompanying fixes on 2026-09-09 at 14:00 UTC with the Severity levels: High.

The patched ghcr.io/goauthentik/server image will be available immediately, while the outpost images and binaries will follow within a few hours.

For more info, see the authentik Security policy.


r/Authentik • • Sep 02 '26

Brand customization is still a massive painpoint

7 Upvotes

Any plans to open up arbitrary page customization? It's been a massive pain-point developing my apps. It's very much a process of trial and error. Is there not a better way short of going fully API-only?


r/Authentik • • Aug 30 '26

Invite Users but Require MFA

8 Upvotes

Hi! I'm trying to setup a flow to invite users for a particular app. I'm using the invite external users flow that I added from https://docs.goauthentik.io/users-sources/user/invitations/#use-pre-built-blueprints-to-configure-invitations. The flow itself is working great, but I want to require the use of MFA. I have a flow that does just that for internal users, but adding the MFA validation stage does not trigger. I'm assuming it's because the account hasn't been written yet.


r/Authentik • • Aug 26 '26

Invitation into Google SSO enrollment user write?

3 Upvotes

Hey, everyone.

Running Authentik 2026.5.6

I am trying to make users enroll and login by invite only, and I want to allow account creation by google. It is not writing new users.

  1. Created a new enrollment flow "sso-invite" for the invitation: https://pastebin.com/ZRHHeNJr

    1. First stage is an invitation stage
    2. Second stage is an identification stage which has a google source enabled
  2. Created a new enrollment flow "sso-enrollment-userwrite" and assigned it to that google source's enrollment flow setting: https://pastebin.com/vPW1QV6x

    1. First stage is user write stage: create users when required
    2. Second stage is a user login stage

When creating an invitation link, and assigning the flow "sso-invite" as flow for that invitation, I am indeed forwarded to the google source interface. But proceeding to "sso-enrollment-userwrite" shows me "Request has been denied. Unknown error" screen.

Enrollment with invitation link where I set up a prompt flow with email/password/confirmation works perfectly and creates new users.

How can I allow the google authentication source to register new users?

Update: 2026-08-26

I managed to succeed at a user write stage by adding an earlier stage in the "sso-enrollment-userwrite" flow. Now it looks like this:

  1. First stage is a prompt stage, it requests a username
  2. Second stage is user write stage: create users when required
  3. Third stage is a user login stage

Now I need to figure out how to automatically assign a username for the user and not require a prompt stage.

Update: 2026-08-27

Users registered via SSO do not login, but user write stage passes.

When I added the username generating script from Authentik's official google SSO documentation as a policy to the prompt stage, the prompt completed automatically, and the enrollment happened without any additional user input.

The final structure is as follows:

Two google federation sources: "google-auth-only" and "google-auth-enrollment".

  1. Enrollment flow "sso-invite" offers endpoint available to people with a valid invitation. The flow's stages:

    • First stage is an Invitation stage, will guarantee that flow is denied unless valid invitation is present
    • Second stage is an Identification stage, it will give our users the ability to identify themselves via an external source ("google-auth-enrollment").
  2. Another enrollment flow "sso-enrollment" offers enrollment capacities to the external source ("google-auth-enrollment"), it is assigned to said source.

    • The flow's First stage is a prompt stage, it requests only username. It has an expression policy attached to it. The policy's code:

    request.context["prompt_data"]["username"] = request.context["prompt_data"]["email"]

    return false

    • Second stage is user write stage: create users when required
    • Third stage is a user login stage.
  3. Federation source "google-auth-only"

    • Enrollment flow is disabled.
    • This source is added to "default-authentication-identification" stage in the flow "default-authentication-flow". It will be presented to users when they go to the Authentik login page.
  4. Federation source "google-auth-enrollment"

    • Enrollment flow is "sso-enrollment". Authentication flow is "default-source-authentication". It will authenticate a user if that user already exists or create a user if that user is new.
    • This source is added to identification stage in "sso-invite" flow.

I would prefer to not have the prompt stage at all, but since it is automatically completed, I am okay with that.

The problem now is that user cannot login via google. Either of two sources, the user gets kicked back to login page.

Update: 2026-08-27 (pt.2)

To log in via SSO, we need a different authentication flow. The default authentication flows just throw us back to the login screen, because the login screen is the first step in them. This logic should have been obvious: I add google source to the default authentication flow's first stage, then I use the same default authentication flow for the google source authentication flow setting. Closed circle.

What actually works is all of the above, but another flow is created.

5. A new authentication flow "sso-login

* Flow requirement: **require no authentication**
* Only stage is a user login stage.
* This flow is assigned to both "google-auth-only" and "google-auth-enrollment" federation sources as authentication flow. 

Now users can log in with google. Users can only enroll with an invite. Users who have not enrolled will be denied.


r/Authentik • • Aug 23 '26

Immich 3.1.0 502 Error with OIDC/OAuth

19 Upvotes

If you're experiencing any of this with Immich behind authentik: OIDC login fails with Error: 502 after updating to Immich 3.1.0, you can try this to check if it's working again:

I found this issue on Github and worked on a workaround: https://github.com/immich-app/immich/issues/30889 which I want to share

The workaround at the moment, remove the picture claim of the profile mapping in Authentik

In authentik: Customisation → Property Mappings → Create → Scope Mapping

Put the following in:

  • Name: something sensible, e.g. Immich – OIDC profile (no picture)
  • Scope name: profile
  • Expression:
Add it to the Immich OAuth/OIDC provider:return delete_none_values({
    "name": request.user.name,
    "given_name": ak_obj_attr(request.user, "given_name", "name"),
    "family_name": ak_obj_attr(request.user, "family_name"),
    "preferred_username": request.user.username,
    "nickname": request.user.username,
    "groups": [group.name for group in request.user.groups.all()],
})

This is just authentik's default profile mapping with the "picture" claim removed.

Open your Immich OAuth2/OIDC provider → Advanced protocol settings → Scopes, and add the mapping you just created:

Make sure you remove the authentik default OAuth Mapping for 'profile'

Try to login again with OpenID/OAuth

Hope this helps!


r/Authentik • • Aug 19 '26

authentik 2026.8 has been released!

Thumbnail
docs.goauthentik.io
136 Upvotes

We’re excited to announce the release of authentik 2026.8! This release brings new access-management features, easier account switching, major OAuth/OpenID Connect improvements, and plenty of fixes and performance work.

Highlights

  • User switching: Keep multiple authentik accounts signed in within the same browser and switch between them from the account menu. Administrators can control whether switching requires a password, MFA, or another verification step.
  • Custom object attributes: Define validated custom fields for users, groups, application entitlements, and other objects. Common identity, contact, address, employee, and Unix attributes are included and can be enabled as needed.
  • OpenID Certified: authentik is now officially OpenID Certified™!
  • OAuth and OpenID Connect improvements: This release adds token exchange, on-behalf-of delegation, Dynamic Client Registration, and key-bound ID tokens.
  • Nested LDAP groups: LDAP synchronization can now preserve your source directory’s nested group structure.
  • Access requests (Enterprise): Users can request temporary access to applications or specific entitlements, with configurable approval rules and a complete audit trail.
  • Agent accounts (Enterprise): New delegated service accounts support automation while retaining a clear link to the user they represent.
  • Scheduled offboarding (Enterprise): Schedule users for deactivation or deletion, optionally revoking their sessions and tokens.
  • Self-hosted event maps (Enterprise): The bundled event map no longer requires external requests by default, making it suitable for restricted or air-gapped environments.
  • Rust rewrite: The server entrypoint and proxy outpost have been rewritten in Rust. This lays the groundwork for future performance and resource-usage improvements.

Upgrading

We recommend configuring the new Base URL setting now, as it will become required in authentik 2026.11.

As always, upgrade your authentik instance and outposts together so their versions match.

Full release notes and upgrade information:
https://docs.goauthentik.io/releases/2026.8/

Thanks to everyone who contributed, tested, reported issues, and helped make this release possible! 🚀


r/Authentik • • Aug 18 '26

Authentik Security baseline/ Best-practises

10 Upvotes

Hi,

The company I work for is in the process of choosing a CIAM solution.

I was wondering, does Authentic provide a general security baseline of security best-practises based on e.g the OWASP reccomendations or another framework?