Release Notes
This page tracks notable Zerq platform documentation and behavior changes.
2026-11-21
Added
- Developer portal sign-in email through Microsoft 365 — The portal can send its sign-in links through Microsoft Graph instead of SMTP. Set
MS_GRAPH_TENANT_ID,MS_GRAPH_CLIENT_ID,MS_GRAPH_CLIENT_SECRET(an Entra app registration with permission to send as the mailbox) andMS_GRAPH_MAIL_FROM(the mailbox to send as); when all four are set, Graph is used, otherwise SMTP as before. This keeps sign-in email working with Exchange Online after Microsoft disables password-based SMTP by default (end of December 2026). See Request a magic link.
2026-11-16
Changed
-
Imported workflows arrive turned off — A collection import no longer turns workflows on from the file: every imported workflow starts off until someone turns it on, and a proxy that the import updates keeps its own on/off state. See Workflows on import.
-
An inactive collection stops its proxies' triggers — Turning a collection inactive now also stops the scheduled, Kafka and email triggers of its proxies' workflows (before, only gateway traffic stopped); turning it active starts them again. Standalone workflows are not affected. See Collection status.
-
Auditors can use the Management MCP — Users with an auditor role (and no viewer role) can connect to the Management MCP and use the audit tools
list_audit_logsandget_audit_log;tools/listshows only those and other tools are refused. Before, the endpoint refused auditors. See RBAC and audit. -
Workflows always live in the workflows store — The
WORKFLOW_STORE_MODEsetting is removed: every workflow, including the one built on a proxy's page, is stored once in the workflows store, and proxies keep only the link and their on/off switch. API responses are unchanged (workflow_definitionis still returned for proxies, filled from the store). AWORKFLOW_STORE_MODEvalue left in the environment is ignored with a warning. At startup, workflows still stored on proxies by an older release are moved into the store; this is one-way, so back up MongoDB before upgrading if you may need to roll back.
Fixed
- 404 instead of 500 for unknown ids —
POST /api/v1/collections/:id/duplicate,PUT /api/v1/policies/:id/toggle-statusandPUT /api/v1/clients/:id/statusanswer404for an id that does not exist.POST /api/v1/workflow/test-nodeanswers400when the node type is missing or unknown. - Clearer error for a workflow without a trigger — The validation message now ends with "found none" instead of "found 0: ".
2026-11-15
Added
- Proxy history: compare and restore versions — Every save of a proxy, its settings and its workflow, from any route (console, API, Management MCP, collection import, a workflow publish that reaches it), is kept as a version with who saved it, when and what changed. History on the proxy card and on the proxy's workflow page lists the versions, compares any two (settings with old and new values, workflow steps added, removed and changed) and restores one (modifier role). A restore is saved as a new version and audited as
proxy/restore_version. New routes:GET /api/v1/proxies/:id/versions,GET /api/v1/proxies/:id/versions/:version,GET /api/v1/proxies/:id/versions/compare,POST /api/v1/proxies/:id/versions/:version/restore; new Management MCP toolslist_proxy_versions,get_proxy_version,compare_proxy_versions,restore_proxy_version. See History: compare and restore versions.
Changed
- Proxies use each other's workflows directly — A workflow built on a proxy's page is a workflow like any other: another proxy can pick it under Use an existing workflow (or
PUT /api/v1/proxies/:id/workflow {"workflow_id": "<that proxy's id>"}, also through theupdate_proxy_workflowMCP tool) without copying it into Workflows first. Saving it on its page updates every proxy that uses it, and the answer lists them inwarnings. The proxy page offers Build it on this page or Use an existing workflow, and shows who else uses the workflow. Ininlinestore mode the proxy that holds the workflow cannot switch away from it while others use it. The migration todualkeeps these links. See Build it on this page or use an existing workflow.
2026-11-11
Fixed
- Streaming proxies stream without client headers — A proxy with Streaming on now passes Server-Sent Events through as they arrive even when the caller sends no
Accept: text/event-stream(orX-Gateway-Streaming/?streaming=1). Before, compression and ETag buffered such responses and the whole stream arrived at the end. Other responses keep compression and ETags. See Streaming and SSE. - mTLS nginx example works as written — The ingress example on mTLS used
$ssl_client_s_dn_cnand$ssl_client_s_dn_ou, which nginx does not have, so nginx refused to start. It now takes the client and profile IDs from the verified certificate subject with twomapblocks. Tested with nginx 1.27 and real client certificates. - Console OpenAPI export no longer resolves env-var headers —
GET /api/v1/collections/:id/openapiresolved Env Var collection headers and wrote their values from the backend environment into the spec as header defaults. The export now shows them as a reference (for example${INTERNAL_API_KEY}) and never reads the variable. Static header values are listed as before. When an environment variable was not set, the export used to drop every collection header; they are now always listed. See Not visible to API consumers.
2026-11-10
Security
- Descriptions are sanitized where they are shown — Proxy and endpoint descriptions are rich text. The console (collection page, proxy form review) and the Developer Portal now sanitize them when they render them, so markup stored through the API, MCP or an import can no longer run script in another user's browser. Formatting the editor produces is kept (headings, lists, links, colour, highlight, alignment, images from
http(s)or embedded raster data); links open in a new tab without access to the opener. See Security overview. - Developer Portal API returns public fields only —
GET /api/v1/developer-portal/collections/:idand the related portal endpoints return a public view of collections and endpoints (name, description, path, methods, parameters, schemas and examples) instead of the stored proxy: workflow definitions, credential IDs, upstream targets and headers are no longer included, and the OpenAPI download omits upstream headers.
Fixed
- Run versions in Executions — Runs started by a proxy request or an AI guardrail record the published version of the stored workflow that ran (a proxy's inline workflow has no version and shows
—). - Filtered lists stay filtered — The Executions and Workflows lists no longer show unfiltered rows when a run ends just as a filter changes.
- Auditor-only users — The console no longer opens the live-update stream for users without a viewer role, which answered
403in a retry loop. - AI model tabs for viewers — Viewers can open every tab of an AI model (the tab buttons were disabled with the read-only form).
- Duplicating a proxy — The dialog is titled Duplicate Proxy with a Create Proxy button, and proxy card actions wrap on narrow screens instead of being cut off.
2026-11-09
Changed
- Workflows store and migration —
WORKFLOW_STORE_MODE(inlineby default,dual,store) controls where proxy workflows are read and written. Indualandstorethe server copies each proxy's workflow into the workflows store at startup (same id as the proxy; alsocmd/migrate-workflows, with-dry-run), and from then on proxies that run a stored workflow carryworkflow_idin API answers (GET /api/v1/proxies,/proxies/:id,/proxies/:id/workflow, collection export, Management MCP proxy tools). The field is additive; clients that ignore unknown fields are not affected. Older releases ignore it, so rolling back is a flag change. See Workflows store.
Upgrading from a release before 2026-11-07 with a rolling deploy can run a cron slot twice while old and new pods run side by side (older pods release a slot's lock as soon as the run ends). Deploy with stop-then-start, or start the new pods with WORKFLOW_SCHEDULER_ENABLED=false and set it to true once no old pod is left. Kafka and IMAP triggers are not affected.
Fixed
- Several triggers into one step — In a standalone workflow whose triggers lead into the same step, a run now goes on past its trigger; before, it stopped after the trigger and reported
succeeded. A run no longer waits for the other triggers or for steps only they lead to. Other steps with several incoming connections still wait for all of them (a step fed by both the success and error outputs of one step does not run); see Execution Model. - Save run data on the first run — With
save_run_dataon, the first run of a workflow keeps its data too (before, the first run on each instance was recorded without data). - Cron trigger
slot— The Cron Trigger step's output now hasslot(the scheduled time; the current time for Run now) next to its other fields. - Forward to upstream in standalone workflows — A Proxy node in a workflow that no proxy runs takes its error branch with a clear message (use HTTP request instead), and publishing such a workflow returns a warning in
warnings. See Proxy Node. - Handled HTTP errors — A step that took its error branch always has an error text in run history, for example
HTTP 503for an HTTP Request that got a 503. - Docs — Corrected who sees a run's returned body (modifiers, with the run data), the trigger rule on the Called by Workflow page (several triggers in standalone workflows), when the Return is kept, and the cron lock key (owner id: proxy id or workflow id).
- mTLS guide matches how the gateway authenticates mTLS profiles — mTLS now shows partner certificates with the Zerq client and profile IDs in
CNandOU(the gateway only accepts the 24-character IDs, so the oldCN=acme-mobileexample could not authenticate), the fixedAuthorizationheader the ingress must set, a dedicated mTLS hostname so token and OIDC clients are unaffected, a fingerprint map for certificates from other CAs, the ingress requirements and verification tests, and the correct status codes (401for a client-profile mismatch,404for a path outside the client's collections).
2026-11-08
Added
- Standalone workflows — Workflows no longer need a proxy. The console's new Automation section lists every workflow in one place (Workflows: standalone and proxy workflows with kind, trigger, status, version and what uses them) and records runs (Executions). Create a workflow blank, from a template or as a copy of a proxy's workflow; edit it with Save draft and Save & publish; restore earlier versions; switch it Active; see what uses it; and Run now. Schedule, Kafka and email triggers run on their own once the workflow is active. API:
/api/v1/workflows(list, create, update, publish, versions, restore, activate, deactivate, usages, delete, validate); every write is audited as resourceworkflow. See Standalone workflows. - Run history —
POST /api/v1/workflows/:id/runruns a workflow now (audited);GET /api/v1/workflows/runslists runs of background triggers, manual runs, sub-workflows, guardrails and failed proxy runs, kept forWORKFLOW_RUN_RETENTION_DAYS(default 14). Saved node outputs are masked and readable by modifiers only. See Executions and Manual runs and run history. - Shared workflows — Several proxies can run one workflow:
PUT /api/v1/proxies/:id/workflowwithworkflow_idlinks a published workflow that starts with Incoming request, and""unlinks it. Publishing the workflow updates every proxy that runs it; AI Agent memory stays separate per proxy. - Called by Workflow and Return nodes —
workflow_triggerstarts a workflow that other workflows call with a JSON input (optionalinput_schema), andreturn_nodehands a result back. Execute Workflow nodes, AI Agent workflow tools and AI guardrail connectors (newworkflow_id) accept workflow ids as well as proxy ids. See Called by Workflow and Return. - Shared workflows in the console — The proxy workflow page offers Own workflow or a shared workflow from Workflows; a proxy that runs a shared workflow shows it read-only with Edit in Workflows, and Stop sharing keeps the current definition as the proxy's own. The workflow editor has the Called by Workflow trigger (with an input schema editor) and the Return step; Execute Workflow steps, AI Agent workflow tools and AI guardrail connectors pick workflows by workflow id; Run now and run details show what a run returned.
- Error workflows —
settings.error_workflow_idruns another workflow (starting with Called by Workflow or Manual) when a run fails, with the failed run's details as input. See Error workflows. - Fire-and-forget sub-workflows — Execute Workflow
mode: asyncstarts the called workflow in the background and continues at once. - Export and import single workflows —
GET /api/v1/workflows/:id/export(secret values removed) andPOST /api/v1/workflows/import(always a new draft, with warnings about secrets and credentials to fill in); MCPexport_workflowandimport_workflow. See Export and import. - Several triggers in one standalone workflow — At most one of each type, any number of schedules;
?trigger_node=picks one for Run now. Proxy workflows keep exactly one trigger. - More from run history —
GET /api/v1/workflows/:id/versions/:versionreturns a published version's definition; the workflow list and detail showlast_run; steps that took their error branch are recorded ashandled_error(filterstatus=handled_error); the event stream sendsworkflow_runevents; Run now works for schedule, Kafka and email workflows with a test slot, message or email, without touching the real schedule, consumer or mailbox. - Phase 6 in the console — Standalone workflows get Add trigger on the canvas (one per type, any number of schedules); Test workflow and Run now ask which trigger to start from, and Run now works for schedule, Kafka and email workflows. Workflow Settings has an error workflow picker; the Execute Workflow step has Wait for the answer or Fire and forget; export a workflow from the editor's ⋯ menu and import one under New workflow › Import a file (warnings listed). The Workflows list and editor show the last run; Executions shows handled errors (filter and amber steps), links error workflow runs to the failed run, draws each run on the version it ran, and updates live.
- Run records — Runs keep how they ended (
return: the Return or Response step and its status); the returned body is read with the run's data by modifiers (audited). Sub-workflow and AI Agent tool runs record the version that ran.GET /api/v1/workflowsacceptspublishedandexclude_proxy_owned. - Management MCP — 14 new workflow tools (104 in total): list, get, create, update, publish, delete, validate, versions, usages, export and import of workflows, plus
run_workflow,list_workflow_runsandget_workflow_run.update_proxy_workflowacceptsworkflow_id.
Changed
- Breaking: workflow-enabled proxies enforce their allowed methods — A workflow-enabled proxy now checks the request method against its allowed methods before the workflow runs. Any other method gets
405with{"error":"Method POST not allowed for this endpoint"}, the same answer as a pass-through proxy, and the workflow does not run. Before, the workflow ran for every method. The check applies to every request and has no setting. On all proxies the comparison now ignores case, so a list stored aspostallowsPOST; an empty list still rejects every method. See Allowed methods and the upgrade note below. - Proxy methods are validated and stored upper-case —
POST /api/v1/proxiesandPUT /api/v1/proxies/:idstore methods upper-cased and de-duplicated, and return400for an empty list or a method outsideGET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS(methods: []used to be stored). A create withoutmethodsstill gets["GET"], and an update that does not sendmethodsnever fails because of the stored list. The Management MCPcreate_proxyandupdate_proxytools apply the same rule and return a tool error;create_proxywithoutmethodsis now an error (it used to fall back toGET), the tool schemas list the seven methods, and themanagement_usageprompt says a workflow proxy's methods are checked before its workflow runs. Collection JSON import upper-cases and de-duplicates methods and drops unsupported or non-string entries (a missing or empty list still becomes["GET"], so older exports import), and re-importing withupdate=truefinds existing proxies whatever case their stored method has. Duplicating a collection normalises methods the same way and never adds one. See Methods on import and the Management MCP tool catalog. - Workflow builder warns about disallowed trigger methods — Applying a template keeps its HTTP trigger's method instead of replacing it with the proxy's first method. When the trigger uses a method the proxy does not allow (for example a
POSTtemplate on a proxy that only allowsGET), the builder shows a warning above the canvas and in the HTTP Trigger panel, also for read-only users, saying those requests are rejected with405and to add the method to the proxy's allowed methods. The HTTP Trigger panel no longer says it receives any method; it shows the proxy's allowed methods. See HTTP Trigger. - Loop protection for workflows calling the gateway —
http_request_nodesendsX-Zerq-Call-Depth, and the gateway refuses a request more than 10 nested calls deep with508 Loop Detected, so a workflow calling its own route stops instead of looping. See HTTP Request node. - Proxies that run a shared workflow — Their workflow is edited in Workflows; changing the definition through the proxy routes answers
409. - Workflow editor redesign — Steps flow left to right on one card design with labelled outputs. Add the next step with the + on an open output or in the middle of a connection, pick it from a searchable side panel grouped into Triggers, Flow, Data & transform, AI, Databases, Send & call and Respond, and delete steps with automatic reconnection. The step editor opens over a canvas that no longer shrinks, with the last test data grouped by step. Test runs show each step's status, the path taken and errors on the canvas (a step that continued on its error branch is amber). One header bar holds the Active switch, save state, Save and a ⋯ menu (Templates, Full screen, Validate); Tidy up arranges the steps, and keyboard shortcuts cover adding, opening, deleting, saving and testing. View-only users see a View only pill and no editing controls. Saved workflows are unchanged: the editor no longer writes the route's method and path into the HTTP trigger on load. See Building workflows.
After this upgrade a workflow-enabled proxy answers 405 to every method outside its allowed methods, where its workflow used to run. The common case is a proxy left at the console default GET that runs a template taking POST (most HTTP-trigger templates do). Before upgrading, compare each published workflow proxy's allowed methods with the methods it actually serves, and add the missing ones:
-
With
mongoshagainst the Zerq database, list published workflow proxies (workflow_enabled: true) and the methods their request log entries (logs) show with a status below400, grouped byproxy_idandmethod:const since = new Date(Date.now() - 30 * 24 * 3600 * 1000); // last 30 days
db.proxies.find({ workflow_enabled: true, status: "published" }).forEach((p) => {
const id = typeof p._id === "string" ? p._id : p._id.toHexString();
const allowed = (p.methods || []).map((m) => String(m).trim().toUpperCase());
const served = db.logs.aggregate([
{ $match: { proxy_id: id, status: { $lt: 400 }, created_at: { $gte: since } } },
{ $group: { _id: { $toUpper: "$method" }, requests: { $sum: 1 } } },
]).toArray();
const missing = served.filter((s) => !allowed.includes(s._id));
if (missing.length > 0 || allowed.length === 0) {
printjson({ proxy: p.name, path: p.path, collection_id: p.collection_id, allowed, missing });
}
}); -
Add each missing method to the proxy: edit the proxy in the console, send the full list in
methodstoPUT /api/v1/proxies/:id, or use theupdate_proxyMCP tool.
What the query cannot see:
- Proxies whose request logging is off (
log_level: none, or the gateway defaultREQUEST_LOG_LEVEL=none) write no request log entries. Check them with thezerq_gateway_requests_totalmetric instead, for examplesum by (collection, route, method) (increase(zerq_gateway_requests_total{status_class=~"2xx|3xx"}[30d])). - Request log entries written before the 2026-11-04 release have no
proxy_id, and entries removed byREQUEST_LOG_RETENTION_DAYSare gone; widensinceonly as far as your logs go. - A method the workflow answers only with
4xx(for example validation errors) is still in use; dropstatus: { $lt: 400 }to list every method clients sent. - A proxy listed with an empty
allowedrejects every method after the upgrade. Pass-through proxies already behaved this way; set their methods too.
Fixed
- Proxy create validates enabled workflows —
POST /api/v1/proxies(and thecreate_proxyMCP tool) withworkflow_enabled: trueand an invalid or missingworkflow_definitionnow returns400, like updates. Disabled workflows are still saved as drafts. Collection import is unchanged. See Building workflows. - Proxy form shows failed saves — When saving a proxy fails (for example a workflow validation error or a duplicate path), the console now shows the server's message and keeps the form open; before, it closed as if the save had worked.
- Background workflow runs are no longer traced as test runs — Cron, Kafka, IMAP, AI guardrail and sub-workflow runs started by them no longer carry
zerq.workflow.test=trueon their spans; only console test runs (and sub-workflows they start) do. - Audit log export uses the filters on screen — Export CSV and Export NDJSON on the Audit Logs page sent the search and date range the page was opened with (from its URL) and ignored a search or date range changed afterwards, so an export could hold entries outside the range on screen. Exports now send the search, every advanced filter and the date range currently on screen (the end date covering the whole chosen day), and the list uses the same filters. See Exporting.
- Proxy, role and audit documentation — Proxies said a request is matched to a proxy by path and method; it is matched by path only and the method is checked afterwards. Security said the admin role allows all operations and can reveal secrets, and the glossary said admins can delete audit entries. Roles are separate tiers: admin only deletes single request log and AI log entries, only modifier roles can reveal secrets, and no role can delete audit entries (only retention removes them). The
create_proxyexamples in the Management MCP recipes now usecollection_id,methodsandtarget_path.
2026-11-07
Added
- Alerts in the console — A new Alerts page (next to Dashboard, viewer role) lists the alerts Alertmanager holds for Zerq: firing alerts by severity, then silenced and inhibited ones, with summary, labels, how long each has fired, its runbook and a Silence in Alertmanager link. The navigation shows the number of firing alerts, red when one is critical. Set
ALERTMANAGER_URL(and optionallyALERTMANAGER_EXTERNAL_URL,ALERTMANAGER_TOKEN,ALERTMANAGER_FILTER) on the backend; the API isGET /api/v1/alerts. See Alerts in the console. - Client names in Grafana — The new
zerq_client_info{client_id, client_name}metric and thezerq:client_inforecording rule let dashboards show client names. Top clients, cost per client, top clients by cost and throttling by client now show names, and the Client dashboard and the AI Gateway dashboard's client filter list clients by name. Clients without a name, and data from before the upgrade, show their ID. See Client names.
Fixed
- Workflow node catalogue lists the right branches —
GET /api/v1/workflow/nodesand theworkflow_list_nodesMCP tool now report the branch handles each node really uses (success/errorfor HTTP request, database, LLM, AI Agent, Execute Workflow and similar nodes,valid/invalidfor Validate, per operation for Crypto and JWT) instead of "sourceHandle is optional". Edges without a matchingsourceHandlenever run, so workflows built from the old hint could stop after these nodes. See Management MCP tool catalog. - Condition default branch drawn in the console runs — A
condition_nodewithout a saveddefault_outputnow routes todefault, the name the console uses for its default branch, so that branch is no longer skipped. Default edges saved without asourceHandlekeep running. - Enabled workflows are validated on every change — Saving a changed definition to an enabled workflow (console,
PUT /api/v1/proxies/:id/workflow,PUT /api/v1/proxies/:id, theupdate_proxy_workflowMCP tool) is now validated; an invalid definition is rejected with400and the live workflow is left unchanged. Disabled workflows still save as drafts, and editing a proxy without changing its workflow is never blocked. See Building workflows. - Cron triggers run each slot once — With several gateway instances, a fast workflow could run twice for the same schedule slot. The slot lock is now kept for 5 minutes after the run; a slot reached more than 5 minutes late is skipped. See Cron Trigger.
- A crashing workflow step no longer stops the server — A panic in a workflow node, a parallel branch, a cron, Kafka or IMAP run, or a console test run now fails that run (with
node_error/workflow_error) and is logged with its stack. - Deleting a collection stops its triggers — Cron, Kafka and IMAP triggers of the deleted proxies stop straight away instead of running until the next restart (IMAP could mark new mail as seen and then fail).
- Workflow changes apply immediately to guardrails and sub-workflows — Saving a workflow and importing a collection clear every cached copy of the proxy, so AI guardrails and Execute Workflow nodes no longer run the previous definition for up to 5 minutes.
- Audit log documentation matches the audit entries — Audit Logs described an older entry format. It now documents what the backend records:
actor_idis the management token'semailclaim (anonymouswithout one),actor_typeis the token's roles comma-separated (notuser,serviceorsystem), there is no resource ID or HTTP method field (the URL inmetadata.urlidentifies the object), and actions are the lower-case names fromconfig/audit_rules.yaml. The page lists every audited call by resource type and action, the calls that are not recorded (reads, collection duplication and file imports), that refused calls (401,403) are recorded too, and that text filters are case-insensitive partial matches. Audit behavior is unchanged. See What is audited. - Wildcard proxy paths route requests — A proxy path ending in
/*(for example/files/*) never matched a request, so every call returned404. It now matches the prefix and any path below it, and the matched part replaces the*at the end of the target path (/files/*→/storage/*sends/files/reports/q1.csvto/storage/reports/q1.csv), as the wildcard routing guide describes. Path parameters before the wildcard (/files/{id}/*) are extracted. Requests whose wildcard part contains.or..segments, also percent-encoded, are refused with400before reaching the upstream. Exact and parameterized proxies still win over wildcard ones. See Wildcard Routing and Testing. - Literal characters in proxy paths — Characters such as
.and+in a proxy path are matched literally;/v1.2/itemsno longer also matches/v1x2/items. - Policy cards show limits as the gateway applies them — A policy without a quota shows No quota instead of "0 requests per unknown interval", and a rate limit of 0 shows Gateway default, the limit the gateway falls back to.
- No browser hover tooltip on required fields — Required fields in the console and the developer portal no longer show Chrome's "Please fill out this field." tooltip on hover; the message still appears when a form is submitted with the field empty.
Changed
- Alerts reference explains dashboard vs alerts — Alerts explains why the SLO dashboard can show an exhausted budget while no burn-rate alert fires.
2026-11-04
Added
- Endpoints are grouped by route — Request log entries store the matched route template (for example
/shop/orders/{id}) and proxy ID, the log stream carries them ashttp.routeandzerq.proxy_id, and Request Logs can be filtered by Route (GET /api/v1/logs?route=). The dashboard's top and failing endpoints, and the developer portal's API usage, group requests by route instead of by raw path, so/orders/1and/orders/2are one row; requests that matched no proxy and entries written before this change are still grouped by path. Each endpoint row links to its logs. See Request Logs and Dashboard. - Richer platform dashboard — The console dashboard has one Traffic, errors and latency chart (requests split into success, 4xx and 5xx, with average and p95 latency) and Traffic by collection and Traffic by client tables (requests, error ratio, average and p95 latency, last request) that filter the dashboard when a row is clicked (
GET /api/v1/metrics/breakdown). Failed endpoints now follow the collection and client filters and show the error ratio. See Dashboard. - Richer AI Gateway overview — The AI overview shows p50 and p95 latency, Requests, errors and latency and Tokens and spend charts with empty intervals filled, requests by Outcome, and a Providers table built from every provider attempt (including failed attempts before a fallback) with failure ratio, p95 and health, so a provider that only fails no longer shows zero requests; providers without health checks show Not monitored. New endpoints
GET /api/v1/ai/metrics/outcomesandGET /api/v1/ai/metrics/providers. See AI Logs and Usage. - Provider attempt metrics —
zerq_ai_provider_attempts_total{provider,result}andzerq_ai_provider_attempt_duration_seconds{provider}count every call to an AI provider. The new ZerqAIProviderFailing alert fires when one provider fails more than half of its calls, even when fallbacks hide it from clients. See AI Gateway Observability. - More Grafana dashboards — The observability stack adds Zerq — Platform Overview (now the Grafana home: every surface, instances, firing alerts and lost logs at a glance), Zerq — Client (one API client across both gateways) and Zerq — Security (401/403/429, AI key and management API rejections, audit events from the log stream). The AI Gateway dashboard adds provider attempts, failure ratio and call p95 per provider, top clients by cost, cache hit ratio, guardrail blocks, budget limits and tokens per request. See Observability Stack.
- Audit chain key rotation — Signed audit entries record the
key_idof theirAUDIT_CHAIN_KEY(covered by the hash), andAUDIT_CHAIN_PREVIOUS_KEYSkeeps retired keys for verification, so the key can be rotated without breaking older entries. Verification reports signed and unsigned entries and the currentkey_id, flags entries signed with an unknown key, and flags unsigned entries after signed ones (entries rewritten without the key). Exports includekey_id. Existing chains verify unchanged. See Tamper evidence. - Audit exports are audited — Every export of the audit log (
GET /api/v1/audit/export), and every denied export attempt, is recorded asaudit_log/exportwith the actor and the filters; the exported entries are not stored again. See Exporting. - Crypto node for workflows —
crypto_nodeverifies or creates HMAC signatures (SHA-256, SHA-512, SHA-1; hex, Base64 or Base64 URL-safe; optional prefix such assha256=), hashes data, Base64-encodes or decodes it, and generates UUIDs. Its main use is checking webhook signatures from GitHub, Stripe, Shopify, Slack and similar senders before a workflow trusts the request:use_raw_bodysigns the exact request bytes thehttp_triggerreceived, the comparison is constant-time, and verification fails closed to theinvalidbranch. The HMAC secret comes from an API key credential and never appears in output or logs. The Management MCP workflow prompt describes the node. See Crypto Node. - LLM and AI Agent nodes for workflows — The
llm_node(LLM) sends a prompt to any model: OpenAI, Anthropic, Azure OpenAI, Gemini, Groq, OpenRouter, Ollama, any OpenAI-compatible API, AWS Bedrock or Google Vertex directly with the provider's API key, or the Zerq AI Gateway with a Zerq AI key so the call follows that client's model grants, guardrails and budgets and appears in AI Logs. Options: model, text or JSON output (parsed intojson), temperature, max tokens, timeout; inputs: system prompt, prompt or a fullmessagesconversation. The newagent_node(AI Agent) uses the same model settings plus HTTP tools (name, description, method, URL with{param}placeholders, JSON Schema arguments, credential): the model calls tools until it answers, up tomax_iterations, and every tool call is insteps. Optional chat memory keeps each conversation persession_idin the shared cache, separately per workflow. Errors from providers, the AI Gateway, timeouts and the iteration limit go to theerrorbranch with anerror_type. Nested workflow model calls through the AI Gateway stop after three levels. See LLM Node and AI Agent Node. - Sub-workflows and workflow tools — The new
execute_workflow_node(Execute Workflow) runs another workflow and returns its response: itsinputbecomes the called workflow's HTTP trigger request body, andresult,status_codeandheaderscome from its response node (status 400 or higher, failures and timeouts go toerror). The called workflow does not need to be enabled as an API, so private helper workflows are possible. Nesting is limited to 5 levels. AI Agent nodes can also use a workflow as a tool ("type": "workflow"). See Execute Workflow Node.
Changed
- ZerqAIProviderErrors ignores client rate limits — A client hitting its own AI rate limit (
rate_limit_exceeded) no longer counts as a provider failure in ZerqAIProviderErrors or the AI dashboard's provider-side failures panel. - Failed gateway workflows return a generic error — When a workflow fails, the API caller gets
500with{"error": "Workflow execution failed", "request_id": ...}instead of the internal error text (node types, URLs, node error messages). Invalid workflow definitions now also return500instead of400, since the caller cannot fix them. The cause is stored in the request log entry's Error (workflow failed: ...) and the trace. See Execution model. - Workflow node panel shows the node's name — The panel header shows the catalog name (for example "AI Agent", "Send Email (SendGrid)") instead of the type ID.
- One retention setting style for every log — AI log retention is now
AI_LOG_RETENTION_DAYSon the server and runs on the same retention job as request and audit logs (deletions counted inzerq_logs_retention_deleted_total{log="ai"}). When the variable is not set, the retention saved in AI Settings still applies (default 30 days), so upgrading never deletes AI logs earlier. The Keep AI logs for field in AI Settings is replaced by the retention in effect, andlog_retention_daysinPUT /api/v1/ai/settings(and theai_update_settingsMCP tool) is ignored, so retention can no longer be shortened from the console or API.GET /api/v1/ai/settingsreportslog_retention(days,source). See Retention. - Streamed AI requests are traced to the end — The request span of a streamed model API answer stays open until the stream ends and carries token usage, cost and outcome, like other requests. See AI Gateway Observability.
- Unmatched gateway paths no longer query MongoDB on every request — A lookup that finds no proxy for a path is cached for up to 30 seconds and cleared whenever proxies or collections change, so repeated requests to unknown paths no longer cost two database queries each.
Fixed
- Workflow saves are audited — Saving a proxy's workflow (
PUT /api/v1/proxies/:id/workflow, used by the console's workflow editor and theupdate_proxy_workflowManagement MCP tool), including turning a workflow on or off, now writes an audit entry with resource typeproxyand actionupdate_workflow. Secret values in the saved definition are masked. Before this, workflow changes were not in the audit log. See Workflow changes. - Trace spans no longer export credentials from upstream URLs — When an upstream call failed, the span's
exceptionevent carried the full upstream URL, including an API key injected withkey_in=queryand user names from the URL. Recorded errors now keep only scheme, host and path, likeurl.full, on upstream, outbound HTTP, MCP tool call and server spans. See Distributed Tracing. - Log streaming failures no longer log destination tokens — When a batch could not be delivered, the backend logged the full
LOG_STREAM_WEBHOOK_URL,LOG_STREAM_OTLP_ENDPOINTorLOG_STREAM_SPLUNK_HEC_URL, including a token in the query string or the user name. The logged error now has no query string or user information, and an unparseable URL is reported asinvalid sink URL. See Delivery guarantees. - Guardrail connectors fail when their credential cannot be used — A Presidio, Lakera, OpenAI moderation or webhook connector whose credential could not be resolved called the service without an
Authorizationheader. It now fails without calling the service and follows its If the service is down setting, like Azure AI Content Safety already did. See External connectors. - Workflows with parallel branches no longer risk crashing the backend — Nodes in
parallel_nodebranches could read the shared node-output state while another branch was writing it, which Go treats as a fatal error that stops the process. Each node now reads its own snapshot, andloop_nodeno longer changes its output after other nodes can see it. Expressions in parallel branches are also evaluated concurrently instead of one at a time. - Clearing AI Gateway settings now sticks — Updating an AI model, provider, guardrail profile or budget could not clear an optional field: for example removing a model's guardrail profile, or a provider's credential, API version or region, returned success but kept the old value, so the guardrail kept running. Updates now save the whole record.
- Workflow builder connections line up when a workflow opens — Connections between saved nodes were drawn from the wrong points (the top and bottom of each node) until the canvas redrew; they now start and end at the node handles.
2026-10-30
Added
- One monitoring path for every request type — AI Gateway requests, workflow runs and MCP tool calls are now in the platform's metrics, traces and log streams. Model API requests get a trace (request span with GenAI attributes, one span per provider attempt, the provider call with
traceparent) andX-Trace-ID; AI log entries store the trace ID (filter AI Logs by Trace ID,GET /api/v1/ai/logs?trace_id=) and are streamed with request and audit logs (LOG_STREAM_TYPESnow defaults torequest,audit,ai). Workflow runs and nodes are traced and their HTTP calls carrytraceparent; MCP tool calls are traced into the gateway or management API calls they make. New metrics:zerq_workflow_runs_total,zerq_workflow_run_duration_seconds,zerq_workflow_node_duration_seconds,zerq_mcp_tool_calls_total,zerq_mcp_tool_call_duration_seconds, andzerq_http_requests_totalforserver="ai_gateway"and"mcp_gateway". The observability stack adds a Zerq — Workflows & MCP dashboard, AI panels for model API responses, provider failures, failed AI requests and slow AI traces, and theZerqAIProviderErrorsandZerqWorkflowFailuresalerts. See AI Gateway Observability, Prometheus Metrics and Distributed Tracing. - API usage in the Developer Portal — Developers see their own client's requests, success rate, 4xx/5xx errors, p50/p95/p99 latency, requests over time and busiest endpoints for 24 hours to 90 days (
GET /api/v1/developer-portal/api-usage). See API Usage. - Tamper-evident audit log and export — Audit entries form a hash chain (
seq,prev_hash,hash; HMAC-SHA256 withAUDIT_CHAIN_KEY). Auditors can verify it on the Audit Logs page or withGET /api/v1/audit/verify, which reports changed or removed entries, and export filtered entries as CSV or NDJSON (GET /api/v1/audit/export). See Tamper evidence. - Traffic anomaly alerts, synthetic checks and profiling —
ZerqTrafficSpikeandZerqTrafficDropcompare each collection's traffic with its own last-day baseline; the observability stack adds the blackbox exporter withZerqSyntheticProbeFailing;PPROF_ENABLED=trueserves the Go profiler on the metrics listener behindMETRICS_TOKEN. See Alerts and Runbooks and Profiling. - Observability stack with dashboards and alerts —
deploy/observabilityruns Prometheus, Alertmanager, Grafana, Loki, Promtail, Tempo and the OpenTelemetry Collector with five provisioned Zerq dashboards (API Gateway, Runtime & Dependencies, SLOs and Error Budgets, AI Gateway, Logs & Traces), 16 alert rules with runbooks and unit tests, SLO burn-rate recording rules, and linked metrics, logs and traces.kubectl apply -k deploy/observabilityinstalls a ServiceMonitor, PrometheusRule and the dashboards on clusters with the Prometheus Operator. The dev stack scrapes metrics and links console trace IDs to Grafana. See Observability Stack and Alerts and Runbooks. - Gateway overhead metric —
zerq_gateway_overhead_secondsrecords the time the gateway adds to each upstream call. Backend images report their release onzerq_build_info(ZERQ_VERSION,ZERQ_REVISION). - Log streaming, retention and per-proxy log levels — Request and audit log entries can be streamed as they are written to an OpenTelemetry Collector (OTLP/HTTP logs, for Loki, Elastic, Datadog and others), Splunk HTTP Event Collector and/or a webhook (
LOG_STREAM_*), with trace IDs, batching, retries and delivery metrics; payloads are only streamed withLOG_STREAM_INCLUDE_BODIES=true.REQUEST_LOG_RETENTION_DAYSandAUDIT_LOG_RETENTION_DAYSdelete old entries (default: keep). Each proxy has a Request logging level (full,headers,metadata,none; alsolog_levelin the API and thecreate_proxy/update_proxyMCP tools) with a gateway defaultREQUEST_LOG_LEVEL, andREQUEST_LOG_MAX_BODY_BYTEScaps stored bodies. The backend now creates indexes for log searches at startup. See Log Streaming and Retention. - Distributed tracing (OpenTelemetry) — Set
OTEL_EXPORTER_OTLP_ENDPOINTto send OTLP/HTTP traces for gateway requests (named by proxy route, with collection, client and profile), the upstream call, management API requests and MongoDB commands inside a request. The caller's W3Ctraceparentis continued, the upstream receives atraceparentfor the gateway's span, and every response carriesX-Trace-ID. Request and audit logs store the trace ID (request logs can be filtered by Trace ID, alsoGET /api/v1/logs?trace_id=), backend JSON logs carrytrace_id/span_id, and gateway latency histograms carry trace exemplars. SetNEXT_PUBLIC_TRACE_URL_TEMPLATEon the console to link trace IDs to Grafana, Jaeger or another tracing UI. See Distributed Tracing. - Prometheus metrics for the API gateway — Set
METRICS_ADDR(optionalMETRICS_TOKEN) to exposeGET /metricson a separate listener: gateway requests by collection, route template, method, status and client; latency histograms for the whole request and for the upstream call; in-flight requests, response-cache hits, request and response sizes; management API request rates and latency by route template; request and audit log write failures; MongoDB and Redis connection pools; Go runtime, process and build information. AI Gateway metrics are served on the same listener when that exporter is on. See Prometheus Metrics. rekeyfor rotatingENCRYPTION_KEY— The backend image includesrekey, which re-encrypts every stored secret (credential fields and access profile gateway tokens) from the current key to a new one and clears cached copies from Redis. It does a dry run unless given-apply, and values already on the new key are skipped. See Key rotation.
Changed
- AI Gateway metrics and traces use the platform's monitoring — The OpenTelemetry and Prometheus exporters in AI Settings and the
AI_METRICS_ADDRlistener are removed:zerq_ai_*metrics (same names and labels) are always served onMETRICS_ADDR, and AI spans are part of the request trace sent toOTEL_EXPORTER_OTLP_ENDPOINT. Langfuse stays in AI Settings and its traces carry the Zerq trace ID. See Upgrading from the AI exporters. - Database lookups appear in request traces — Management API, gateway and AI Gateway requests pass their trace to MongoDB, so client, profile, collection and proxy lookups that miss the cache show in the request's trace.
- Dashboard latency percentiles — The console dashboard's latency card shows p95 with p50, p99 and the average (
GET /api/v1/metrics/overviewreturnsp50Latency,p95Latency,p99Latency), and Top Endpoints has a p95 column. See Dashboard. - Bedrock streaming — Streamed requests to AWS Bedrock models now use ConverseStream, so text and tool-call arguments arrive as they are generated instead of in one chunk at the end. See Providers.
- Semantic response cache shared across instances — With Redis/KeyDB configured, semantic cache entries (the newest 500 per client and model) are now shared by every gateway instance, like exact entries. See Response cache.
- Backend logs are plain JSON when not on a terminal — ANSI colour codes are only added when stdout is a terminal or
LOG_COLOR=true, so logs shipped to Loki, Splunk or Elastic parse as JSON. SetLOG_COLOR=trueto keep colours.
Fixed
- AI log entries could take values from the next request — The profile ID of AI-key callers,
X-Request-IDandX-End-Userpointed into request buffers that the next request on a keep-alive connection reuses, so AI log entries written or streamed after the response could show the next request's values. They now keep their own copies. - Browsers can read export file names and trace IDs — The management API now exposes
Content-DispositionandX-Trace-IDthrough CORS. - Gateway hung after a restart or with several instances when the response cache used Redis — With
GATEWAY_ENABLE_CACHEandCACHE_TYPE=redis, a cache entry written by another instance (or before a restart) that had just expired made the cache middleware panic while holding its lock, and every later request to a cached route then hung until the process restarted. The per-process byte budget (GATEWAY_CACHE_MAX_BYTES) that caused it no longer applies when the cache is in Redis; bound Redis withmaxmemoryinstead. The in-memory cache keeps its byte budget. - Request and audit log entries could take values from the next request — Entries are written after the response, and on keep-alive connections the stored method, path, request headers, request ID, user agent and (for failed authentication) client and profile IDs could be overwritten by the next request on the same connection. Entries now keep their own copies of these values.
- Developer portal sign-in links are no longer logged — The backend logged each sign-in link, including its token, at Info level. It now logs only the email and expiry.
2026-10-29
Added
- AI Gateway — A new capability with its own AI Gateway section in the management UI and an OpenAI-compatible model API at
LLM_GATEWAY_PATH(default/llm):GET /v1/models,GET /v1/models/{name}andPOST /v1/chat/completionswith streaming. Configure providers (OpenAI, Anthropic, Azure OpenAI, Gemini, Groq, OpenRouter, Ollama, any OpenAI-compatible server; keys stay in Credentials), models with deployments, routing strategies, fallback (on/off, triggers, retries, cooldown, fallback models) and context rules (overflow reject/trim/larger model, max_tokens defaults and caps, system prompt, default and locked parameters), guardrails with a test panel, and AI Budgets with per-minute, concurrency, token and spend limits and alert webhooks. Access is granted on clients and profiles; profiles can get an AI key. Every request is recorded in AI Logs with tokens, cost, attempts and guardrail actions; the Overview page shows usage and provider health, and the Playground tries models through the full pipeline. All AI configuration changes and AI key operations are audited. - Codex and Claude Code support — The model API now serves the OpenAI Responses API (
POST /llm/v1/responses, used by Codex) and the Anthropic Messages API (POST /llm/v1/messagesand/v1/messages/count_tokens, used by Claude Code), translated through the same pipeline so any provider can serve any client. See Coding tools and the Model API reference. - Developer Portal AI models page — Developers see the models their client may use, profile AI access and limits, setup snippets for Codex, Claude Code, the OpenAI SDK, curl and Cursor, their AI usage for the last 30 days, and can generate or rotate AI keys for AI-enabled profiles (audited). See Access and AI keys.
- More AI providers and endpoints — AWS Bedrock (Converse API, Bedrock API keys) and Google Vertex AI (service account keys) providers;
/v1/embeddings,/v1/images/generations,/v1/audio/speech,/v1/audio/transcriptionsand/v1/moderationsendpoints, each limited to models of the matching kind and covered by guardrails, budgets, routing and AI Logs. Zerq Copilot (console and Developer Portal) can use AI Gateway models with thezerqprovider. See Providers, Model API reference and Zerq Copilot. - AI guardrail connectors and exporters — Guardrail profiles can call Microsoft Presidio (detect and mask), Lakera Guard, Azure AI Content Safety, OpenAI moderation, a webhook or a Zerq workflow, to block, flag or mask prompts and answers; testing connectors from the console is modifier-only and audited. AI request telemetry can be exported to OpenTelemetry (OTLP/HTTP traces), Prometheus (
AI_METRICS_ADDR) and Langfuse. See Guardrails and Exporters. - AI response cache and provider health checks — Models can cache answers exactly or by prompt similarity (semantic, using an embedding model), scoped per client, with
X-Zerq-Cache: hiton reuse; tool calls are never cached. Providers with health checks on are tested in the background and routed around while down. See Response cache and Test and health. - AI spend reports — AI Gateway › Spend shows cost by client, model, profile or provider with CSV export, and live budget meters for each client and profile token cap. See Spend and budget usage.
- Management MCP AI tools — 33
ai_*tools manage the AI Gateway and report spend (now 90 tools); client and profile tools accept the AI fields. See Management Tool Catalog. - Navigation — The sidebar is grouped into API Gateway, AI Gateway, Access and Governance.
Fixed
- Empty lists — List endpoints for clients, credentials, policies, profiles and request logs return
[]instead ofnullon a fresh install, so the Policies page no longer shows Failed to fetch policies. - Save errors in forms — The policy, client and profile forms show the server's error message when a save fails instead of closing as if it succeeded.
- Dashboard metrics — The dashboard no longer shows generated sample numbers when the metrics API fails.
Changed
- Credential secrets are write-only — Management API reads (
GET /credentials,GET /credentials/:id, profile reads andGET /clients/:clientId/profiles/:id/credentials) no longer return secret values for any role;stored_secrets/has_credentialsshow which are set. Modifier and admin roles can reveal a stored value for editing viaPOST /credentials/:id/revealorPOST /clients/:clientId/profiles/:id/credentials/reveal, and every reveal is audited without storing the value.PUT /credentials/:idnow merges onto the stored credential, and blank secret fields keep their stored value. See Credential visibility by role. - Workflow test runs require the modifier role —
POST /workflow/test-node,POST /workflow/test-workflow/stream,POST /workflow/trigger/test-listenandGET /workflow/trigger/test-stream/:session_id(MCP toolsworkflow_test_node,workflow_test_workflow_stream,workflow_trigger_test_listen,workflow_trigger_test_stream) now require the modifier role instead of viewer. The workflow builder hides Execute workflow and disables Test Node for read-only users. Grant the modifier role to users and MCP agents that need to run workflow tests. - Request logs redact credentials — Before a gateway request log entry is stored, credential header values (
Authorization,Cookie,Set-Cookie,X-API-Key, token/secret/session/signature headers, forwarded client certificates) are replaced with[REDACTED], credential-looking query parameters are masked in the target URL and inLocation/Referer, and secret fields are masked in JSON and URL-encoded bodies. Every gateway request is now logged, including429refusals, cache hits and idempotent replays; a caller-sentX-Proxy-IDheader no longer skips logging. See Automatic redaction. - Audit logs mask secrets — Secret fields in audited request and response bodies (passwords, client secrets, keys, tokens, certificates, connection strings) are stored as
[REDACTED]; on credential, profile and developer portal routes non-JSON bodies are not stored. Audit rules now match paths case-insensitively and ignore a trailing slash. See Secret masking. - Upstream credential failures return
502and are not forwarded — If the credential on a proxy or collection cannot be loaded, decrypted or applied (including an expired mTLS certificate or an OAuth2 token endpoint that fails or returns noaccess_token), the gateway returns502 Upstream credentials could not be appliedinstead of sending the request without it;http_request_nodetakes itserrorbranch. Upstream transport errors return a generic502message without the upstream URL; the sanitised cause is in the request log Error field. See Runtime Auth Application. - Rate limit, quota, response cache and idempotency run after authentication — They are keyed on the authenticated client and profile, never on caller-supplied
X-Client-ID/X-Profile-IDvalues (which are now matched case-insensitively). Requests rejected by authentication no longer count against a client's limits and are not throttled by the gateway limiter; throttle unauthenticated traffic at your ingress. See Rate limiting and quotas. - Response cache is per authenticated caller — With
GATEWAY_ENABLE_CACHE, cache entries are keyed on the authenticated client, profile and credentials (plusAccept*/Originand the path and query); only plain200responses are stored, upstreamno-store/privateand uncoveredVaryare respected, hits carryCache-Control: private, and the gateway no longer addsCache-Control: public.X-Idempotency-Keyreplays are scoped to the client, profile, method and path. Streaming proxies bypass both. See Response cache and idempotency. http_request_nodetimeout and retry policy —timeout_msis capped at 300000 ms (missing or non-positive values use 30000 ms). Retries resend the same body and credentials, andPOST/PATCHrequests are retried only with anIdempotency-Key/X-Idempotency-Keyheader or when the request never left the gateway (DNS or connection failure).response.attemptsreports the real attempt count. Unresolved expression values are omitted from headers and query parameters instead of being sent as<nil>. See Timeout and retries.
2026-04-11
Changed
- Management MCP (workflow tooling) — Added workflow automation tools for full-run and trigger capture testing:
workflow_test_workflow_stream,workflow_trigger_test_listen, andworkflow_trigger_test_stream. Updated Management Tool Catalog counts to 57 tools (workflow category now 9). - Workflow node authoring metadata — Enriched
workflow_list_nodesto return edge-authoring guidance (entry_trigger,terminal_node,requires_source_handle,supported_source_handles,default_source_handle,dynamic_source_handles,wiring_hint) so agents can wiresourceHandlevalues deterministically. - Workflow trigger support alignment — Updated docs and backend validation messaging to consistently include
imap_triggeralongsidehttp_trigger,manual_trigger,cron_trigger, andkafka_consumerfor single-entry trigger workflows.
2026-04-03
Changed
-
Documentation — Zerq Copilot page rewritten for clarity: operations (Management MCP) and consumer (Gateway MCP) modes, professional structure, and marketing-site alignment (
/ai-copilotanchors#operations,#gateway). -
Marketing (
zerq-website) — Single Zerq Copilot page at/ai-copilotcovers Management and Gateway Copilot (#operations,#gateway). -
Management UI — Sidebar adds an external Developer Portal link (configure with
NEXT_PUBLIC_DEVELOPER_PORTAL_URL; local defaulthttp://localhost:3001). See Developer Portal Overview URL.
2026-04-02
Added
- Zerq Copilot for Gateway — Documented the built-in Developer Portal assistant: Zerq Copilot for Gateway (Gateway MCP, profile-scoped gateway auth, server-persisted threads). Internal ops:
_internal/developer-portal-copilot-ops.md;_internal/reference/developer-portal-api.mdlistsGET/PUT/DELETE/api/v1/developer-portal/copilot/thread.
Changed
-
Zerq Copilot for Gateway — Page context: collections list vs collection detail (name, id, endpoint count) is passed to the chat API for better situational replies. See Zerq Copilot for Gateway Page context.
-
MCP Gateway — notes Developer Portal Zerq Copilot for Gateway as a built-in consumer of Gateway MCP when LLM settings are enabled.
-
Developer Portal Overview — feature table includes Zerq Copilot for Gateway.
-
Zerq Copilot for Management — cross-link to the Gateway assistant page (management vs portal scope).
-
Choose Your Path — consumer path mentions optional Copilot for Gateway.
2026-03-31
Added
-
Collection live updates (SSE) — Successful collection creates, updates, deletes, status toggles, duplicates, JSON import, and OpenAPI import emit
ManagementEventwithresource_kind: collectionand anoperationhint (created,updated,deleted,status_changed,duplicated,imported,openapi_imported). Contract:internal/management/ports/collection_events.go;EmitterimplementsCollectionEventPublisher. Collection detail and edit pages subscribe viauseManagementEvents({ collectionId, resourceKind: collection }); the collections list usesuseManagementEvents({ collectionList: true })to refetch the table when any collection event fires. See Live updates (SSE). -
Proxy metadata live updates (SSE) — Successful
POST/PUT/DELETE /api/v1/proxiesemitsManagementEventwithresource_kind: proxy,proxy_id,collection_id, andoperation(created,updated,deleted). Distinct fromproxy_workflow(workflow definition saves). Contract:internal/management/ports/proxy_events.go;EmitterimplementsProxyEventPublisher. Collection detail (/collections/:id) subscribes withuseManagementEvents({ collectionId, resourceKind: proxy })to refetch the proxy list when other sessions change proxies in the same collection. See Live updates (SSE). -
API credentials live updates (SSE) — Successful
POST/PUT/DELETE /api/v1/credentialsemitsManagementEventwithresource_kind: credential,credential_id, andoperation(created,updated,deleted). Validation-onlyPOST /api/v1/credentials/validatedoes not emit. Contract:internal/management/ports/credential_events.go;EmitterimplementsCredentialEventPublisher. The credentials list usesuseManagementEvents({ credentialsList: true }); edit usescredentialId+resource_kind: credentialwith a reload banner on remote updates. See Live updates (SSE). -
API access policies live updates (SSE) — Successful
POST/PUT/DELETE /api/v1/policiesandPUT /api/v1/policies/:id/toggle-statusemitManagementEventwithresource_kind: policy,policy_id, andoperation(created,updated,deleted,status_changed). Contract:internal/management/ports/policy_events.go;EmitterimplementsPolicyEventPublisher. The policies page usesuseManagementEvents({ policiesList: true }); the edit modal usespolicyId+resource_kind: policyfor reload-on-remote-change behavior. See Live updates (SSE).
Changed
-
Zerq Copilot for Management — shell layout — The floating Zerq Copilot button is unchanged. When opened, the chat embeds in the app shell: main content on the left, Copilot on the right (desktop/tablet
mdand up). On narrow viewports, the panel opens as a full-width column below the header covering the main area until you close it. The panel uses an embedded layout (embedmode) rather than a detached floating bottom sheet on desktop. -
Zerq Copilot for Management — mobile — The Fullscreen header control is hidden below
md(the embedded panel already uses the viewport under the top bar). Fullscreen mode is cleared when the viewport is narrow so layout stays consistent. -
Marketing site —
zerq-website/ai-copilot: hero actions are Read the docs (whenNEXT_PUBLIC_DOCS_URLis set) and See all capabilities; Request Enterprise Demo appears only in the closing CTA and links to/#contact(home page contact), not a broken in-page#contactanchor. -
Documentation — Management MCP tool count aligned to 54 across Management Tool Catalog,
_internal/ai-copilot-ops.md, and the Zerq Copilot changelog entry; Zerq Copilot for Management capabilities table distinguishes profiles (rotate profile credentials) vs API credentials CRUD. Public changelog: removed a broken/_internal/...doc link (excluded paths are not published) in favor of a repo path._internal/ai-copilot-ops.md: Management UI shell;_internal/catalog.md:internal/management/copilot/pointer. -
Backend (naming) —
cmd/server/main.go: the sharedevents.Emitterfor management-domain SSE is now namedmanagementEventEmitter(wasworkflowPublisher) so wiring matches its role beyond workflow saves._internal/management-domain-events-sse.mdupdated accordingly. -
Frontend (build) — NextAuth
authOptionsmoved tofrontend/src/lib/auth-options.tsso the App Router auth route only exportsGET/POST(required fornext buildtype-check).ClientFormModal:onRemoteListRefresh, SSE stale banner, andreloadClientFromServerimplemented. Collection detail: use serviceCredentialstype (includesimap).Selectwrapper aligned with installed Radix types (nomodalprop until Radix upgrade).
2026-03-28
Added
-
Access profiles live updates (SSE) — Successful
POST/PUT/DELETE /api/v1/clients/:clientId/profiles,POST .../profiles/:id/rotate(when rotation runs), andPUT .../profiles/:id/auth-typeemitManagementEventwithresource_kind: profile,profile_id, parentclient_id, andoperation(created,updated,deleted). Contract:internal/management/ports/profile_events.go;EmitterimplementsProfileEventPublisher. The access profiles UI usesuseManagementEvents({ accessProfilesForClient: true, parentClientId })for silent list refetch; edit and authentication modals useprofile_id+resource_kind: profilefor reload-on-remote-change behavior. See Live updates (SSE). -
API clients live updates (SSE) — Successful
POST/PUT/DELETE /api/v1/clientsandPUT /api/v1/clients/:id/statusemitManagementEventwithresource_kind: client,client_id, andoperation(created,updated,deleted,status_changed). Contract:internal/management/ports/client_events.go;EmitterimplementsClientEventPublisher. The API Clients page usesuseManagementEvents({ clientsList: true })for silent list refetch; the edit modal usesclient_id+resource_kind: clientfor reload-on-remote-change behavior. See Live updates (SSE). -
Management live updates (SSE) — After a successful
PUT /api/v1/proxies/:id/workflow, the API emits a compactManagementEventon an internal bus and (when Redis is enabled) on Redis channelzerq:management_eventsso all pods can fan out to browsers.GET /api/v1/events/stream(viewer+ OIDC) streams JSON events over SSE; the Workflow Builder refetches when the editor is clean, or shows a banner when there are unsaved local changes. See Live updates (SSE). v1 emits only for this workflow persist route; validate/test endpoints do not emit. -
Zerq Copilot for Management — built-in chat assistant in the management UI (short name Zerq Copilot in the product). Streams responses using any configured LLM provider (OpenAI, Anthropic, Groq, Google, OpenRouter, Azure OpenAI, Amazon Bedrock, Ollama, custom). Connects exclusively to the Management MCP — full CRUD across all 54 tools: collections, proxies, workflows, policies, clients, profiles, credentials, audit logs, metrics, and request logs. Acts on behalf of the logged-in user using their OIDC session; RBAC is enforced by the backend on every tool call. Configurable via
AI_MODELSenv var with runtime enable/disable (no image rebuild). See Zerq Copilot for Management for user docs and_internal/ai-copilot-ops.mdfor ops setup. Zerq Copilot for Gateway (runtime-focused) is planned for a future release.
Added (continued)
- Workflow IMAP Trigger entry node (
imap_trigger) for email-driven workflow runs: config includescredentials_id,mailbox(defaultInbox),poll_interval_seconds,mark_as_seen; outputs includesubject,from,to,date,body_text,body_html,uid,mailbox, andrun_id. Added new credential type IMAP for storing host/port/username/password/TLS settings. Includes a two-layer HA design (Redis ownership lock + UID deduplication) for safe multi-pod deployments. Added starter template IMAP Email Echo (imap_trigger_echo). - IMAP "Listen for Email" test mode — workflow builder now shows a Listen for Email test panel for
imap_triggernodes (mirrors HTTP "Listen for request"). Connects to IMAP read-only, waits for the first unseen email, streams the captured payload to the UI via SSE, and auto-runs the downstream workflow for immediate testing. Credentials and mailbox are required before starting. - Generic credential validation — new endpoint
POST /api/v1/credentials/validateaccepts{ type, config }and tests a live connection without saving. Currently supportsimapcredential type (dials IMAP and lists the target mailbox). Additional types can be added by registering a validator ininternal/management/credentials. Frontend "Validate Connection" button available on the IMAP credential form in Settings → Credentials.
Changed
-
Workflow builder — Removed the duplicate floating Add node button on the canvas (bottom-right); it conflicted with the Zerq Copilot control. Use Add node in the builder toolbar only.
-
Product naming — The management UI assistant is branded Zerq Copilot for Management (in-app and marketing: Zerq Copilot). Zerq Copilot for Gateway is reserved for a future runtime-focused experience. Docs, website, and UI copy updated accordingly.
-
Zerq Copilot for Management — UI — Chat panel restyled for a clearer Claude-like experience: sticky header with model selector, soft message surfaces (assistant cards + user bubbles), centered readable column in fullscreen, copy-to-clipboard on assistant replies, refined markdown typography, and an elevated composer. Side panel width slightly increased on desktop.
-
Zerq Copilot for Management — UI (continued) — Syntax-highlighted fenced code blocks (Prism / light–dark themes), copy on code blocks and on user messages, larger Radix model selector, Zerq logo in header and message avatars.
-
Zerq Copilot for Management — user messages — User turns are right-aligned in the thread (assistant stays left); the signed-in user’s photo or initials (OIDC session via NextAuth) lead each bubble (before the message), still within the right-side cluster.
-
Zerq Copilot for Management — theming — Markdown and Prism code blocks use shared CSS variables (
--foreground,--muted,--primary,--success,--border, etc.) instead of bundled light/dark palettes; copy and “done” states usetext-success. -
Zerq Copilot for Management — UX — Panel layout aligned with app surfaces (
bg-card,bg-sidebar, borders, primary-tinted user bubbles). Retry on failed requests and on each assistant message (regenerate). Retry on user messages: regenerates the following assistant reply when present, or resends the same prompt when the user message is still the last message (no reply yet). Stop while streaming. Error card with Retry / Dismiss. -
Zerq Copilot for Management — model control — Model selector moved from the header to a rounded pill beside the message field (Claude-style), with the menu opening upward when space is tight.
-
Zerq Copilot for Management — conversation retention — Closing the panel does not discard the thread; only Clear conversation (trash) clears it. Threads are persisted on the management API (
GET/PUT/api/v1/copilot/thread, MongoDBcopilot_threads, scoped by OIDCsub) so refresh and multi-device use the same saved conversation. See Zerq Copilot for Management and_internal/ai-copilot-ops.md.
Changed
-
Management SSE (
GET /api/v1/events/stream) — Fixed a panic when opening the event stream: the body stream writer must not callfasthttp.RequestCtx.Done()from the streaming goroutine. The handler now relies on write/flush errors and hub channel close for teardown. -
Zerq Copilot for Management ↔ Management MCP — Server-side MCP client now targets
/api/v1+MCP_MANAGEMENT_PATH(not a hardcoded/mcp/managementsuffix) and sends the user’s OIDC access token on every Management MCP request (initialize,tools/list,prompts/get,tools/call), matching backendmanagementAuthMiddlewareand external IDE clients. See_internal/ai-copilot-ops.md.
Changed
- Workflow Save vs Enable separation — saving a workflow and enabling a workflow are now independent actions. A workflow can be saved (and tested) while disabled. The Enable Workflow toggle in the builder toolbar controls whether production triggers fire. Save persists the workflow definition at any time regardless of the enabled state. Disabled workflows: all test modes (HTTP test-listen, IMAP listen-for-email, Execute Workflow) remain available; production triggers (cron, Kafka, IMAP scheduler) do not start. Affects all workflows; no migration required for existing enabled workflows.
- IMAP trigger default mailbox changed from
INBOXtoInboxto match common IMAP server conventions. Existing configured workflows are unaffected; only the default value shown in new configurations changes. - Frontend dirty-state tracking — the Save button in the workflow builder is disabled when there are no unsaved changes. Navigating away or refreshing with unsaved changes shows a browser confirmation prompt. Clicking a node or dragging it on the canvas does not trigger the "unsaved" state (ReactFlow runtime-only fields are stripped from the dirty-state comparison).
- Test Node button re-added for trigger nodes in the node config panel. Trigger nodes now show both the trigger-specific test action (e.g. "Listen for Email", "Listen for Request") and the standard "Test Node" button.
- UI layout fix — content wrapper now uses
h-screeninstead ofh-[calc(100vh-3.5rem)]. The previous value caused a ~56 px white strip at the bottom of every page because thept-14header offset was being subtracted twice from the viewport height.
Changed (Engineering)
- Backend domain packages (Phase 4) — Top-level
handlers/,services/, andmiddleware/were removed. Management REST handlers and services live underinternal/management/{collection,proxy,credentials,client,policy,profile}/(each withservice.go+handler.go), withinternal/management/portsfor collection/proxy interfaces andinternal/management/middlewarefor management auth and cache invalidation. Gateway-specific code is underinternal/gateway/(handler.go+middleware/for auth, DB logger, compress/cache/rate-limit stack). Observability (audit logs, metrics, gateway DB logs) is underinternal/observability/{audit,metrics,dblogger}/. Developer portal is underinternal/portal/withmiddleware/auth.go. Public HTTP routes and behavior are unchanged;WorkflowEngineno longer stores an unusedProxyServicepointer (constructor takes credentials + collection services and proxy handler only). - Backend module layout — Shared infrastructure moved from
backend/utilsintointernal/platform(cache, DB helpers, auth, httpx, logger, encryption, pub/sub, merge, duration). Portable IMAP/Kafka/SMTP/V8 clients live underpkg/(imapclient,kafkaclient,smtpclient,v8engine). Binary entrypoint iscmd/server/main.go; Docker build usesgo build ./cmd/server. MCP code lives underinternal/mcp/gatewayandinternal/mcp/management. Seedocs/_internal/backend-structure.md. - Backend workflow package layout — Workflow engine, HTTP handlers, trigger schedulers (cron, Kafka, IMAP), trigger test stores, and Redis/pubsub notifier code now live under
backend/internal/workflow/(engine,workflow,triggers,triggercore, and subpackages). Public management API routes and behavior are unchanged; this is an internal module organization change for maintainability. - Generic Trigger Architecture — Backend and frontend refactored to a unified system for all workflow trigger test-listen flows. Single API endpoint pair replaces per-trigger routes. Backend
TriggerTestManagerandCapturedTriggerEventprovide a single facade. FrontendTRIGGER_REGISTRYis the single source of truth for trigger metadata (canTestListen, display labels, etc.).WorkflowBuilderuses one unifiedtestListenSessionstate for all trigger types. Adding a new trigger test-listen in future requires only: a backend case inTriggerTestManager.Start()and one entry inTRIGGER_REGISTRY. Affects engineering team only. - Backend trigger schedulers (cron, Kafka, IMAP) now enforce
proxy.WorkflowEnabled && proxy.Status == "published"before starting or maintaining production workers. Workers are stopped immediately when a workflow is disabled or unpublished. cleanWorkflowinWorkflowBuilder.tsxstrips ReactFlow runtime-only node fields (selected,dragging,measured,positionAbsolute,width,height) and edge fields (selected) before dirty-state comparison and before saving, preventing UI interaction events from being stored in the workflow definition.- Docs location enforcement — remaining legacy docs under repository-root
docs/(middleware-flow.md,middleware-optimization.md) were migrated tozerq-docs/docs/_internal/asgateway-middleware-context-flow.mdandgateway-middleware-optimization.md, then deleted from root. Root README project layout now reflects that canonical docs live inzerq-docs. - Backend structure governance doc expanded —
docs/_internal/backend-structure.mdnow defines mandatory naming conventions, dependency direction, package-placement rules, and PR checklist guardrails so future backend changes continue to follow the microservice-ready hierarchy (cmd/server,internal/*,internal/platform,pkg). - Phase 2 hardening guardrails (backend) — Added executable architecture boundary tests (
internal/architecture/architecture_test.go) andbackend/scripts/dev-check.shfor local/CI checks; workflow runtime now depends on workflow-owned ports (internal/workflow/ports) instead of direct management package imports; startup-fast-fail domain runtime validation added ininternal/platform/config/domain.go; workflow trigger sync payload standardized viatriggercore.WorkflowTriggerSyncEventcontract (event_type,proxy_id,version,source). - Phase 3 microservice-readiness hardening (backend) — Added boundary-contract tests for workflow seams (
engine_ports_test,contracts_test,notifier_test) and enforced them viascripts/dev-check.sh; tightened DTO boundaries for workflow persistence and collection->proxy cross-domain writes (ProxyWorkflowUpdateCommand,triggercore.ProxyWorkflowState,management/portsrequest DTOs); expanded internal service-readiness docs with data ownership, extraction sequence, and split blockers. - Backend liveness/readiness probes — Added explicit probe endpoints for container orchestration:
GET /livez(process alive) andGET /readyz(dependency readiness: MongoDB plus Redis whenCACHE_TYPE=redis). - Probe wiring alignment with backend structure — Moved probe logic from
cmd/server/main.gointointernal/observability/healthand wired it through Fiberhealthcheck.New(...)using custom liveness/readiness probes, keeping route behavior the same (/livez,/readyz) while keeping composition-root code slimmer.
2026-03-26
Added
- Workflow Kafka Consumer entry node (
kafka_consumer) for Kafka-driven runs: config includescredentials_id,topic,consumer_group,enabled,commit_mode,poll_timeout_ms; outputs includetopic,partition,offset,key,message,headers, andrun_id. Added starter template Kafka consumer + echo (kafka_consumer_echo).
Changed
- Workflow builder now auto-seeds a valid default proxy workflow when enabling workflows on a brand-new proxy (instead of sending
workflow_definition: null), preventing400on first enable. The canvas now immediately reflects backend-seeded workflow changes without requiring a page refresh. API error messages from workflow save/validate/toggle are now surfaced directly in the UI instead of generic status-only failures. - Workflow trigger registrar sync now uses Redis Pub/Sub broadcast (publish once, every pod receives and applies, including the sender on receive) instead of Redis Streams. Added reconnect protection: when Redis connectivity is restored after a disruption, trigger schedulers run a bootstrap sync to avoid stale in-memory registrations after missed pub/sub events.
- Management MCP workflow guidance updated to include
kafka_consumeras a valid single entry trigger alongsidehttp_trigger,manual_trigger, andcron_triggerin prompt text and tool descriptions (workflow_test_node,update_proxy_workflow,validate_proxy_workflow). Tool catalog docs now explicitly call out kafka-consumer support for workflow entry validation flows. - Backend workflow validation now enforces exactly one entry trigger node per workflow (
http_trigger,manual_trigger,cron_trigger, orkafka_consumer). Validation and enabled workflow updates reject definitions with zero or multiple entry triggers. - Kafka consumer scheduler no longer uses Redis distributed locks; multi-pod coordination now relies on Kafka consumer-group partition assignment.
- Cron and Kafka trigger schedulers now use startup bootstrap plus event-driven per-proxy sync on proxy/workflow create, update, enable/disable, and delete. The recurring 60-second full trigger reconciliation loop has been removed by design.
2026-03-24
Added
- Workflow Cron Trigger node (
cron_trigger) with scheduler-driven runs: configurablecron_expression,timezone, andenabled; outputstriggered_at,trigger,schedule,timezone, andrun_id. Multi-pod execution uses Redis distributed locks for at-most-once execution per slot. Documented at Cron Trigger. - Workflow template Cron trigger + echo (
cron_trigger_echoinbackend/templates/workflow_templates.json):cron_trigger→ Code (simple starter) where code logs a cron run viaconsole.log(...)and returns minimal metadata (run_id,schedule,triggered_at). - Workflow Manual Trigger node (
manual_trigger): starts runs from the builder only; outputstriggered_atandtrigger(manual). Documented at Manual Trigger. Engine acceptshttp_trigger,manual_trigger, orcron_triggeras entry nodes. - Workflow template Manual trigger + echo (
manual_trigger_echoinbackend/templates/workflow_templates.json):manual_trigger→ Set → Response JSON withtriggered_atandtrigger. Listed on Workflow Templates.
Changed
- Workflow builder: Execute workflow failures show a compact Run failed chip with Details (full message in a small overlay panel) and Dismiss, so the toolbar layout is not stretched by long errors. Details closes on outside click or Escape. See Building Workflows.
2026-03-22
Added
- HTTP Request node:
body.typemultipartformultipart/form-data(text fields + file parts, base64 file payloads). UI label Form (URL-encoded) clarifiesform_datavs multipart. Documented on HTTP Request Node. - Workflow XML node (
xml_node): XML ↔ JSON conversion, optional SOAPBodyunwrap forxml_to_json. Documented under XML Node; Data Processing and Node Reference updated. Management MCP workflow prompt listsxml_node. - Workflow templates (in
backend/templates/workflow_templates.json): XML → JSON (incoming) and JSON → XML (response) starters for gateway workflows that usexml_node.
Changed
- Management UI: proxy create/edit dialog step indicator shows horizontal connector lines between step circles so the step order reads as a clear sequence (completed segments use a stronger track color).
2026-03-07
Fixed
- Workflow expressions (loop body): use
$json['$item'],$json['$index'],$json['$loop']— same$jsonpattern as$json['node_id']. Example URL:{{ 'https://…/' + $json['$item'] }}.
Added
- Workflow APIs:
POST /api/v1/workflows/:workflowId/execute-partial,GET /api/v1/workflows/:workflowId/versions,POST /api/v1/workflows/:workflowId/versions/:versionId/restore. - Workflow node
execute_subworkflowand MCP toolsexecute_workflow_partial,list_workflow_versions,restore_workflow_version. - Execution records now store per-node
node_inputsfor replay; workflowruntime_settingsfor execution timeout and save-on-success/error flags. - Expressions:
$workflow,$execution, and$input(all/first) in the Go engine; partial run and test-node acceptpinned_outputs. UI: pin output in the NDV for mock upstream data (not persisted on save).
2026-03-20
Added
- Workflow Loop node (
loop_node): public docs Loop Node, updates to Logic And Routing, Expressions — loop variables, Flow Control; internal index (repo only):zerq-docs/docs/_internal/reference/workflow-nodes-index.md. Sidebar Nodes → Logic & Routing includesloop_node. deploy/mongodb.shfor full-database MongoDB backup/restore (readsMONGODB_URIfrom env ordeploy/.envonly, optional defaults in script); internal operator runbookdeployment/operations/backup-and-recoveryupdated.deploy/mongodb.sh clear-collection <name>to empty a collection viamongosh(replaces earlierclear-logsnaming).deploy/mongodb.sh backup-json/restore-jsonfor per-collection Extended JSON (mongoexport/mongoimport); output underdeploy/mongo-backups-json/.
Changed
- Loop node expressions: iteration context is only on
$json($json['$item'],$json['$index'],$json['$loop']); bare$item/$index/$loopglobals are not injected in V8 (consistent with the rest of the workflow engine). - Loop node canvas and NDV: Loop / Done outputs; edges use
sourceHandleloop(or empty) for per-item body anddonefor after-loop. Engine routes only by handle (split-batch style). Templates:loop-batch-api-calls,loop-reqres-users,loop-github-repos-meta,loop-nested-rows(nested loops); Loop Node wiring docs updated. - MongoDB backup/restore script path:
deploy/mongodb.sh(run fromdeploy/;deploy/scripts/removed). deploy/mongodb.shreadsMONGODB_URIfrom.envwith line parsing (Atlas URIs contain&, which breakssource); macOS install hint usesbrew tap mongodb/brew.deploy/mongodb.shreads env keys fromdeploy/.envonly (notbackend/.env).- Internal backup runbook:
mongodumpproduces BSON + metadata JSON; restore usesmongorestore.
2026-03-17
Changed
build-push.shnow updates only the docker-compose image tags for services that were built, not all services. Tags are written directly in the compose file.- Documentation homepage UI/UX aligned with zerq-website: card styling (rounded-2xl, hover lift, shadow), section padding, buttons (scale on hover/active), icon boxes, section title underlines, and container layout.
2026-03-13
Added
- Audience-first information architecture introduced.
- New reference pages added for management and gateway behavior.
- New deployment architecture and environment index pages.
Changed
- Public documentation navigation was simplified across sidebar, top bar, and footer.
- High-friction onboarding pages were rewritten for clearer user journeys.
Fixed
- Duplicate and overlapping pages were de-duplicated.
- Public links to internal-only documentation routes were removed.
Security
- Public docs builds now fail on broken links to prevent accidental leakage paths.
Notes
- This changelog is the canonical release-notes entry in the docs site.
- For code-level commit history, use repository git history and PR links.