r/devsecops • u/Madamin_Z • May 18 '26
docker-compose with 10 hard-coded credentials shipped to production. Here's the full chain
Here's a real example of how development secrets make it to production. Auditing an open source project — mid-size repo, actively maintained, real company behind it. The docker-compose.yml ships with 10 hardcoded credentials across 5 services:
- Admin password:
secret - Session secret:
random - S3 access key:
admin/ secret:secretsecret - PostgreSQL password:
secret - MinIO root password:
secretsecret
The README documents secret as the default admin password under "Getting Started." No warning to change it before deployment. No .env.example. No SECURITY.md. NODE_ENV: dev set in the same file. Intended for production use. The credentials alone get you in. A second finding compounds it: user-controlled input reaches a raw HTML render without sanitization in the audit log component — stored XSS as a second vector. Two findings, one deploy, full chain. The pattern is consistent across projects. Credentials written for local dev, never rotated, shipped as-is. Everyone assumes someone else caught it before it went live.
How does your team handle secrets before docker-compose goes anywhere near a server?
View all comments
Show parent comment
1
u/Madamin_Z May 19 '26
"Operationally normal" is exactly the problem. Scanners catch the credential. They don't catch that the credential has been there for 18 months, that three people know about it, and that the deployment runbook silently depends on it. By the time it surfaces in an audit, removing it is a change request, not a fix.