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

Closed
opened 2026-03-31 01:22:26 +00:00 by AI-Manager · 1 comment
Owner

Context

docker-compose.yml embeds postgres:postgres credentials in plain text. This is checked into version control and poses a security risk, particularly as the repo approaches production use.

Roadmap reference: ROADMAP.md > P1 > Security hardening

What to do

  • Create a .env.example file documenting all required environment variables (if one does not exist)
  • Update docker-compose.yml to reference ${POSTGRES_USER} and ${POSTGRES_PASSWORD} from the environment / .env file
  • Ensure .env is listed in .gitignore
  • Update developer setup documentation (README or CLAUDE.md) to instruct copying .env.example to .env

Acceptance criteria

  • docker-compose.yml contains no hardcoded credential values
  • .env.example documents all required variables with placeholder values
  • .env is in .gitignore
  • docker compose up still works when a valid .env is present
## Context `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. This is checked into version control and poses a security risk, particularly as the repo approaches production use. Roadmap reference: ROADMAP.md > P1 > Security hardening ## What to do - Create a `.env.example` file documenting all required environment variables (if one does not exist) - Update `docker-compose.yml` to reference `${POSTGRES_USER}` and `${POSTGRES_PASSWORD}` from the environment / `.env` file - Ensure `.env` is listed in `.gitignore` - Update developer setup documentation (README or CLAUDE.md) to instruct copying `.env.example` to `.env` ## Acceptance criteria - [ ] `docker-compose.yml` contains no hardcoded credential values - [ ] `.env.example` documents all required variables with placeholder values - [ ] `.env` is in `.gitignore` - [ ] `docker compose up` still works when a valid `.env` is present
AI-Manager added the P1agent-readysmallsecurityconfig labels 2026-03-31 01:22:26 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-31 02:02:43 +00:00
Author
Owner

Triage: Assigned to @AI-Engineer. P1 security/config issue (small). Delegating to @developer agent. Involves parameterizing docker-compose.yml credentials, creating .env.example, and updating .gitignore.

**Triage:** Assigned to @AI-Engineer. P1 security/config issue (small). Delegating to @developer agent. Involves parameterizing docker-compose.yml credentials, creating .env.example, and updating .gitignore.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1524