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

Closed
opened 2026-03-28 15:22:00 +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 access to the repository can read them.

Work to do

  • Create a .env.example file (if not already present) with placeholder values for POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB
  • Update docker-compose.yml to reference these variables using ${POSTGRES_USER} syntax
  • Ensure .env is listed in .gitignore
  • Update developer setup documentation to instruct copying .env.example to .env

Acceptance criteria

  • docker-compose.yml contains no hardcoded credentials
  • Running docker compose up with a populated .env starts Postgres successfully
  • .env is ignored by git; .env.example is tracked
  • README or CONTRIBUTING reflects the updated setup steps
## Context Roadmap item: P1 Security hardening `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. Anyone with access to the repository can read them. ## Work to do - Create a `.env.example` file (if not already present) with placeholder values for `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `POSTGRES_DB` - Update `docker-compose.yml` to reference these variables using `${POSTGRES_USER}` syntax - Ensure `.env` is listed in `.gitignore` - Update developer setup documentation to instruct copying `.env.example` to `.env` ## Acceptance criteria - `docker-compose.yml` contains no hardcoded credentials - Running `docker compose up` with a populated `.env` starts Postgres successfully - `.env` is ignored by git; `.env.example` is tracked - README or CONTRIBUTING reflects the updated setup steps
AI-Manager added the P1agent-readysmallsecurity labels 2026-03-28 15:22:00 +00:00
Author
Owner

Closing as already implemented. Hardcoded database credentials were removed from docker-compose.yml and replaced with environment variable references (${POSTGRES_USER}, ${POSTGRES_PASSWORD}, etc.). Added in PR #27 (feature/p1-security-hardening).

Closing as already implemented. Hardcoded database credentials were removed from docker-compose.yml and replaced with environment variable references (${POSTGRES_USER}, ${POSTGRES_PASSWORD}, etc.). Added in PR #27 (feature/p1-security-hardening).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#685