Repository navigation
Releases
5.2.0 - 2026-11-16
Release Notes
Hard mode for vericto-proxy mcp: MySQL and MariaDB, the URL in the OS
keychain, and a read-only check of the database role. The agent gets
execute_sql and never the credential: the URL can live in the macOS
Keychain, Windows Credential Manager or the Linux Secret Service instead of a
file or the environment, and the server can refuse to start when its role can
write. Minor release (proposed 5.2.0): new settings, a new subcommand, a new
database; nothing that ran before changes.
Added
-
MySQL and MariaDB in
vericto-proxy mcp(mysql://,mariadb://, or
UPSTREAM_*withVERICTO_WIRE_PROTOCOL=mysql).execute_sql,
describe_schema,check_sqlandwhoamiwork as on PostgreSQL: the
evaluator in the MySQL dialect, one statement per call, the read tier only
(statement class from sqlparser's MySQL tree, fail closed), every call in
START TRANSACTION WITH CONSISTENT SNAPSHOT, READ ONLYthat ends in
ROLLBACK, the same row, byte, cell and time caps and the same output.
The statement is sent exactly as evaluated withCOM_STMT_PREPARE/
COM_STMT_EXECUTE,?params bound in order. Each call pinssql_mode
(noANSI_QUOTES,NO_BACKSLASH_ESCAPESorPIPES_AS_CONCAT), UTC and the
timeouts (max_execution_timeon MySQL,max_statement_timeon MariaDB,
KILL QUERYat the client-side deadline and on the kill switch). Refused on
MySQL: executable comments (/*! */,/*M! */), optimizer hints
(/*+ */), named parameters,:=,SELECT … INTO, locking reads,
EXPLAIN ANALYZE, andMYSQL_DENIED_FUNCTIONS(get_lock,load_file,
benchmark,sys_exec…). TLSverify-fullby default off loopback, from
ssl-mode,sslmode,ssl-ca,ssl-cert,ssl-keyorsslaccept.
docs/MCP.md, "MySQL and MariaDB". -
--database-url-keychain <name>(VERICTO_MCP_DATABASE_URL_KEYCHAIN):
the URL from the OS credential store,name(servicevericto-proxy) or
service/name. First in the precedence keychain, file, URL in the
environment,UPSTREAM_*; the sources that lose are named in a warning.
whoami.credential_sourcesays which was used. -
vericto-proxy mcp credential set|delete|test <name>: stores a URL read
from stdin (hidden on a terminal, never echoed), removes it, or connects with
it and reports the engine and the role check. One JSON object on stdout,
documented exit codes (0, 1 usage, 2 no such entry, 3 the role can write
with--require-read-only, 4 unreachable), forvericto guard install --hard. -
The role check at startup: whether the database role can write
(PostgreSQL: superuser,CREATEROLE,CREATEDB, write privileges on any
table,CREATEon a schema or the database,pg_write_all_data, a hot
standby; MySQL:SHOW GRANTS,read_only,super_read_only). A role that
can write is a startup warning and thewhoaminotice
database_role_can_write;whoami.database_rolehas the details.
--require-read-only(VERICTO_MCP_REQUIRE_READ_ONLY=true) refuses to
start unless the role is verified read-only. -
docs/MCP.md: "Hard mode" (setup, threat model and the per-OS limits of the
keychain), "MySQL and MariaDB", and "Read-only database roles" (PostgreSQL,
MySQL, Supabase, Neon, PlanetScale, RDS). -
The agent-environment warning also names
MYSQL_PWD,MYSQL_PASSWORD,
MYSQL_URL*,MARIADB_PASSWORD,PLANETSCALE_*,~/.my.cnfand
~/.mylogin.cnf. -
database_tls_unverifiedwarning: withsslmode=require/prefer/allow(or MySQLREQUIRED/PREFERRED) to a host that is not loopback,mcplogs at startup and reports inwhoamithat the certificate is not verified, and points tosslmode=verify-full.
Dependencies
mysql_async0.37 (already the MySQL driver of the tests) and its
mysql_common, now in the binary: rustls on ring, no C zlib.keyring3.6 (macOS and Windows backends only) andrpassword7. On Linux
the Secret Service is reached through libsecret'ssecret-toolcommand, so
the Linux binary still links only libc, libm and libgcc_s and the tree gains
no D-Bus crate. Thekeychainfeature (default) can be left out with
--no-default-features.foldhash(Zlib, through mysql_async'slru) is the first shipped crate
under Zlib, which deny.toml already allowed; third-party/about.toml accepts it
and THIRD_PARTY_LICENSES is regenerated.
Install vericto-proxy 5.2.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/vericto/vericto-proxy/releases/download/v5.2.0/vericto-proxy-installer.sh | shInstall prebuilt binaries via Homebrew
brew install vericto/tap/vericto-proxyDownload vericto-proxy 5.2.0
| File | Platform | Checksum |
|---|---|---|
| vericto-proxy-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| vericto-proxy-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| vericto-proxy-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| vericto-proxy-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| vericto-proxy-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo vericto/vericto-proxyYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>5.1.0 - 2026-11-15
Release Notes
Engine 5.1.0: whole-table WHERE clauses are blocked like a missing WHERE.
The proxy pins vericto-engine v5.1.0 (from v5.0.0). Its own code, settings,
protocols and telemetry format are unchanged, but some DELETE and UPDATE
statements that 5.0.2 forwarded are now rejected at the wire and by the MCP
server's check_sql. Minor release because verdicts change (as 4.2.0 and
4.23.0).
Behaviour changes
-
A
DELETE/UPDATEwhoseWHEREkeeps every row of its own target is
now blocked, by the rules that already block a missing or always-true
WHERE: VERICTO-003 forDELETE, VERICTO-030 (and VERICTO-042) for
UPDATE, all Critical / Block in the built-in ruleset. On PostgreSQL and
MySQL, simple and prepared statements:c IN (SELECT c FROM <same table>)andc = ANY (SELECT c FROM <same table>);EXISTS (SELECT … FROM <same table>);- complementary
IStests on one column, such as
email IS NULL OR email IS NOT NULL.
The engine decides this only for a single plain target whose subquery reads
the same table with no filter, grouping, limit, join or CTE, so
id IN (SELECT id FROM users WHERE banned),
id IN (SELECT user_id FROM orders)anda IS NULL OR b IS NOT NULLare
still forwarded. A workload that relies on such a statement to empty a table
on purpose now gets the protocol's native error; trial 5.1.0 with
monitor_mode, or approve the operation through the workspace policy rather
than through a filter that filters nothing. -
DROP DATABASEalso reports VERICTO-012. Engine 5.1.0 renames
VERICTO-012 "DROP SCHEMA / DATABASE" and extends it toDROP DATABASE, which
still matches VERICTO-010. The statement was already blocked (VERICTO-010 is
still the winner and the reportedrule_code); its violation list, telemetry
event andcheck_sqlfindings now carry both codes. A workspace that disabled
VERICTO-010 but keeps VERICTO-012 now blocksDROP DATABASE. -
No change for
TRUNCATE,DROP SCHEMAandDROP DATABASEotherwise.
Engine 5.1.0 moves VERICTO-011 and VERICTO-012 from theSchemaMigration
class toDataMutation, so a CI channel'sschema_migration_capno longer
softens them. The proxy never sets that cap (the TCP proxy and the MCP
server are runtime channels), so these statements were already blocked and
still are. -
SQL Server
DELETE TOP (n)/UPDATE TOP (n)now parse in the engine. The
proxy serves the PostgreSQL and MySQL wire protocols only, so it never
evaluates T-SQL; nothing changes here.
Added
- Dependabot keeps
THIRD_PARTY_LICENSEScurrent. A new workflow
(.github/workflows/dependabot-notices.yml) rebuilds the file on Dependabot
pull requests that changeCargo.lock, with the same script and cargo-about
0.9.2 as CI, and commits it to the Dependabot branch, so the
"THIRD_PARTY_LICENSES is current" check passes without a manual step. It pushes
with the Dependabot secretNOTICES_PUSH_TOKEN(a fine-grained token limited
to this repository, Contents: read and write), because a commit pushed with
GITHUB_TOKENwould not start the required checks.
Changed
- vericto-engine v5.0.0 → v5.1.0 (
Cargo.toml,Cargo.lock). The built-in
ruleset is still the engine'sstandard_rules(): same codes, severities and
default actions, so the proxy keeps no rule titles of its own to rename. A
new test (engine_5_1_0_verdicts_on_the_wire_dialects) pins the verdicts
above on both wire dialects. - README "What it blocks" names whole-table
WHEREclauses and
DROP DATABASE; README, docs/MCP.md, NOTICE and LICENSING.md name 5.1.0
(image tags, installer URLs, the pinned engine version). - Dependencies:
flate21.1.10 → 1.1.11 andarc-swap1.9.3 → 1.9.5
(Cargo.lockonly), withTHIRD_PARTY_LICENSESregenerated. The engine bump
changes no other crate;THIRD_PARTY_LICENSESis regenerated for the engine
and proxy versions.
Fixed
- The regenerated
THIRD_PARTY_LICENSEScommit passes the CLA check. The
Dependabot notices workflow now authors it as the maintainer account that owns
NOTICES_PUSH_TOKEN. Asdependabot[bot]it was an unsigned bot commit, which
the CLA check rejects.
Install vericto-proxy 5.1.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/vericto/vericto-proxy/releases/download/v5.1.0/vericto-proxy-installer.sh | shInstall prebuilt binaries via Homebrew
brew install vericto/tap/vericto-proxyDownload vericto-proxy 5.1.0
| File | Platform | Checksum |
|---|---|---|
| vericto-proxy-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| vericto-proxy-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| vericto-proxy-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| vericto-proxy-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| vericto-proxy-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo vericto/vericto-proxyYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>5.0.2 - 2026-11-14
Release Notes
Maintenance release: Homebrew formula vericto/tap/vericto-proxy. The
proxy's rules, configuration, protocols and telemetry are 5.0.1's, and it still
pins vericto-engine 5.0.0. No other change was merged after v5.0.1.
Added
- Homebrew formula
vericto-proxyin the
vericto/homebrew-tap tap, next to
the CLI'svericto:brew install vericto/tap/vericto-proxyon macOS
(Apple silicon and Intel) and Linux (arm64 and x86_64, the glibc archives).
cargo-dist generates it with every release (installers = ["shell", "homebrew"],formula = "vericto-proxy"), pinned to the SHA-256 of the four
archives. A custom publish job (.github/workflows/homebrew-publish.yml, as
in vericto-cli) adds atest doblock, checks every URL and SHA-256 against
the release'ssha256.sumand pushes the formula to the tap. It runs in the
reviewer-gatedprodenvironment, which holdsHOMEBREW_TAP_TOKEN; the
GitHub release is announced only after it succeeds. vericto-proxy --version(and-V) printsvericto-proxy <version>on
stdout and exits without starting the proxy (the formula's test runs it).
Before, any argument other thanhealthcheckandmcpwas ignored and the
proxy started.vericto-proxy mcp --versionis unchanged (stderr).- README "Install the native binary" and docs/MCP.md install with Homebrew.
There is no npm package.
Changed
Cargo.tomlmetadata, which the formula takes itsdescandhomepage
from:descriptionis "Database guardrails for AI agents: TCP proxy and MCP
server that check SQL" (under Homebrew's 80 characters) andhomepageis
https://vericto.com.
Install vericto-proxy 5.0.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/vericto/vericto-proxy/releases/download/v5.0.2/vericto-proxy-installer.sh | shInstall prebuilt binaries via Homebrew
brew install vericto/tap/vericto-proxyDownload vericto-proxy 5.0.2
| File | Platform | Checksum |
|---|---|---|
| vericto-proxy-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| vericto-proxy-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| vericto-proxy-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| vericto-proxy-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| vericto-proxy-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo vericto/vericto-proxyYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>5.0.1 - 2026-11-12
Release Notes
Maintenance release: native binaries in every GitHub Release. The proxy's
code, rules, configuration, protocols and telemetry are 5.0.0's, and it still
pins vericto-engine 5.0.0. What changes is how it is shipped.
Added
- Prebuilt binaries attached to the GitHub Release, built by cargo-dist
0.32.0 (dist-workspace.toml, the same setup as vericto-cli) for
x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu(glibc 2.35 or later),
x86_64-apple-darwin,aarch64-apple-darwinandx86_64-pc-windows-msvc.
Each archive (.tar.xz,.zipon Windows) carries the binary withLICENSE,
NOTICE,THIRD_PARTY_LICENSES,LICENSE_HISTORY.md, the README and this
CHANGELOG, and has a.sha256file (all listed insha256.sum) and a Sigstore
build provenance attestation:
gh attestation verify <archive> --repo vericto/vericto-proxy. Up to 5.0.0 the
release had no binaries, so only a source build or the container image could
runvericto-proxy(andvericto-proxy mcp) as a native command. vericto-proxy-installer.shfor Linux and macOS: picks the archive for the
machine, checks its SHA-256 and installsvericto-proxyin$CARGO_HOME/bin
(~/.cargo/bin). No PowerShell installer: cargo-dist's does not verify what it
downloads.THIRD_PARTY_LICENSESis committed at the repository root for every
release target (third-party/about.tomllists the five; it listed only the
two Linux ones), and a CI job (notices) fails when it does not match what
third-party/build-notices.shwrites forCargo.lock. The image build still
generates its own copy from the same configuration.- README "Install the native binary" and docs/MCP.md set up
vericto-proxy mcp
from the release binary, without Docker. Homebrew and npm packages are still
planned.
Changed
- Runtime base image:
cgr.dev/chainguard/glibc-dynamic:latest@sha256:cb7aa468…983409eb
(after #105'saab5cd0b…37b65399), from671a6210…9b14af53: glibc 2.44-r16
(was r10; r16 fixes CVE-2026-84243), libgcc and libstdc++ 16.2.0-r3 and
wolfi-baselayout 20230201-r31; same packages and licenses
(third-party/runtime-base.txt, whose digest is now the pinned one; it still
named5bb93266…in 5.0.0).Dockerfile.localmoves with it. - The image pipeline is
.github/workflows/docker.yml(it was
release.yml), unchanged in what it does: metadata gate, PGO training, Grype
scan, SBOM and provenance attestations, GHCR and the Docker Hub mirror.
release.ymlis now generated by cargo-dist and Dependabot leaves it alone;
its action pins live indist-workspace.toml. Pull requests run it as a
release dry run that builds every target. - The release binaries are the plain release build (
[profile.dist]inherits
[profile.release]). The image keeps the PGO build (docs/PERFORMANCE.md). - CI actions:
actions/github-script9.0.0 (#108),docker/login-action4.8.0
(#107),taiki-e/install-action2.90.2 (#106).
Upgrading
- Nothing to change for the image:
vericto/vericto-proxy:5.0.1(or5.0,
5) is a drop-in replacement for 5.0.0. - Verify an image's provenance as before; the attestation now names
.github/workflows/docker.ymlas the workflow.
Install vericto-proxy 5.0.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/vericto/vericto-proxy/releases/download/v5.0.1/vericto-proxy-installer.sh | shDownload vericto-proxy 5.0.1
| File | Platform | Checksum |
|---|---|---|
| vericto-proxy-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| vericto-proxy-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| vericto-proxy-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| vericto-proxy-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| vericto-proxy-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo vericto/vericto-proxyYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>v5.0.0
[5.0.0] - 2026-11-03
Changed
- License and major version. Version 5.0.0 and later is available under the
GNU Affero General Public License, version 3 only (AGPL-3.0-only), or under
a separate commercial license from Vericto S.A.S.LICENSEis the official
AGPL text, unmodified. Versions 4.14.0 through 4.23.0 retain FSL-1.1-ALv2 and
its future Apache-2.0 grant; versions 4.13.0 and earlier retain Elastic-2.0.
Proxy behavior, protocols, configuration and telemetry are unchanged. LICENSE_HISTORY.mdrecords the tag and SHA of the last FSL release and the
documented public dates used for its future-license schedule. Tagv5.0.0
will identify the first AGPL release.- Version 5.0.0 pins vericto-engine 5.0.0. Both Vericto crates use
AGPL-3.0-onlyin their public metadata and generated image notices. Cargo.toml, image metadata and source headers declareAGPL-3.0-only.
NOTICE,LICENSING.md, README, CONTRIBUTING and TRADEMARKS describe the
new license without changing the AGPL text.- CLA 1.1 aligns the contribution grant with dual licensing, the actual GitHub
comment-signature workflow, moral-right consent, enforcement cooperation,
employer authorization and AI-assisted contributions. CLA 1.0 is preserved;
new signatures use a separate v1.1 record. deny.tomlandthird-party/about.tomlallowAGPL-3.0-onlyonly for
vericto-proxy and vericto-engine. Third-party copyleft or source-available
dependencies remain blocked from the commercially licensed binary.
v4.23.0
[4.23.0] - 2026-10-31
Engine 4.7: existing rules catch the same destructive operation through more
equivalent SQL forms. The proxy pins vericto-engine v4.7.1 (from v4.6.0). No rule,
severity or policy default changes, and the proxy's own code, settings, protocols and
telemetry are unchanged, but some statements that 4.22.0 forwarded are now flagged or
blocked by the rule they always should have matched. Minor release because verdicts
change.
Upgrade notes
- dbt-snowflake's parenthesized incremental
INSERT … (SELECT …)now matches
VERICTO-040, and SQL ServerSELECT … INTO #tempmatches VERICTO-084. Both copy
rows by design. Trial 4.23.0 withmonitor_mode, then set the affected rule action
explicitly if those copies are approved workflow operations. - An optional-filter expression rendered with a literal NULL branch, such as
status = 'active' OR NULL IS NULL, now matches VERICTO-090 because it is
unconditionally true. Keep runtime values as bind parameters when the branch is
data-dependent; approve intentional all-row operations through policy rather than
disguising them as a filter. - Business policies (CEL, preview):
uint()of a negative double in (-1, 0), such as
uint(-0.5), is now a range error, asuint(-1.0)already was; earlier releases
returned0u. Awhen/deny_if/requirecondition that reaches
that case is now inconclusive, so the policy'son_unknowndecides.
Engine 4.7.0
User-visible changes of vericto-engine 4.7.0 (engine CHANGELOG [4.7.0]), all of
which the proxy now enforces on both protocols and in MCP check_sql / execute_sql:
- Constant predicates count as WHERE-less for VERICTO-003/030/042:
NULL IS NULL,
1 IS NOT NULL,NOT (1 IS NULL),(1=1) IS TRUE,TRUE IS TRUE,
NULL IS UNKNOWN,1 IS DISTINCT FROM NULL,NULL IS NOT DISTINCT FROM NULL.
Inside anORthey reach VERICTO-090; on anINSERT … SELECTthey are not a
filter for VERICTO-040. - A known match makes a positive
INtrue:1 IN (1, NULL)and1 IN (1, id)
no longer bypass those rules.1 IN (2, id)and everyNOT INstay undecided. - VERICTO-084 covers table-copy syntax on every parser path: MySQL and Oracle
CREATE TABLE … AS SELECT …, PostgreSQL / SQL ServerSELECT … INTO <table>, and
materialized-view creation on the sqlparser dialects. MySQLSELECT … INTO @variable
and ordinary views are not table copies. - VERICTO-040 covers set-operation, parenthesized and
TABLE tsources:
INSERT … SELECT … UNION SELECT …andINSERT … TABLE ton MySQL / Oracle /
SQL Server / Snowflake. An enclosing limit, effective filters on every UNION arm,
INTERSECT / EXCEPT,TOPand fixed-row SnowflakeSAMPLEkeep the source bounded;
literal VALUES inside parentheses or set operations stay VALUES inserts. - VERICTO-061 counts parenthesized VALUES batches above its 10,000-row threshold.
- VERICTO-070 and custom
func_namerules see every executed expression: a
sleep-family call can no longer hide inJOIN … ON,GROUP BY/HAVING,
ORDER BY,UPDATE … SET,INSERT … VALUES, window clauses,RETURNING,
ON CONFLICT, MySQLSET, prepared statement bodies, PostgreSQL expression
wrappers or a nested query.EXPLAIN ANALYZEis inspected; plainEXPLAINis not. - VERICTO-051 treats a qualified wildcard (
t.*) asSELECT *. - False-positive controls stay narrow: no function, arithmetic, correlated-subquery
or row-dependent folding, soid IS NOT NULL,name LIKE '%',1 IN (2, id)and
NOT INremain real filters.
Engine 4.7.1
- The per-statement cost 4.7.0 added on the sqlparser path is recovered (MySQL,
SQL Server, Oracle, Snowflake, SQLite): the complete expression walk visits the
clauses statements are made of directly instead of running sqlparser's generic
traversal over every node. Coverage and records are unchanged; on the MySQL perf-gate
statements the engine is back to 4.6.0's instruction count. - CEL
uint()of a negative double is a range error (see Upgrade notes).
Changed
- vericto-engine v4.6.0 → v4.7.1 (git tag,
64e13ef).Cargo.lockchanges only
the engine entry;pg_query6.2 andsqlparser0.63 stay aligned with it. No
public engine API the proxy uses changed, so no proxy code changes. - Image metadata for the official MCP Registry. Released images carry the label
io.modelcontextprotocol.server.name=com.vericto/vericto-proxy, which the registry
checks before it lists thevericto-proxy mcpserver under that name, and the image
description reads "Vericto: database guardrails for AI agents — deterministic AST
parsing". Aglama.jsonat the repository root names the maintainers for Glama's MCP
directory. The install examples in the README anddocs/MCP.mdpin 4.23.0. The crate
description (cargo metadata, crates listings) and the binary's module docs say
"database guardrails for AI agents" instead of "SQL firewall".
v4.22.0
[4.22.0] - 2026-10-31
Bounded parse cost before and after evaluation. The TCP proxy evaluates
statements up to 1 MiB by default (10 MiB before) and refuses, before any parser
runs, an expression with more than 10,000 binary operators. Log previews and
sanitized telemetry normalize a long statement on a stack sized for it. Ordinary
traffic is answered exactly as in 4.21.0.
Upgrade notes
- Behavior change: the TCP default of
VERICTO_MAX_QUERY_BYTESis 1 MiB, down
from 10 MiB. A statement larger than 1 MiB that 4.21.0 evaluated is now refused
before parsing withVERICTO-QUERY-TOO-LARGE: blocked under enforcement,
forwarded unevaluated (and reported) undermonitor_mode. Set
VERICTO_MAX_QUERY_BYTES=10485760to restore the previous value. MCP mode keeps
its 64 KiB default. - Behavior change: long generated
OR/CASE WHENchains are refused before
parsing. An expression with more than 10,000 binary operators outside
parentheses (roughly 5,000col = value OR …terms) is aVERICTO-PARSE-ERROR:
blocked under fail-closed (parse_error: block, a block or mask sensitive-column
policy, an enforced allowlist or an applicable enforced business policy),
forwarded with a parse-error flag under the fail-open default. Raise
VERICTO_MAX_BINARY_OPERATORSfor reviewed SQL, or send such a list as
col IN (…)orcol = ANY($1), which the guard does not count as one chain.
Security
- Linear pre-parse complexity guard. Before either SQL parser sees untrusted text,
the proxy counts binary operators in each unparenthesized expression and stops at
operator 10,001 by default (VERICTO_MAX_BINARY_OPERATORS). This bounds a
left-associative expression whose parse time grows quadratically, independently of
statement size. Strings, quoted identifiers and ordinary comments do not count;
MySQL executable comments do. A refusal isVERICTO-PARSE-ERROR, so the existing
fail-closed / fail-open policy decides whether it is blocked or forwarded with a flag.
Both TCP protocols and MCPcheck_sql/execute_sqluse the guard. Telemetry
and the block log report a refusal by the statement's size only, never its text.
A refusal is recognized by the guard's exact message, so an ordinary parse error
that quotes the guard's wording is reported as the parse error it is. - Bound the stack used by log previews and sanitized telemetry. The block log's
query_previewand sanitized telemetry normalize a PostgreSQL statement with
libpg_query, which needs stack in proportion to the statement's depth. A
statement longer than 1 KiB is now normalized on a thread whose stack is sized
for its length, as its evaluation already was, instead of on an async worker
(8 MiB) or the telemetry builder thread (2 MiB); shorter statements are
unchanged. A statement the complexity guard refused is never normalized: the log
names only its size, as telemetry already did. Logs and events still carry no
literal, and text that cannot be normalized is still the fixed redaction marker.
MySQL text is sanitized by a linear, non-recursive tokenizer and is unchanged.
Changed
- The TCP default of
VERICTO_MAX_QUERY_BYTESis 1 MiB, down from 10 MiB (see
Upgrade notes). Ordinary ORM traffic, migrations and analytical queries fit; a
batch loader or generated query that legitimately needs more can raise the
variable up to the protocol cap.
v4.21.0
[4.21.0] - 2026-10-30
MCP Proxy mode: an agent runs SQL through Vericto, and what is checked is what
runs. vericto-proxy mcp is an MCP server in the same binary and image. An AI agent
(Claude Code, Cursor, Codex, any MCP client) gets execute_sql and no database
credential: every statement is evaluated against the workspace's rules, masks,
allowlists and business policies, and the server runs exactly the bytes it evaluated
(or the policy's own rewrite) on PostgreSQL, read-only, with row, size and time caps.
This is milestone M1 of the design "MCP execution modes" (vericto-fmw
docs/design/mcp-proxy-mode.md, revision 3.1), the read tier only. The TCP proxy
answers every statement exactly as in 4.20.0. See docs/MCP.md.
Added
vericto-proxy mcp(src/mcp/), over stdio (the default; stdout carries
JSON-RPC only and every log line goes to stderr; the process exits when stdin
closes) or stateless Streamable HTTP (--transport http,POST /mcp,127.0.0.1:8808
by default). One PostgreSQL database per process; the TCP listener is off in this
mode. EveryVERICTO_MCP_*setting is also a flag (vericto-proxy mcp --help).execute_sql, the exact-text guarantee (design §7). One statement per call (a
second one, a NUL byte, an empty or oversized statement, orparamsthat do not match
$1…$nisINVALID_INPUTbefore evaluation); evaluation under one snapshot with the
MCP identity as the principal; the evaluator's bytes, or its mask /LIMITrewrite,
sent as one unnamedParsewith the values inBind, inside
BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ, READ ONLYwithSET LOCAL
timeouts and pinned settings, ending inROLLBACKevery time. The PostgreSQL client is
the low-levelpostgres-protocolcrate on the proxy's ownconnect_upstream(TLS
verify-fullby default for any host that is not loopback; SCRAM-SHA-256; MD5 only with
VERICTO_MCP_ALLOW_MD5; no driver-issued catalog lookups). The only SQL of its own is
insrc/mcp/control.rs, with a test that fails if SQL appears anywhere else.- The read tier, enforced twice (§8.4, §9.1): the statement class from the parse
tree (reads only; a data-modifyingWITHanywhere raises the tier; a statement the
parser cannot read is refused whatever the parse-error policy), a denylist of
side-effect functions found anywhere in the tree (pg_terminate_backend,
set_config,dblink*,lo_*,query_to_xml*,table_to_xml*,nextval…), and the
READ ONLYtransaction. Above read:TIER_NOT_ENABLED; never-run statements (SET,
COPY,DO…):INVALID_INPUT. - Bounded results (§8): rows (200, cap 1000; fetched with
Execute{max_rows+1}),
serialized bytes (256 KiB, cap 1 MiB), bytes per value (8 KiB, cap 64 KiB), statement
time (15 s, cap 60 s), lock wait (2 s), each cut said intruncated, the text and a
refine_querynext step; values converted by type (int8/numericas exact strings,
JSON as JSON, arrays as arrays,byteaas base64 with its length). A connection that
broke or is not idle after a call is never reused (VERICTO_MCP_POOL_SIZE, default 4). - Database errors sanitized (
VERICTO_MCP_RESULT_DETAIL=sanitized, §15 T5):
DETAIL,HINT,WHERE,CONTEXTdropped and quoted values redacted for SQLSTATE
classes 21, 22, 23 and P0, so a cast cannot print a masked value. describe_schema(tables, columns, keys from fixed catalog queries; masked and
blocked columns marked; filtered by an enforced allowlist), a localcheck_sql
(the hosted tool's answer, evaluated here, no CI checks spent, events
execution_status: dry_run),whoamiwith theexecutionblock, and, with the
control-plane link,list_rules/show_rulefrom the signed bundle.- The contract shared with the control plane in
tests/mcp-contract/(vendored from
vericto-fmw PR #543; this repository is its home from now on, design §6.9): input,
output, the 42 outcomes and their exact next steps, error codes,whoami.execution,
ingest events and the sync section, all asserted bysrc/mcp/protocol_tests.rs. - Signed rule sync in mcp mode (§7.5, §11.2): every bundle must carry a valid
signature whateverVERICTO_POLICY_RULESsays (it defaults toenforcethere;offis
refused); the sync sendsX-Vericto-Proxy-Mode: mcpand polls every 30 s by default;
execute_sqlanswersNOT_READYuntil a signed bundle (or the verified rules cache)
is in force (VERICTO_MCP_REQUIRE_CONTROL_PLANE). The bundle'smcpsection (tiers,
limits that can only lower this process's, the key's own kill-switch block, and the
agent keys by SHA-256) is read fail-safe. - HTTP authentication and guards (§5.4):
Host/Originvalidated before
authentication (VERICTO_MCP_ALLOWED_HOSTS,VERICTO_MCP_ALLOWED_ORIGINS), a bearer
token mandatory also on loopback (the bundle's agent keys, or
VERICTO_MCP_AUTH_TOKENS_FILE), TLS (PROXY_TLS_MODE=require) or
VERICTO_MCP_ALLOW_PLAINTEXT_HTTPfor a non-loopback listener, a bounded body and a
header read timeout. The kill switch applies by key, by database user and to the
workspace, and cancels a statement already running. - Credentials (§12.1):
VERICTO_MCP_DATABASE_URL_FILE(preferred),
VERICTO_MCP_DATABASE_URL(warned about) orUPSTREAM_*;--database-urlis refused;
the password never prints. At startup, and inwhoami, the server warns
(agent_environment_has_db_credentials) when its environment also exposes a database
credential (DATABASE_URL*,PGPASSWORD,POSTGRES_URL*,SUPABASE_DB_*,NEON_*,
~/.pgpass, a secret file other users can read). - Telemetry (§14): one event per call, refused ones included,
source: mcp_proxy,
withexecution_status,tier,rows_returned,bytes_returned,truncated,
sqlstate,execution_ms,mcp_client_name/version,statement_sha256and, over
HTTP,api_key_id; counts and hashes only, never a result value. Input refused before
evaluation isstatus: INVALIDwith its hash. An ingest that refuses the new source is
sent the same events assource: mcp(once detected, for the life of the process). - A principal signal
mcp_credential(strong) in theprincipalssection, matched by
the key an MCP call presents; a TCP session never has one. - Try it without an account: the local mode. With none of
VERICTO_API_URL,
VERICTO_API_KEYandVERICTO_DATABASE_IDset,vericto-proxy mcpstarts on the
built-in ruleset the TCP proxy runs standalone, read tier only, with every safety of a
linked server (exact text, read-only twice, limits, sanitized errors, TLS
verify-full), and sends nothing anywhere (no event, heartbeat or sync). The startup
log says so (mode=local);whoamireportscontrol_plane.mode: "none",
control_plane.ruleset: "built-in"andcontrol_plane.reporting: false(new fields,
alsoruleset: "signed_bundle","rules_cache", or"none"whileNOT_READYwhen
linked;whoami-execution.jsongainsproxy_unlinked_control_planeand
control_plane_values); the server instructions andwhoamisay once that an account
adds custom rules, business policies, sensitive-column masking, audit and the
dashboard. There is no dashboard kill switch in this mode.docs/MCP.mdstarts with a
quick start without an account (Claude Code, Cursor, Codex; Docker or a source build),
then "Connect to Vericto".
Security
-
A configured control plane is never replaced by the built-in rules in
mcpmode.
VERICTO_API_KEYlinks the server (VERICTO_DATABASE_IDoptional, as on the TCP
path); it then answersNOT_READYuntil a signed bundle or the verified rules cache is
in force, also when the control plane is unreachable or a bundle fails the signature
check.VERICTO_API_URLorVERICTO_DATABASE_IDwithout a key, a key with an empty
VERICTO_API_URL, andVERICTO_MCP_REQUIRE_CONTROL_PLANE=truewithout a key are
startup errors (the TCP proxy keeps its behaviour: it runs standalone). -
HTTP without a control plane needs bearer tokens:
--transport httpin the local
mode does not start unlessVERICTO_MCP_AUTH_TOKENS_FILElists at least one token
(before, it started and refused every request). -
Parsing on a large stack. In
mcpmode every parse of agent text runs on a thread
with a large stack (reserved, committed as touched), at most 8 at a time, and
statements are limited to 64 KiB by default (at most 1 MiB), so a deeply nested
statement cannot exhaust a worker's stack. -
TCP proxy: evaluation of very large statements runs on threads with enough
stack. A statement overVERICTO_INLINE_EVAL_MAX_BYTESis evaluated on a thread
of its own whose stack is sized from the statement's length (reserved address space,
committed only as a deep parse touches it), two per CPU at a time, at least 8,
instead of on the blocking pool's 2 MiB threads; the async runtime's threads get an
8 MiB stack. Verdicts are unchanged. A statement that could not be given a thread is
not forwarded and its session ends.
Changed
TelemetryEventgains optional MCP fields (omitted on every TCP event, so a TCP
event's JSON is what 4.20.0 sent); the principal map, the rule sync and the telemetry
reporter gain the hooksmcpmode uses, each a no-op on the TCP path.VERICTO_INLINE_EVAL_MAX_BYTESis at most 4096: a larger value is used as 4096, with a
warning (a statement evaluated inline uses the worker's stack). The default (1024) is
unchanged.
Dependencies
postgres-protocol0.6 (MIT OR Apache-2.0; already in the tree as a dependency of the
tokio-postgresdev-dependency), and the server half ofhyper1 withhyper-util
andhttp-body-util(MIT; already compiled in as reqwest's client). Newly shipped
transitive crates are MIT, Apache-2.0 or Unicode-3.0 licensed (cargo-den...
v4.20.0
[4.20.0] - 2026-10-27
The proxy says when the database is a newer PostgreSQL than its parser. The
engine reads PostgreSQL with the PostgreSQL 17 parser; a PostgreSQL 18 database
accepts syntax that parser cannot read, which the proxy handles as a parse error.
The proxy now compares the server_version the database reports with the parser's
version and, when the database is newer, logs one warning per upstream and shows
it on /metrics and in the rule-sync heartbeat. Observability only: every
statement is answered exactly as in 4.19.0, and nothing runs per statement.
Added
- A warning when the database is a newer PostgreSQL than the parser
(src/tcp/upstream_version.rs). The engine parses PostgreSQL with libpg_query,
the grammar of one major version (17 withpg_query6.x); a newer database
accepts syntax it cannot read, and such a statement is a parse error
(VERICTO-PARSE-ERROR: refused when parse errors fail closed, forwarded and
flagged under the fail-open default). The proxy now reads theserver_version
the database sends at startup and, when its major is newer than the parser's
(read frompg_queryitself, not a constant), logs one warning per upstream
host:portfor the life of the process, underalert="upstream_newer_than_parser"
withserver_version,server_majorandparser_major; again only for a still
newer major. Equal and older versions, and aserver_versionthat cannot be
read, are logged atdebug. The same state is in/metrics
(vericto_proxy_upstream_newer_than_parser,
vericto_proxy_upstream_server_major_version,vericto_proxy_parser_major_version)
and in the rule-sync heartbeat (X-Vericto-Telemetry-Stats, new field
upstream;vstays 1), so the dashboard can show it. MySQL: the greeting's
server version is recorded there too and logged atdebug, with no comparison
(sqlparserhas no grammar per server version). Observability only: no verdict
and no relayed byte changes, the check runs once per connection during startup
and never per statement, and the table holds at most 16 upstreams. No new
setting. See docs/CONFIGURATION.md.
Performance
- PostgreSQL: a message the client read already holds is framed without an
allocation. The interception loop read every frontend message through the
protocol trait's async read, whose future is boxed: one allocation and one free
per message. Under mimalloc (4.19.0's allocator) that alternation misses the
allocator's fast path every time, so a prepared statement'sBind,Execute
andSynccost more than under glibc, and the CI performance gate measured
pg oltp_preparedat +3.6% instructions per statement over 4.18.0 on x86_64.
The loop now frames a message the read buffer holds whole directly; only the
first message of a client read goes through the async read. Nothing read,
relayed or answered changes.
[4.19.0] - 2026-10-26
Less CPU per statement, with nothing answered differently. A statement is
evaluated on its connection's task instead of being handed to the blocking pool
and back, the trivial statements of every transaction (BEGIN, COMMIT,
SELECT 1…) reuse the decision their session's full evaluation reached for them,
sanitized telemetry is built off the query path, the allocator is mimalloc, MySQL
reads a command in one system call, the database hop keeps one TLS configuration
(and resumes MySQL sessions), and the published images are built with
profile-guided optimization. Every change keeps verdicts, forwarded bytes and
telemetry as they were (the per-change tests say how), and a new CI gate fails a
pull request that costs more than 3% more instructions per statement on any of
15 workloads, or answers any statement of its corpus differently. Measured
against 4.18.0 with that gate (callgrind, linux/arm64, one worker, same corpus):
| workload | PostgreSQL | MySQL |
|---|---|---|
trivial (BEGIN, SELECT 1, COMMIT) |
-87.5% | -82.0% |
| TPC-B transaction, text / extended protocol | -13.5% / -13.3% | -27.8% (text) |
| TPC-B, prepared statements | +0.3% | -63.7% |
| 2,000-row result | -3.2% | -19.3% |
| a connection per statement | -12.9% | -17.0% |
| policy mix, control plane on, sanitized telemetry | -15.5% | -28.8% |
trivial with the control plane on |
-12.8% | -19.3% |
With the release images' profile-guided optimization on top: -89.2% / -16.0% /
-16.1% / -15.4% / -8.6% / -15.8% / -18.5% / -17.7% on PostgreSQL and -84.5% /
-37.2% / -69.4% / -27.6% / -22.2% / -39.6% / -25.8% on MySQL, in the same order.
System calls per statement: 9.9 -> 6.0 (PostgreSQL), 12.0 -> 6.0 (MySQL). Every
statement of the corpus is answered exactly as 4.18.0 answers it (equal outcome
digests on all 15 workloads). Instruction counts leave out the kernel, memory
stalls and contention: the CPU per transaction on the EC2 bench is the release
criterion.
Performance
- Statements up to 1 KiB are evaluated on the connection's task, not on the
blocking pool (VERICTO_INLINE_EVAL_MAX_BYTES, default 1024;0= every
statement on the pool, as up to 4.18.0). The pool cost two thread hand-offs per
statement: system calls per statement 9.9 -> 6.0 on PostgreSQL and 12.0 -> 8.0 on
MySQL (strace -f -c), user-space instructions -2.5% to -7.9% (callgrind gate),
and proxy CPU per transaction -26% (pgbench select-only, extended, 8 clients, one
worker; -33% with 1 client) and -41% (sysbench point select, MySQL text) in
interleaved local runs. Verdicts, forwarded bytes and telemetry are the same
either way (inline_and_pool_evaluation_give_the_same_outcome). The check of the
StartupMessage's settings takes the same way, so a connection no longer hands
its start-up to the pool either (futex calls per PostgreSQL connection 6 -> 4). - Trivial statements reuse their session's earlier decision
(VERICTO_TRIVIAL_FAST_PATH, defaulton;src/tcp/fast_path.rs).BEGIN,
COMMIT,ROLLBACK,END,START TRANSACTION,SELECT 1,SET autocommit=0/1
andSET NAMES utf8mb4(after trimming ASCII whitespace and one trailing;,
any ASCII case) are evaluated in full the first time a session sends them; the
same bytes, sent the same way, under the same ruleset and effective policy
(the sameArcs, held so they cannot be reused) then get that decision without a
parse. Never under business policy rules. A cache of the engine's own answer
(evaluation is a pure function of the statement, the rules and the policy), not
a table of verdicts:fast_path_testssends every entry and thirty near misses
(comments,BEGIN; DROP …, whitespace, case, Unicode look-alikes,SET ROLE,
SET SESSION AUTHORIZATION…) twice through a session with and one without it,
under the built-in rules, monitor mode, parse errors blocked, sensitive columns,
an enforced allowlist and a custom rule against SELECT, raw and sanitized
telemetry, simple query, Parse, COM_QUERY and COM_STMT_PREPARE, and requires the
same bytes, answers and events (butlatency_ms); a ruleset or policy swap is
answered from the new one. Callgrind: -86.3% instructions per statement on
pg trivial, -78.3% onmysql trivial, -8.1% / -8.4% onpg oltp_extended/
oltp_simple, -11.1% onmysql oltp_text, -57.2% onmysql oltp_prepared
(BEGIN and COMMIT as text), +1% onconnect(the firstSELECT 1of each
session is kept). - Sanitized telemetry events are built off the query path
(VERICTO_TELEMETRY_BUILD_QUEUE, default 4096 waiting events;0= on the query
path, as up to 4.18.0). The second normalization of the query text (libpg_query /
the MySQL tokenizer), the violation mapping and the event id now run on the
vericto-telemetry-buildthread, which collects events for up to 25 ms at a time
so that handing one over costs the query path a lock and no system call. Bounded:
a full queue drops the event and counts it indropped_queue_full; the query path
never waits. Same event content and order (deferred_events_equal_the_query_path_ones_in_sanitized_mode,
the event time is taken on the query path), and the shutdown flush waits for the
events still being built. Callgrind, one worker, sanitized mode, with the 4.19.0
allocator (mimalloc, below): query-path
instructions per statement -11.3% (pg trivial_cp), -9.9% (pg policy_mix),
-7.2% (mysql trivial_cp), -14.2% (mysql policy_mix); the whole process
+0.6% to +1.8%. Raw-mode events stay on the query path (deferring them saved less
than the hand-over costs). Export batches were already gzip-compressed
(VERICTO_TELEMETRY_GZIP). - mimalloc is the global allocator (the default
mimalloccargo feature;
--no-default-featureskeeps the system allocator). Callgrind gate against
glibc's malloc: -2.1% to -3.3% instructions per statement on the PostgreSQL OLTP
and large-result workloads, -10.8% / -14.9% onpg trivial_cp/pg policy_mix,
-6.7% to -28.2% on every MySQL workload. jemalloc measured the same within a
point and was not taken (needsmake; bundles BSD-2-Clause sources the license
policy does not list). Peak RSS about 7 MB higher (17 to 18 MB under 8 to 64
connections). Cargo.lock:mimalloc0.1.52 andlibmimalloc-sys0.1.49 (MIT). - MySQL: the client is read through a 16 KiB buffer, into one reused packet
buffer (codec_mysql::read_packet_into), as PostgreSQL is since 4.17.3. A
command cost two reads of the socket (header, then payload) and one allocation;
it now costs one read and none. Each packet is still forwarded and flushed on its
own (nothing is coalesced upstream), now from the sender's reused buffer instead
of a newVecper packet. System calls per statement 8.0 -> 6.0
(strace -f -c, COM_QUERY and COM_STMT_EXECUTE), instructions -0.2% to -5.2% on
the MySQL workloads of the gate. - **The database hop reus...
4.18.0 - 2026-10-25
The kill switch is VERICTO-105 on the wire, for every statement. Up to 4.17.x a
dashboard "Block all statements" reached the proxy only as a deny-all agent-access
allowlist for the blocked database user: refusals were reported as VERICTO-087, and
statements that read no table (SELECT 1, SET, BEGIN) still passed. 4.18.0 reads
the new kill_switch field of /sync/rules and refuses every statement of a blocked
user (or of every user, under the workspace switch) with the control plane's
kill-switch message. Requires 4.17.3 to be tagged first (this release is built on it;
4.17.1 and 4.17.2 were not released).
Added
kill_switchin the sync bundle ({"workspace": {block_id, target_type, message}, "db_users": {"<user>": {…}}}, present only while a block is active;
part of the signed body). Applied with the rest of each sync, restored from the
rules cache after a restart, cleared by the first sync without it. A malformed
entry is skipped and logged (alert=kill_switch_malformed) and never turns the
bundle away: its deny-all allowlist still blocks that user as VERICTO-087.- Every statement of a blocked session is refused before anything else, in
every mode (monitor_mode, observe windows andVERICTO_POLICY_RULESincluded):
PostgresQuery,Parse, andBind/Executeof a statement prepared before the
block, through the ordered response coordinator; MySQLCOM_QUERY,
COM_STMT_PREPARE,COM_STMT_EXECUTE/COM_STMT_FETCH,COM_INIT_DB,
COM_FIELD_LISTandCOM_CHANGE_USER(no way out to another user). The error is
a normal one (Postgres 42501, MySQL 1142) whose text is the block's message.
Protocol plumbing (Sync, Describe, Close, ping, statement close/reset, quit)
passes. A user's own block wins over the workspace switch. The check comes before
every verdict: an Execute that keeps its statement's time-free business-policy
verdict (4.17.3) is refused by a block like any other. - Telemetry
kill_switch_id: each refusal is a BLOCKED event with VERICTO-105,
severity critical, pathKillSwitch > <target>, the one violation, and the block
id, which the control plane links to the block; one event per statement. docs/AGENT_ACCESS.md"Kill switch (VERICTO-105)"; README.
Changed
- vericto-engine v4.5.0 -> v4.6.0 (git tag): every VERICTO-087 finding carries a
deterministic suggestion (what is not in the identity's allowlist, and that an
admin must grant it in Dashboard > Agent access), so the proxy's 087 error now
ends with. Suggestion: …. Nothing else changes in the engine's decisions or
paths. In sanitized telemetry, when a MySQL name is redacted fromaccess_denied,
the suggestion is rebuilt from the redacted names
(vericto_engine::access_suggested_fix), so a double-quoted literal never leaves
in it. Cargo.lock: only the engine entry and this crate's version change.
Performance
- Plumbing messages (Sync, Describe, ping…) pay one match; any other message one
atomic load and anis_nonewhile no block is active, and one hash lookup by the
session user while blocks are. Callgrind, pgbench select-only-M extended, one
session, one worker, linux/arm64 release builds, marginal user-space instructions
per statement over 4,000 statements, 2 runs each: 4.17.1 227,669 / 227,760, 4.18.0
227,706 / 228,955 (no block; no control plane); with a control plane, 211,365 /
211,336 without a block and 212,237 / 212,340 with another user blocked (+0.4%).
On 4.17.3 (pgbench-n -S -c 1, TLS on both legs, no control plane, 2 runs):
extended 206,486 / 205,909 -> 207,020 / 206,393 (+0.3%), prepared 20,371 /
20,356 -> 20,799 / 20,796 (+2.1%: the kill-switch check on the Parse, Bind and
Execute messages).