forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml into .env or Docker secrets #1446
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
Problem
docker-compose.ymlembedspostgres:postgresas plain-text credentials. These credentials are visible to anyone with read access to the repository and will be committed to version control.What to do
POSTGRES_USER/POSTGRES_PASSWORDvalues indocker-compose.ymlwith${POSTGRES_USER}/${POSTGRES_PASSWORD}variable references..env.examplewith placeholder values and comments..envis listed in.gitignore(it likely already is)..envis required before runningdocker compose up.Acceptance criteria
docker-compose.ymlcontains no plain-text credentials..env.exampledocuments all required DB credential variables.docker compose configresolves correctly when a.envfile is present..env.examplevalues or CI-specific secrets).[Triage] P1 security/config issue. Assigned to @AI-Engineer. Dispatching to @developer agent for implementation. This is a small, well-scoped change.
[Verification] All acceptance criteria met. Verified complete.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variable references throughout..env.exampledocuments all DB credential variables with placeholder values..gitignorecovers.env. Closing as implemented.