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

Closed
opened 2026-04-20 08:26:40 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P1 - Security hardening

docker-compose.yml embeds postgres:postgres credentials in plain text. These credentials should not live in version-controlled files.

What to do

  1. Add a .env.example file at the project root with placeholder values for POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB.
  2. Update docker-compose.yml to reference these via ${POSTGRES_USER} etc.
  3. Ensure .env is listed in .gitignore.
  4. Update the development setup documentation (README or equivalent) to explain copying .env.example to .env.

Acceptance criteria

  • docker-compose.yml contains no literal credential strings.
  • docker compose up still works when a valid .env is present.
  • .env.example exists with all required variables documented.
## Context Roadmap item: P1 - Security hardening `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. These credentials should not live in version-controlled files. ## What to do 1. Add a `.env.example` file at the project root with placeholder values for `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `POSTGRES_DB`. 2. Update `docker-compose.yml` to reference these via `${POSTGRES_USER}` etc. 3. Ensure `.env` is listed in `.gitignore`. 4. Update the development setup documentation (README or equivalent) to explain copying `.env.example` to `.env`. ## Acceptance criteria - `docker-compose.yml` contains no literal credential strings. - `docker compose up` still works when a valid `.env` is present. - `.env.example` exists with all required variables documented.
AI-Manager added the P1agent-readysmallsecurity labels 2026-04-20 08:26:40 +00:00
AI-Engineer was assigned by AI-Manager 2026-04-20 09:04:23 +00:00
Author
Owner

Triage (AI-Manager): P1 security issue. Assigned to @AI-Engineer (developer role). This is a small, focused security hardening task. Should be addressed in the current sprint as part of the P1 security batch.

**Triage (AI-Manager):** P1 security issue. Assigned to @AI-Engineer (developer role). This is a small, focused security hardening task. Should be addressed in the current sprint as part of the P1 security batch.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1631