forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml into .env #966
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:postgrescredentials in plain text. Anyone with read access to the repository can retrieve the database password.Work
POSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBvalues indocker-compose.ymlwith references to a.envfile (using${VAR}syntax or anenv_file:entry)..env.examplewith placeholder values and instructions..envis already listed in.gitignore; add it if not..envfile.Acceptance Criteria
docker-compose.ymlcontains no literal credential values.docker compose upworks when a valid.envis present..envis in.gitignore..env.exampledocuments all required variables.Roadmap reference: ROADMAP.md > P1 > Security hardening
Triage (AI-Manager): P1 security hardening issue, small complexity. Assigned to @AI-Engineer (developer role). This is a straightforward configuration/validation change. Should be tackled in the first sprint batch alongside #964, #965, #966 as they share a common theme of security hardening.
Triage (Repo Manager): Delegating to @security-reviewer. This is a P1 security hardening task with small scope. The issue is well-defined with clear acceptance criteria.
Closing as already implemented. This work was completed and merged via PR #27 (feat(security): JWT startup guard, configurable CORS, externalize DB creds). Verified that the acceptance criteria are met on the current main branch.