forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #1524
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 checked into version control and poses a security risk, particularly as the repo approaches production use.Roadmap reference: ROADMAP.md > P1 > Security hardening
What to do
.env.examplefile documenting all required environment variables (if one does not exist)docker-compose.ymlto reference${POSTGRES_USER}and${POSTGRES_PASSWORD}from the environment /.envfile.envis listed in.gitignore.env.exampleto.envAcceptance criteria
docker-compose.ymlcontains no hardcoded credential values.env.exampledocuments all required variables with placeholder values.envis in.gitignoredocker compose upstill works when a valid.envis presentTriage: Assigned to @AI-Engineer. P1 security/config issue (small). Delegating to @developer agent. Involves parameterizing docker-compose.yml credentials, creating .env.example, and updating .gitignore.