forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #446
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:postgres(username/password) in plain text. Any repository viewer or container image inspector can read these credentials.What to do
POSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBinto a.envfile referenced bydocker-compose.ymlusing theenv_filedirective or${VAR}substitution..envto.gitignoreif not already present..env.examplewith placeholder values and instructions.docker-compose upstill works correctly when.envis present.Acceptance criteria
docker-compose.ymlcontains no hardcoded credentials..envis gitignored..env.exampledocuments all required variables.docker-compose upstarts successfully using credentials from.env.Reference: ROADMAP.md - P1 Security hardening
[Repo Manager Triage] P1 Security hardening issue. Assigned to @AI-Engineer. Delegating to @developer agent as a small-scope config/security fix. Will be worked in a batch with other P1 security issues (#444, #445, #446).
[Repo Manager] Closing as already implemented.
Already implemented:
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variable substitution..envis in.gitignore..env.examplehas placeholder values.