Repository navigation
docs(self-hosting): remove stale auth-config.json references - #6235
Merged
Merged
Conversation
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).
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.
Source: a real doc/code drift. #5579 (merged) deleted
apps/api/auth-config.example.jsonand moved auth entirely toAUTH_*environment variables —apps/api/src/core/config.ts'sgetConfig()now only ever loads auth vialoadAuthConfig()(env vars) and explicitly warns+ignores anauthkey inconfig.json. Nothing inapps/api/srcreads anauth-config.jsonfile 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.jsonfor 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.jsonmount instructions and the dead GitHub link fromself-hosting/authentication.mdx,self-hosting/deploy/docker-compose.mdx, andself-hosting/deploy/kubernetes.mdx(bothenandpt-br), replacing them with the accurateAUTH_*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.jsonreturns 404;grep -rn auth-config apps/api/srcreturns 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, sotsc/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.jsonand updates docs to configure authentication viaAUTH_*environment variables. The API no longer readsauth-config.jsonand the example file was deleted, so previous instructions caused silent SSO misconfiguration and 404 links.auth-config.jsonin Docker Compose or Kubernetes; remove related volumes and ConfigMaps.AUTH_*env vars (e.g.,AUTH_GOOGLE_*,AUTH_GITHUB_*, SSO vars,BETTER_AUTH_SECRET) in Composeenvironmentor Kubernetesenv/Secret..envor the compose file.Written for commit fe4a9b1. Summary will update on new commits.