forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml and into .env / Docker secrets #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap Reference
P1 — Security hardening
Problem
docker-compose.ymlembedspostgres:postgresin plain text forPOSTGRES_USER,POSTGRES_PASSWORD, and theDATABASE_URL. These credentials are visible to anyone with access to the repository.What to do
docker-compose.ymlwith variable references (${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB})..env.examplefile documenting all required variables with safe placeholder values..envis already listed in.gitignore(add it if not)..env.exampleto.envand fill in values before runningdocker compose up.Acceptance Criteria
docker-compose.ymlcontains no hardcoded credentials..env.exampledocumentsPOSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,DATABASE_URL,JWT_SECRET,API_KEY,OPENROUTER_API_KEY..gitignoreexcludes.env.docker compose up(with a populated.env) still starts the full stack successfully.Triage: P1 security hardening, small complexity. Assigned to @AI-Engineer. Delegating to @developer agent as part of the P1 security batch (#4, #5, #6).
Implementation complete in PR #27 (feature/p1-security-hardening). Awaiting review.