Values are masked in the results (like po…***s). Opening a file reads it locally with your browser; it is not uploaded.
What it checks
- Hardcoded secrets in
environment:(map or list form),build.argsand.envfiles: any key that looks like a password, token, API key, salt or private key. - Default and common credentials such as
POSTGRES_PASSWORD=postgres,admin,changeme,minioadmin, or a password that matches the username. - Known token formats: GitHub, GitLab, AWS, Slack and Discord webhooks, Stripe, OpenAI-style
sk-keys, Google, Telegram, Hugging Face, Tailscale auth keys, JWTs and private key blocks. - Passwords inside URLs (
postgres://user:pass@db) and secrets on the command line (--requirepass,--password=), which show up indocker inspectandps. - Risky fallbacks like
${ADMIN_PASSWORD:-admin}, placeholders left from a README, empty or short secrets, and services that keep secrets inline instead of usingenv_file:or Docker secrets.
How to fix it
For a homelab, the simple fix is a .env file next to your Compose file (Compose reads it automatically), kept out of git and readable only by you:
# .env (add ".env" to .gitignore, then: chmod 600 .env)
DB_PASSWORD=paste-the-output-of-openssl-rand-base64-32
# docker-compose.yml
services:
db:
image: postgres:17
environment:
POSTGRES_PASSWORD: $${DB_PASSWORD:?set DB_PASSWORD in .env} For more protection, use Docker secrets. Many images (Postgres, MariaDB, Vaultwarden, Nextcloud, Immich and more) read a *_FILE variable, so the value never sits in the environment:
services:
db:
image: postgres:17
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
secrets: [db_password]
secrets:
db_password:
file: ./secrets/db_password.txt # chmod 600, not in git Already pushed a secret to GitHub? Deleting the line isn't enough, because it stays in git history. Rotate the password or revoke the token first, then clean up.
Database passwords are only read the first time the container starts. After changing POSTGRES_PASSWORD or MYSQL_ROOT_PASSWORD, change it inside the database too, and in every app that connects to it.
Privacy: this checker is a small script on this page with no network calls. Your file never leaves your browser. It's a pattern check, not a full security audit.
Next: check the same Compose file for risky image updates or validate its YAML.
📬 The Weekend Patch Report
One email a week: what's safe to update, what will bite, and one practical tip for your homelab or printer.
Free, weekly, unsubscribe anytime.