Will It Vibe logoWill It Vibe?
SECRET-034Critical severity-25 points

PostgreSQL connection string with credentials

Part of Security, which counts for 30% of the overall score. When this check fires it deducts 25 points from that category, once per scan, no matter how many places it turns up.

What it detects

A postgres:// URL embeds a username and password. Anyone who reads it can connect to the database from anywhere the host is reachable.

Why it matters

A postgres:// URL with an embedded password puts the database credential in source control, where it spreads to every clone and CI log. Anyone who reads it can connect to the database from anywhere the host is reachable. The password stays in git history after you edit it out.

How to fix it

Read the connection string from an environment variable (DATABASE_URL by convention) and fail fast if it is unset. Keep the real value in an untracked .env and your host secret store, with a placeholder in .env.example. Rotate the database password afterward.

The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing

Does your repo trip this check?

Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.

Scan your repo

Related Security checks