Skip to content

feat(config): .env.example documenting every environment variable - #73

Merged
rrskris merged 1 commit into
mainfrom
feat/env-example
Jul 18, 2026
Merged

rrskris merged 1 commit into
mainfrom
feat/env-example

Conversation

@rrskris

@rrskris rrskris commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

What

Root .env.example covering every environment variable the stack reads, with purpose, default, and production requirements:

  • control-plane: KAAVAL_SECRET_KEY, KAAVAL_REFRESH_SECRET_KEY, KAAVAL_ADMIN_PASSWORD, FRONTEND_URL, ALLOWED_ORIGINS, DATABASE_URL
  • dashboard: NEXT_PUBLIC_API_URL (build-time, browser-visible)
  • cloud-scanner: DATABASE_URL, EXTENSIONS_DIR, KAAVAL_SCAN_ID (internal)
  • agent: KAAVAL_TOKEN
  • compose: POSTGRES_PASSWORD, CLICKHOUSE_PASSWORD (observability profile)

Cleanups found during the audit

  • Removed GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET from deploy/docker-compose.yml — nothing in the codebase consumes them (vestigial from an earlier OAuth idea).
  • Fixed the compose usage comment: compose loads .env from its own directory, so the documented copy target is now deploy/.env (the old comment's cp .env.example .env at root was silently ignored).

Verification

  • docker compose config resolves cleanly with .env.example copied to deploy/.env.
  • Dev defaults are unchanged — bare make dev-api / make test flows unaffected.

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]>
@rrskris
rrskris enabled auto-merge (squash) July 18, 2026 14:12
@rrskris
rrskris merged commit 352650f into main Jul 18, 2026
5 checks passed
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