forked from 0xWheatyz/SPARC
Security: remove hardcoded database credentials from docker-compose.yml #518
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
docker-compose.ymlembedspostgres:postgrescredentials in plain text. This is a security risk when the file is committed to version control.Task
POSTGRES_USER,POSTGRES_PASSWORD,DATABASE_URL) to a.envfiledocker-compose.ymlto reference variables using${VAR}syntax.envto.gitignoreif not already present.env.examplewith placeholder values and instructionsdocker-compose upstill works with the.envfile approachAcceptance Criteria
docker-compose.yml.env.exampleexists with placeholder values documenting all required variables.envis listed in.gitignoredocker-compose upsucceeds when a proper.envis presentVerified complete:
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variables with no hardcoded credentials..envis in.gitignore..env.examplehas placeholder values. Closing as implemented.