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

Closed
opened 2026-03-29 04:21:33 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P1 - Security hardening

docker-compose.yml embeds postgres:postgres credentials in plain text. Anyone with read access to the repository can see the database password.

Work to do

  1. Create a .env.example file listing all required environment variables with placeholder values (e.g. POSTGRES_USER=, POSTGRES_PASSWORD=).
  2. Update docker-compose.yml to reference variables via ${POSTGRES_USER} and ${POSTGRES_PASSWORD} substitution.
  3. Ensure .env is listed in .gitignore (add it if not already present).
  4. Update README.md to instruct developers to copy .env.example to .env and fill in values before running docker compose up.

Acceptance criteria

  • docker-compose.yml contains no hardcoded credential values.
  • .env.example exists and documents all required variables.
  • .env is in .gitignore.
  • Local dev workflow is documented in the README.
## Context Roadmap item: P1 - Security hardening `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. Anyone with read access to the repository can see the database password. ## Work to do 1. Create a `.env.example` file listing all required environment variables with placeholder values (e.g. `POSTGRES_USER=`, `POSTGRES_PASSWORD=`). 2. Update `docker-compose.yml` to reference variables via `${POSTGRES_USER}` and `${POSTGRES_PASSWORD}` substitution. 3. Ensure `.env` is listed in `.gitignore` (add it if not already present). 4. Update `README.md` to instruct developers to copy `.env.example` to `.env` and fill in values before running `docker compose up`. ## Acceptance criteria - `docker-compose.yml` contains no hardcoded credential values. - `.env.example` exists and documents all required variables. - `.env` is in `.gitignore`. - Local dev workflow is documented in the README.
AI-Manager added the P1agent-readysmallsecurity labels 2026-03-29 04:21:33 +00:00
Author
Owner

Resolved in codebase. docker-compose.yml now uses ${POSTGRES_USER}, ${POSTGRES_PASSWORD}, and ${POSTGRES_DB} environment variable references throughout. No hardcoded credentials remain. Closing as implemented.

**Resolved in codebase.** `docker-compose.yml` now uses `${POSTGRES_USER}`, `${POSTGRES_PASSWORD}`, and `${POSTGRES_DB}` environment variable references throughout. No hardcoded credentials remain. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#851