What a read-only Postgres role does and doesn't stop when an AI agent connects
A careful read-only role on PostgreSQL 17, with real output: what the GRANTs stop, the settings a session turns off by itself, a stacked COMMIT that escapes a read-only wrapper, and what any role can read in pg_catalog.
How to implement database guardrails for AI agents
A practical, step-by-step guide: one identity per agent, the check in the SQL path, observe before enforce, allowlists, your own rules simulated against real traffic, and a tested kill switch.
What a PostgreSQL proxy must get right: libpg_query, Parse/Bind/Sync, and ReadyForQuery
Real libpg_query trees and wire traces: extended protocol, transaction state, SCRAM, cancellation, and limits measured on PostgreSQL 17 and 18.
Benchmark: what the Vericto proxy adds over a direct connection
The method and results of the official proxy benchmark (BENCH-2026-11-4.21.0, dedicated EC2; vericto-proxy 4.21.0, measured on October 31, 2026): the latency it adds at p50 and p99 over a direct connection on PostgreSQL and MySQL, the CPU per 1,000 statements/s, and what changes with two tasks.
Text-to-SQL guardrails: how to let an LLM query your database without letting it break it
An ambiguous request, an injected instruction, an answer full of personal data and an unbounded read. What each usual guardrail stops (the prompt, a read-only role, keyword filters, a second LLM), how to give the model a verdict it can act on, and how to try it on a staging database.
Why an operation allowlist is not enough: the case of UPDATE without WHERE
Operation allowlists decide on the first token of the query. But an agent that generates UPDATE products SET price = 0 without WHERE, a DELETE … WHERE 1=1 or a DROP inside a DO block gets past that filter. This is how AST parsing catches what the allowlist lets through.
Post-mortem of a scenario: how a LangChain agent can delete every user in production
An illustrative scenario built on a documented pattern: a LangChain agent with write access to Postgres generates a DELETE FROM users without WHERE from an ambiguous request. The full failure path and which control would have stopped it.
SQL AST explained: how pg_query and sqlparser-rs parse SQL
pg_query is the binding for libpg_query, which packages the parser from the PostgreSQL source code. We show how Vericto uses it to build the complete syntax tree of every query and evaluate the rules on it.
How to use the Vericto audit trail as evidence in a SOC 2 audit
The audit trail, the signed PDF report and the control mapping: SOC 2 evidence ready to hand to the auditor.
MCP servers and SQL security: the ecosystem growing without a protection layer
MCP servers expose databases directly to AI agents, and several that advertise a read-only mode turned out not to be. What fails in that model and which control layer is missing.
Shift-left SQL security: validating migrations in CI/CD before deploy
How to add vericto check to GitHub Actions to catch destructive queries in migrations before they reach the database.