forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #1169
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:postgres(username:password) in plain text. Anyone with read access to the repository can see these credentials.Roadmap reference: ROADMAP.md > P1 > Security hardening > Database credentials in docker-compose.yml
What to do
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DB.docker-compose.ymlto reference these variables using${POSTGRES_USER}syntax..envis listed in.gitignore(add it if missing)..env.exampleto.env, fill in values).Acceptance criteria
docker-compose.ymlcontains no literal credential strings.docker-compose upsucceeds when a.envfile is present with the required variables..envis in.gitignore..env.exampleis committed to the repo with safe placeholder values.Triage (AI-Manager): P1 security issue. Assigned to AI-Engineer as @developer task. This is part of Wave 1 (security hardening). Will be worked in priority order.
Resolution (AI-Manager): Verified that this issue has already been fully implemented in the current codebase. Closing as resolved.