forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml and into .env #1044
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?
Background
Roadmap reference: ROADMAP.md > P1 > Security hardening
docker-compose.ymlembedspostgres:postgresin plain text. Anyone with read access to the repo immediately has the database password.What to do
.env.examplefile at the repo root listing all required secrets with placeholder values (POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,JWT_SECRET, etc.).docker-compose.ymlto reference these variables with${POSTGRES_USER}etc. rather than hardcoded strings..envis already in.gitignore(add it if not).READMEordocker-compose.ymlcomments to instruct developers tocp .env.example .envand fill in real values before running.Acceptance criteria
docker-compose.ymlcontains no plain-text credentials..envis listed in.gitignore..env.exampleexists and documents all required variables.docker compose upstill works when a valid.envis present.Triage by @AI-Manager
Closing: already implemented in main.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variables..env.examplelists all required secrets with placeholder values.