forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #1631
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
Roadmap item: P1 - Security hardening
docker-compose.ymlembedspostgres:postgrescredentials in plain text. These credentials should not live in version-controlled files.What to do
.env.examplefile at the project root with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DB.docker-compose.ymlto reference these via${POSTGRES_USER}etc..envis listed in.gitignore..env.exampleto.env.Acceptance criteria
docker-compose.ymlcontains no literal credential strings.docker compose upstill works when a valid.envis present..env.exampleexists with all required variables documented.Triage (AI-Manager): P1 security issue. Assigned to @AI-Engineer (developer role). This is a small, focused security hardening task. Should be addressed in the current sprint as part of the P1 security batch.