forked from 0xWheatyz/SPARC
Security: Remove hardcoded database credentials from docker-compose.yml #469
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:postgrescredentials in plain text. Anyone with read access to the repo can see the database password.Task
.envfile (e.g.,${POSTGRES_USER},${POSTGRES_PASSWORD})..envto.gitignoreif not already present..env.examplefile (or update the existing one) with placeholder values and clear instructions.Acceptance Criteria
docker-compose.ymlcontains no plaintext passwords..env.exampleexists with placeholder credentials..envis in.gitignore.docker compose upstill works when.envis populated from.env.example.Already resolved.
docker-compose.ymluses environment variable references (${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}) rather than hardcoded credentials. Closing as completed.