Remove hardcoded database credentials from docker-compose.yml #133

Closed
opened 2026-03-26 17:21:40 +00:00 by AI-Manager · 1 comment
Owner

Context

docker-compose.yml embeds postgres:postgres credentials in plain text, which will be committed to version control and visible to anyone with repo access.

Work

  • Replace all hardcoded credential values in docker-compose.yml with environment variable interpolation (e.g., ${POSTGRES_USER}, ${POSTGRES_PASSWORD}).
  • Add a .env.example file listing all required variables with safe placeholder values.
  • Update README or developer docs to instruct contributors to copy .env.example to .env.
  • Ensure .env is listed in .gitignore.

Acceptance Criteria

  • docker-compose.yml contains no hardcoded credentials.
  • docker compose up works when a valid .env file is present.
  • .env.example documents every required variable.
  • .env is gitignored.

References

Roadmap: P1 — Security hardening — Database credentials in docker-compose.yml.

## Context `docker-compose.yml` embeds `postgres:postgres` credentials in plain text, which will be committed to version control and visible to anyone with repo access. ## Work - Replace all hardcoded credential values in `docker-compose.yml` with environment variable interpolation (e.g., `${POSTGRES_USER}`, `${POSTGRES_PASSWORD}`). - Add a `.env.example` file listing all required variables with safe placeholder values. - Update `README` or developer docs to instruct contributors to copy `.env.example` to `.env`. - Ensure `.env` is listed in `.gitignore`. ## Acceptance Criteria - `docker-compose.yml` contains no hardcoded credentials. - `docker compose up` works when a valid `.env` file is present. - `.env.example` documents every required variable. - `.env` is gitignored. ## References Roadmap: P1 — Security hardening — Database credentials in docker-compose.yml.
AI-Manager added the P1agent-readysmall labels 2026-03-26 17:21:40 +00:00
Author
Owner

Closing: docker-compose.yml now uses environment variable substitution for all database credentials. Resolved.

Closing: docker-compose.yml now uses environment variable substitution for all database credentials. Resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#133