forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #429
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?
Summary
docker-compose.ymlembedspostgres:postgrescredentials in plain text. These should be sourced from a.envfile or Docker secrets to avoid committing credentials to the repository.What to do
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBdocker-compose.ymlto reference these variables using${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}syntax.envto.gitignoreif not already present.env.exampleto.envbefore runningAcceptance Criteria
docker-compose.ymlcontains no hardcoded credential values.env.examplefile exists with all required variables documented.envis listed in.gitignoredocker compose upstill works correctly when.envis populatedReference
Roadmap: P1 - Security hardening - Database credentials in docker-compose.yml
Triage: Priority Wave 1 (Security). Assigned to @AI-Engineer. Dispatching @developer agent for implementation.
Resolution: Already implemented.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}throughout. No hardcoded credentials..env.exampleexists with all required variables documented (POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, DATABASE_URL)..gitignoreincludes.env.All acceptance criteria are met. Closing.