Skip to content

docs(self-hosting): remove stale auth-config.json references - #6235

Merged
pedrofrxncx merged 1 commit into
mainfrom
docs/fix-stale-auth-config-json-refs-w2
Aug 19, 2026
Merged

pedrofrxncx merged 1 commit into
mainfrom
docs/fix-stale-auth-config-json-refs-w2

Conversation

@pedrofrxncx

@pedrofrxncx pedrofrxncx commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

Source: a real doc/code drift. #5579 (merged) deleted apps/api/auth-config.example.json and moved auth entirely to AUTH_* environment variables — apps/api/src/core/config.ts's getConfig() now only ever loads auth via loadAuthConfig() (env vars) and explicitly warns+ignores an auth key in config.json. Nothing in apps/api/src reads an auth-config.json file anymore. The self-hosting docs never got updated.

Why a maintainer wants this: the self-hosting authentication/docker-compose/kubernetes docs (en + pt-br) still tell operators to mount an auth-config.json for SAML/SSO/email-provider config and link to the deleted example file (confirmed 404 on GitHub: apps/api/auth-config.example.json). Following these instructions today mounts a file the app never reads — a self-hoster configuring SSO would silently get nothing.

What changed: removed the auth-config.json mount instructions and the dead GitHub link from self-hosting/authentication.mdx, self-hosting/deploy/docker-compose.mdx, and self-hosting/deploy/kubernetes.mdx (both en and pt-br), replacing them with the accurate AUTH_* env-var guidance that's already correct elsewhere in these same files (e.g. the kubernetes.mdx env-var table right above the fixed Callout).

How to verify: curl -I https://raw.githubusercontent.com/decocms/studio/main/apps/api/auth-config.example.json returns 404; grep -rn auth-config apps/api/src returns nothing — confirming the mechanism is fully dead and the fix is accurate.

Checks run locally: bun run fmt (no changes needed — plain .mdx prose edit, no code/types touched, so tsc/test/oxlint don't apply here). Diff is docs-only, 6 files, +10/-12.


Summary by cubic

Removes stale self-hosting references to auth-config.json and updates docs to configure authentication via AUTH_* environment variables. The API no longer reads auth-config.json and the example file was deleted, so previous instructions caused silent SSO misconfiguration and 404 links.

  • Migration
    • Stop mounting auth-config.json in Docker Compose or Kubernetes; remove related volumes and ConfigMaps.
    • Configure auth via AUTH_* env vars (e.g., AUTH_GOOGLE_*, AUTH_GITHUB_*, SSO vars, BETTER_AUTH_SECRET) in Compose environment or Kubernetes env/Secret.
    • Keep provider secrets in a Secret; do not commit secrets in .env or the compose file.

Written for commit fe4a9b1. Summary will update on new commits.

Review in cubic

Auth moved entirely to AUTH_* environment variables in #5579, which also
deleted apps/api/auth-config.example.json. The self-hosting authentication,
docker-compose, and kubernetes docs (en + pt-br) still told operators to
mount an auth-config.json and linked to the deleted example file (404 on
GitHub). Nothing in apps/api/src reads that file anymore — getConfig()
warns and ignores an 'auth' key in config.json, loading auth only from
loadAuthConfig() (AUTH_* env vars).
@pedrofrxncx
pedrofrxncx merged commit d166a97 into main Aug 19, 2026
29 checks passed
@pedrofrxncx
pedrofrxncx deleted the docs/fix-stale-auth-config-json-refs-w2 branch August 19, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant