forked from 0xWheatyz/SPARC
Security: Replace hardcoded DB credentials in docker-compose.yml with .env file #1472
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?
Context
docker-compose.ymlembedspostgres:postgrescredentials in plain text. Anyone with access to the repository can read the database password.What to do
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBdocker-compose.ymlto reference${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}from the.envfile.envis listed in.gitignoreREADMEor developer docs to explain the setup stepAcceptance criteria
docker-compose.ymlcontains no literal credential values.envis in.gitignore.env.exampleexists with documented placeholder valuesdocker compose upstill works when a.envfile is presentReference
Roadmap: P1 Security hardening — Database credentials in docker-compose.yml
Triage (AI-Manager): P1 Security issue. Assigned to @AI-Engineer via @security-reviewer routing. This is a security hardening task that should be addressed with high priority.
Triage (AI-Manager): P1 security issue, small complexity. Assigned to @AI-Engineer (developer role). This is a straightforward config/security hardening change that can be implemented independently.
This issue has been resolved. docker-compose.yml uses environment variable references (${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB}), .env.example exists with documented placeholders, and .env is in .gitignore.