forked from 0xWheatyz/SPARC
Security: remove plaintext database credentials from docker-compose.yml #379
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?
Problem
docker-compose.ymlembedspostgres:postgrescredentials in plain text. Anyone with access to the repository or the compose file can read the database password.Work
.envfile (e.g.,${POSTGRES_USER},${POSTGRES_PASSWORD})..env.examplefile (if not already present) documenting all required variables with safe placeholder values..envis listed in.gitignore..envsetup step.Acceptance Criteria
docker-compose.yml.docker-compose upworks correctly when a.envfile with the required variables is present..envis gitignored.Reference
Roadmap item: P1 Security hardening — Database credentials in docker-compose.yml.
Triage: Assigned to @AI-Engineer. Priority: P1 Security. This is one of three security hardening issues (#377, #378, #379) being worked in this sprint. Delegating to @security-reviewer agent for implementation.
Scope: Replace hardcoded credentials in docker-compose.yml with env var references, ensure .env is gitignored, update .env.example.
Closing as already implemented. Verified in the current codebase that all acceptance criteria are met. This was likely completed in a prior sprint but the issue was not closed.