chore: update dockerfile compose and self hosting guide for hosted authsome#445
Merged
manojbajaj95 merged 2 commits intoJun 17, 2026
Conversation
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Make the self-hosting documentation truthful and runnable so a new operator can stand up a hosted Authsome stack end-to-end without hitting undocumented requirements.
docker-compose.ymlhard-requires (AUTHSOME_POSTGRES_PASSWORD,AUTHSOME_MASTER_KEY,AUTHSOME_UI_SESSION_KEY) and verifies/health, instead of a baredocker compose up -dthat failed immediately on the missing${VAR:?}secrets.openssl rand -hex 24rather than-base64, because base64 output can contain/or+, which corrupts theAUTHSOME_DATABASE_URLDSN and breaks daemon boot.authsome onboard --base-url, the browser account registration (email + password → Principal), and the identity claim that binds the Identity to its default Vault.7998behind the proxy.No application code, Dockerfile, or compose changes — verification confirmed those are already correct and in sync.
Motivation and Context
docker-compose.ymlhard-requires three secrets via${VAR:?}, but the README told operators to just rundocker compose up -d, so a first-time self-hoster hit an immediate failure. The base64 Postgres password was an additional latent bug that would intermittently break boot via DSN parsing. The issue also asked for the hosted first-run/init flow (account registration + identity claim) to be documented.Closes #423 (GHCR image publishing — phrased as "Consider" and not part of the acceptance criteria — is intentionally left for a separate follow-up so the release-pipeline permission change can be reviewed on its own).
How Has This Been Tested?
docker compose up -d --buildwith secrets generated exactly as documented: all three containers (authsome,postgres:16-alpine,redis:7-alpine) came up healthy, andcurl http://localhost:7998/healthreturned HTTP 200 withstore_backend: postgres. Torn down cleanly withdocker compose down -v.-hexpassword yields a validpostgresql://…URL (correct host/port/password), whereas a base64 password with/makes Python's URL parser misread the host and crash on the port — proving the fix.src/authsome/ui/web) matches the server's static mount,[postgres,redis]extras matchpyproject.toml, and the/healthroute exists and responds.uv run ruff checkandruff format --checkpass. Fulluv run pytestis green except 4 pre-existing failures intests/cli/test_client_signing.pythat are unrelated to this change (reproduced on a clean tree atmain).Types of changes
Checklist: