Repository navigation
v0.2.0
Added
-
A code of conduct, issue templates and a pull request template.
-
The console reads its own documents at
/help/<name>(for example
/help/api), with a list of sections; About links there in place of the raw
Markdown files. -
Notices to approvers: an outbound webhook, signed or in Slack's format, that
says a request waits. Off by default; set up under Settings → Notices. A
notice never holds SQL, rows or database errors. New optional setting
VISP_GATE_PUBLIC_URLadds a link to the request. Migration0010_notices. -
Audit events
approval.expireand, for a write that a lost node left
running,approval.failedwithoutcome_unknown. -
A tamper-evident audit log. Every audit row is sealed into a keyed hash
chain a few seconds after it is written. A row that is changed, deleted or
put in afterwards, by someone who has the database but not the master key,
is found by a background check, by "Verify now" on the Audit screen
(GET /audit/integrity,POST /audit/verify) and by the new offline
commandvisp-gate verify-audit. A link that is relabelled as another
master key's, to hide a changed row, breaks the chain as well. The head of
the chain is logged asaudit_checkpoint(position, hash and key) to keep
outside the database, andverify-audit --expect-position … --expect-hash … --expect-key-id …checks a saved one. Audit events gainseqand
sealed. New metricsvda_audit_chain_*. Migration0011_audit_chain
numbers the existing rows; they are sealed in the background. The metadata
database must be PostgreSQL 14 or newer. -
Audit event
agent_login.status({from, to}) when the check of a
cluster's agent login changes its status, written once per change however
many nodes check. -
A pre-flight bar in the console, always visible next to the Run button: the
state of the safety check (Safe to run, Needs approval, Blocked), one
sentence of why, and one next step: run, open the approval request, apply
the guard's fix, or read who can help. It names exactly what the guard adds
to the SQL, such asLIMIT 1001. The server makes it: the answer of
POST /clusters/:id/analyzegains the fieldpreflight, from the same
lessons that give agents theirfix, with the caller's access level. Every
existing field of the answer is unchanged. -
The guard offers a fix for one kind of blocked statement: several
statements that would each pass alone ("Keep the first statement"). -
Agent sessions. The gateway records each tool call of an agent as a step
(tool, task, SQL text, verdict, outcome, the fix it was given, never result
rows) and groups the steps of one token into sessions. The owner and
administrators read them on the agent's screen, where a session that is
going on updates by itself and "Pause agent" is one click away, and with
GET /agents/:id/sessionsand…/sessions/:id/steps?after=. Steps are
kept 30 days (VISP_GATE_AGENT_STEPS_RETENTION_DAYS). Migration
0012_agent_sessions. New metricsvda_agent_steps_*. -
Agent tool
fetch_rows: pages through the rows that onerun_query
already fetched and masked.run_queryaddsnext_cursorandrows_left
when its answer could not hold all rows. Nothing runs again and no query
is taken from the budget. The rows are held in the node's memory only, for
five minutes, withinVISP_GATE_HELD_RESULTS_MAX_BYTESand
VISP_GATE_HELD_RESULTS_AGENT_MAX_BYTES. New error coderesult_expired. New
metricsvda_held_results*. -
A five-minute demo. Run this command from the repository root:
docker compose -f deploy/demo/docker-compose.yml up --buildIt starts the gateway, a demo database and an agent that is ready to
use it, with demo-only passwords and a master key made at the first start,
on127.0.0.1only.scripts/demo-seed.shsets it up through the public
API.scripts/demo-agent.shplays an agent at the agent door, prints each
step, and exits non-zero when the gate does not behave as the demo says.
docs/DEMO.mdhas the steps.make demonow starts this demo. -
A threat model (
docs/THREAT-MODEL.md): the actors, the trust boundaries,
and for each threat what the gate does, where the code or a test shows it,
and what remains; with a list of what the gate does not protect against. -
A comparison of approaches (
docs/COMPARISON.md): direct credentials, a
read-only role, a generic SQL tool server, an access tool for people, and
this gate, with when another approach is the better choice. -
The Helm chart and
docker-compose.ymlpass
VISP_GATE_AGENT_STEPS_RETENTION_DAYS,VISP_GATE_HELD_RESULTS_MAX_BYTESand
VISP_GATE_HELD_RESULTS_AGENT_MAX_BYTES(chart values
config.agentStepsRetentionDays,config.heldResultsMaxBytesand
config.heldResultsAgentMaxBytes). -
A
.dockerignore, so that an image built in a working copy does not take
in local build output ornode_modules.
Changed
- The product is now named visp-gate. The program, the Docker image and the
Helm chart (deploy/helm/visp-gate) arevisp-gate, and every setting
starts withVISP_GATE_in place ofVDA_, for example
VISP_GATE_MASTER_KEY. The earlier names are not read any more. The notice
headers areX-Visp-Gate-*in place ofX-VDA-*, and the notice user agent
isvisp-gate-notices/1. - The demo starts from the released image
(docker compose -f deploy/demo/docker-compose.yml up). It builds the
gateway from the checkout when the image cannot be pulled, or with
--build. - The audit queue is written in batches of up to 256 events in one statement
instead of one event at a time, so many agents at full rate no longer fill
it. Retries, dead letters and the drain at shutdown are as before. GET /auditpages on the last event of a page, not on its time, so an
audit row with a time that is not a finite time no longer makes a page
fail. The cursor stays an opaque string.- The Audit screen shows the details the gateway records. It no longer looks
for query SQL in an audit event: that is in History. - The Run button moved from the editor toolbar into the pre-flight bar under
the editor, and the safety panel no longer repeats the verdict in the
console. When only an administrator can help, the bar has no button. - Deleting an agent also deletes its sessions and steps.
- The README leads with the agent safety gate: what it is, the demo, the
agent tools and the safety layers. Its screenshots show the current
console, with two new ones: an agent's session and the preview of a write.
The details of thedemoprofile ofdocker-compose.ymlmoved to
docs/DEPLOYMENT.md. - The reason a MySQL write has no preview now says what it means: the review
cannot show which rows will change, and an approved statement runs as
written on the rows that match when it runs. Agents read this text.
Fixed
- The console, from a UI review of the 0.2.0 demo:
- The project button shows the project in use, and Clusters keeps it.
- On short screens the console page scrolls and the results stay usable.
Below 1100 px the schema and safety panels open as drawers, one at a
time, and keyboard shortcuts do not reach a query behind an open drawer. - The phone menu keeps the keyboard inside it, has a Close button, and
returns focus to the menu button. Tablets get a 64 px rail. - Shortcut labels say Ctrl on Linux and Windows and ⌘ on Apple systems.
- The approval timeline says "Awaiting execution" or "Not executed", and
counts say "Loading…" while they load and "unavailable" after an error,
with Retry. - Row actions stay in view on phones, filters wrap cleanly, the search
icon no longer covers the text, and a filtered cluster list says
"X of Y". - Empty states are centred; dialogs without a description no longer point
to one; password forms carry the account name for password managers. - Text colour contrast in the editor and while the pre-flight check runs.
- The demo (
npm run dev:mock) returns one real row for a query that reads
no table, such asSELECT 1, marks sample table data as "Sample data", and
suggests aLIMITonly for a query that reads a table. NOTICEnamed the Inter typeface, which the console no longer bundles. It
now names Geist and Geist Mono and their license.
Security
url2.5.9 for RUSTSEC-2026-0592 (stack overflow inUrl::origin()on
nestedblob:URLs). The gateway calls it only onhttpandhttps
addresses from its own settings.
Docker image: ghcr.io/visplabs/visp-gate:0.2.0