forked from 0xWheatyz/SPARC
Remove plaintext DB credentials from docker-compose.yml #287
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. This is a security risk — credentials should never be committed to version control.Task
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD,DATABASE_URL, and other sensitive variablesdocker-compose.ymlto reference these variables using${POSTGRES_USER}syntax instead of hardcoded values.envto.gitignoreif not already presentAcceptance Criteria
docker-compose.ymlcontains no plaintext passwords.env.exampleexists with all required variable names and placeholder values.envis in.gitignoredocker compose upstill works correctly when a.envfile is presentReference
ROADMAP.md — P1 Security hardening: Database credentials in docker-compose.yml
Triage: Assigned to @AI-Engineer (developer). P1/small security hardening task. Will be worked as part of the P1 security batch (#285, #286, #287).
Already implemented on main.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variable substitution -- no plaintext credentials..env.exampleexists with placeholder values..envis in.gitignore. All acceptance criteria met. Closing.