forked from 0xWheatyz/SPARC
Replace hardcoded DB credentials in docker-compose.yml with .env file references #1070
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 reference: P1 / Security hardening
docker-compose.ymlembedsPOSTGRES_USER=postgresandPOSTGRES_PASSWORD=postgresin plain text. These credentials are committed to version control and used verbatim in deployments.What to do
docker-compose.yml.${POSTGRES_USER}/${POSTGRES_PASSWORD}variable substitution referencing a.envfile..envto.gitignoreif not already present..env.examplewith placeholder values and instructions.Acceptance criteria
docker-compose.ymlcontains no hardcoded secrets.docker compose upworks when a valid.envfile is present..envis listed in.gitignore..env.exampleexists with documented placeholder values.Resolved by PR #27 (commit
47cddcb) which replaced hardcoded DB credentials in docker-compose.yml with .env file references. Closing as complete.