mirror of
https://github.com/asalimonov/authelia-admin.git
synced 2026-04-25 22:55:52 +03:00
[GH-ISSUE #35] Add support of Authelia with PostgreSQL #87
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/authelia-admin#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @asalimonov on GitHub (Dec 6, 2025).
Original GitHub issue: https://github.com/asalimonov/authelia-admin/issues/35
The current version supports only Authelia with SQLite.
We are waiting request for it or PR from someone.
@hugosxm commented on GitHub (Dec 6, 2025):
That would be a super usefull feature for people running authelia in HA inside kubernetes with postgres !
@asalimonov commented on GitHub (Dec 6, 2025):
Got it. Will try to find some time on the next week. We don't have test stands with Authelia+PostgreSQL. So, it would be good to find someone who can use image(s) from week to month under some load to determine stability.
@joszz commented on GitHub (Jan 5, 2026):
Also interested in this.
I run authelia with a postgresql database here 😊
@asalimonov commented on GitHub (Jan 16, 2026):
Sorry guys for the delay.
Adding PosgreSQL means adding of integration tests. I will try to implement something simple and quite reliable for such purpose, for example Testcontainers.
@asalimonov commented on GitHub (Feb 8, 2026):
@joszz , @hugosxm, I added support of PostgreSQL and e2e test to avoid regressions.
You can try it with docker image
ghcr.io/asalimonov/authelia-admin:v1.0.0.@joszz commented on GitHub (Feb 8, 2026):
I'm not really sure what's going on but I get a not found response on the root and /auth_admin/ (I use a reverse proxy setup, but tried different approaches in order to reach it).
The docker logs seem to be ok, and it seems to connect to Postgres (I had to change Authelia to not use the unix socket, which I had configured);
When I open a terminal on the container and try to curl http://0.0.0.0:9093/auth_admin/, I get the same response (bit strange that it's not just on the root?). Also tried http://0.0.0.0:9093/
Might be me doing something wrong, but everything seems ok.
@asalimonov commented on GitHub (Feb 9, 2026):
@joszz ,
Try
/auth-admin/not/auth_admin/.Don't forget that the app should be on the same domain as Authelia. So, check value of
AAD_AUTHELIA_DOMAINenv variable for authelia-admin container orauthelia.domainin config.yml in case of configuration via file.The repository contains example of deployment with PostgreSQL - https://github.com/asalimonov/authelia-admin/blob/main/docker-compose.test-pg.yml. Use it as a reference.
@joszz commented on GitHub (Feb 9, 2026):
I will have to tinker further. I have many questions such as;
Before when PostgreSQL was not integrated yet I was able to get the dashboard to show. Dunno what changed, or what else I might be doing wrong here.
For sure I can tell that the current implementation is not able to use PostgreSQL through the unix socket. It only works through TCP (but I guess a minor issue, getting it to work as intended is a bigger concern for me atm :))
---EDIT---
So forcing everything on one FQDN (both admin and authelia) and fixing a broken config got me past this error.
I'm now running into an access denied. that's probably something on the authelia side of things.
I'm not too stoked about admin sitting in the same FQDN, since it hinders my ability to secure things better (a bit complicated setup with CF, Traefik etc). Ideally it would have it's own FQDN, so I can make it accessible only within certain networks, and not expose globally, which I do want for authelia (but not for admin).
I'm willing to test things further, but I'm still a bit confused about the intended setup, especially having the requirement to sit on the same FQDN as authelia. I will try a bit more and see where I end up. Any insights in the mean time are appreciated :)
@asalimonov commented on GitHub (Feb 9, 2026):
The same domain is needed to authenticate the user with Authelia cookies. authelia-admin checks this cookies and calls Authelia API to check the cookie and identify the user. Otherwise authelia-admin should be registered as separated OIDC application to follow authentication rules of Authelia.
Looks like the issue is in invalid path to configuration file of authelia-admin. Need to check this on logical error when all configs are env variables. Try to use example config.
Yep, unix sockets was not in a plan.
If you will face some issues - just create an issue for this repository. Would be grateful for feedback.