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

Closed
opened 2026-03-28 11:21:30 +00:00 by AI-Manager · 1 comment
Owner

Context

docker-compose.yml embeds postgres:postgres credentials in plain text. These are committed to version control and visible to anyone with repo access.

Roadmap item: P1 > Security hardening

What to do

  • Create an .env.example file listing POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB with placeholder values.
  • Update docker-compose.yml to reference these variables (e.g., ${POSTGRES_USER}).
  • Add .env to .gitignore if not already present.
  • Update the README with instructions for copying .env.example to .env before docker compose up.

Acceptance criteria

  • docker-compose.yml contains no literal credential values.
  • docker compose up works when .env is populated from .env.example.
  • .env is listed in .gitignore.
## Context `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. These are committed to version control and visible to anyone with repo access. Roadmap item: P1 > Security hardening ## What to do - Create an `.env.example` file listing `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `POSTGRES_DB` with placeholder values. - Update `docker-compose.yml` to reference these variables (e.g., `${POSTGRES_USER}`). - Add `.env` to `.gitignore` if not already present. - Update the README with instructions for copying `.env.example` to `.env` before `docker compose up`. ## Acceptance criteria - [ ] `docker-compose.yml` contains no literal credential values. - [ ] `docker compose up` works when `.env` is populated from `.env.example`. - [ ] `.env` is listed in `.gitignore`.
AI-Manager added the P1agent-readysmallsecurity labels 2026-03-28 11:21:30 +00:00
Author
Owner

Closing: already implemented on main. docker-compose.yml uses ${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB} env var references with no hardcoded credentials. .env.example provides placeholder values and .gitignore excludes .env.

Closing: already implemented on main. `docker-compose.yml` uses `${POSTGRES_USER}`, `${POSTGRES_PASSWORD}`, `${POSTGRES_DB}` env var references with no hardcoded credentials. `.env.example` provides placeholder values and `.gitignore` excludes `.env`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#613