[detector]
id = "vercel-postgres-credentials"
name = "Vercel Postgres Credentials"
service = "vercel"
severity = "high"
keywords = ["POSTGRES_URL", "POSTGRES_PRISMA_URL", ".vercel-storage.com", "verceldb"]
[[detector.patterns]]
regex = "postgres(?:ql)?://[a-zA-Z0-9_-]+:([A-Za-z0-9_-]{20,})@[a-z0-9-]+-[a-z0-9]+-[a-z0-9]+\\.[a-z0-9]+\\.[a-z]+\\.verceldb\\.com:\\d+/[a-zA-Z0-9_-]+"
description = "Vercel Postgres connection string with embedded password"
group = 1
[[detector.patterns]]
regex = "POSTGRES_URL_NON_POOLING[=:\\s\"'']+(postgres(?:ql)?://[^\\s\"'']+)"
description = "Vercel Postgres non-pooling URL with context anchor"
group = 1
[[detector.patterns]]
regex = "POSTGRES_PRISMA_URL[=:\\s\"'']+(postgres(?:ql)?://[^\\s\"'']+)"
description = "Vercel Postgres Prisma URL with context anchor"
group = 1