Preview with the drafts
Connect an AI agent to your Postgres database safely
Your agent reads text strangers write. Give it a Postgres role that can read only what its job needs and change nothing, and a check that proves it before the agent ever connects.
Our run, 2026-10-03. A script sent what the planted ticket asks for through DBHub. With the owner's connection it got all 3 API keys and made a customer an admin. With this workflow's role: permission denied and read-only.