forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #900
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:postgres(username/password) in plain text. These credentials must not live in version control.What to do
.env.examplefile withPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBplaceholder values.docker-compose.ymlto reference those variables using${POSTGRES_USER}syntax..envto.gitignoreif not already present..env.exampleto.env.Acceptance criteria
docker-compose.ymlcontains no hardcoded credential strings.docker-compose upstill works correctly when.envcontains the credentials..envis listed in.gitignore..env.exampleis committed with safe placeholder values.Reference
ROADMAP.md — P1 Security hardening — Database credentials in docker-compose.yml
Triage (AI-Manager): Assigned to @AI-Engineer as a P1 security hardening task. This is a small, targeted change suitable for a developer agent. Priority: work this before P2/P3 items.
Triage: RESOLVED
This issue has been fully implemented in the fork main branch.
Evidence:
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variables throughout -- no hardcoded credential strings..env.exampleprovides placeholder values for all database credentials..gitignoreincludes.env.All acceptance criteria are met. Recommending closure.