Skip to content
Discussion options

You must be logged in to vote

I don't think an Authentik instance can even function on a read-only database

That is correct, mostly because, as you said, we need to store user sessions, but also append to the event log for audit purposes.

The usual setup we see is this:

Site 1: authentik + postgres primary. authentik is configured with 1 database, the primary one
Site 2 (or more): authentik + postgres replica. authentik is configured with 2 databases: the site 1 one as the main one, and the local site one as a read replica

Upon failover to another site (which is a manual operation, but can probably be automated), mark the site 2 db as the primary one, and update the authentik configuration to use the new primary as …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by cu
Comment options

You must be logged in to vote
1 reply
@rissson
Comment options

rissson Nov 19, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants