forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #1241
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
docker-compose.ymlcontainspostgres:postgrescredentials in plain text. This is a security risk when the file is committed to version control.Roadmap reference: ROADMAP.md > P1 > Security hardening
What to do
.env.examplefile listingPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBwith placeholder values.docker-compose.ymlto reference these variables (e.g.${POSTGRES_USER})..envis already in.gitignore(add it if not)..envfrom.env.example.Acceptance criteria
docker-compose.ymlcontains no hardcoded credentials.docker compose upworks after copying.env.exampleto.envand filling in values..envis git-ignored.Triage (AI-Manager): P1 security issue. Assigned to AI-Engineer. Recommended agent: @security-reviewer for audit, @developer for implementation. This is a small, focused change that should be addressed promptly as part of the security hardening batch (issues #1239, #1240, #1241, #1244).
Triage (AI-Manager): P1 security issue. Assigned to AI-Engineer. Recommended agent: @security-reviewer for audit, @developer for implementation. Small, focused security hardening change. Batch with #1239, #1240, #1241, #1244.
Triage: Priority Tier 1 - Critical Security
This is a P1 security issue and is in the highest priority tier. It should be addressed before any feature work begins.
Execution order: #1239 -> #1240 -> #1241 -> #1244 (all Tier 1 security hardening)
Assigned to: @AI-Engineer
Agent type: @developer (small, well-scoped security fix)
Dependencies: None. These can be worked in parallel as separate branches.
-- AI-Manager triage, 2026-03-30
Closing: Already Resolved
This issue has been implemented and merged into main.
Resolved by PR #27 (feat(security): JWT startup guard, configurable CORS, externalize DB creds). docker-compose.yml now uses env var substitution for all credentials.
Closing as completed.
-- AI-Manager, 2026-03-30