Repository navigation
feat(config): .env.example documenting every environment variable - #73
Merged
Merged
Conversation
Audited every env read across control-plane (KAAVAL_SECRET_KEY, KAAVAL_REFRESH_SECRET_KEY, KAAVAL_ADMIN_PASSWORD, FRONTEND_URL, ALLOWED_ORIGINS, DATABASE_URL), dashboard (NEXT_PUBLIC_API_URL), cloud-scanner (DATABASE_URL, EXTENSIONS_DIR, KAAVAL_SCAN_ID), agent (KAAVAL_TOKEN), and deploy/docker-compose.yml (POSTGRES_PASSWORD, CLICKHOUSE_PASSWORD). Each var is documented with purpose, default, and whether production requires it. Also removes GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET from compose — no code consumes them — and fixes the compose usage comment: compose loads .env from its own directory, so the copy target is deploy/.env. Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
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.
What
Root
.env.examplecovering every environment variable the stack reads, with purpose, default, and production requirements:KAAVAL_SECRET_KEY,KAAVAL_REFRESH_SECRET_KEY,KAAVAL_ADMIN_PASSWORD,FRONTEND_URL,ALLOWED_ORIGINS,DATABASE_URLNEXT_PUBLIC_API_URL(build-time, browser-visible)DATABASE_URL,EXTENSIONS_DIR,KAAVAL_SCAN_ID(internal)KAAVAL_TOKENPOSTGRES_PASSWORD,CLICKHOUSE_PASSWORD(observability profile)Cleanups found during the audit
GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRETfromdeploy/docker-compose.yml— nothing in the codebase consumes them (vestigial from an earlier OAuth idea)..envfrom its own directory, so the documented copy target is nowdeploy/.env(the old comment'scp .env.example .envat root was silently ignored).Verification
docker compose configresolves cleanly with.env.examplecopied todeploy/.env.make dev-api/make testflows unaffected.