Skip to content
Last updated December 3, 2026

PromptGate 0.10 — changelog

Archived from CHANGELOG.md, which keeps the unreleased changes and, until the next release, the latest one.

Operations from the outside, and a guard on what models answer. The Management API serves PromptGate’s state and changes as JSON over HTTP (the same tools as MCP, with OpenAPI 3.1 and If-Match), traces, metrics and logs go to any OpenTelemetry collector, and request content in the log is encrypted. The commands guard refuses answers that would make a coding agent download and run code — on by default — and promptgate model check finds poisoned GGUF files before they run. Two more pgfuzz stages, for the Management API and webhooks, found an If-Match race and control characters in key names, both fixed. On the request path v0.10 measures like v0.9.2 (release run).

  • Request content in the log is encrypted. With logging.bodies: true, every request as the provider got it and its answer are compressed and sealed with AES-256-GCM before they are written, keyed from the secret key — a copy of promptgate.db reveals none of it. The web UI and promptgate replay decrypt it; numbers stay readable, so stats and budgets are as fast as before. Content stored before is encrypted in the background on the first start, and the pages that held it are overwritten. Request log schema v18 (encrypted request content).
  • Management API: PromptGate’s state as JSON over HTTP at /control/v1 — stats, logs (in pages), budgets, anomalies, config, endpoints, keys, APIs, OAuth connections — for scripts and dashboards. It serves the MCP control tools, so it has their access rule: a pg_ key with control: read reads; with control: write it also changes things — POST /control/v1/key-create, limit-set, budget-set and the other actions — through the web UI’s checked path into the audit trail as api:<key>. ETag / If-Match keep two scripts from overwriting each other. One error shape, typed and strict parameters; surfaces.management.mount moves it. The whole API as OpenAPI 3.1 at /control/v1/openapi.json, and a reference of every field, generated from the API so it can’t drift (Management API).
  • OpenTelemetry: with telemetry.otlp.endpoint set, every request — model, MCP, API Gateway — becomes a span sent over OTLP/HTTP (protobuf or JSON, gzipped) to a collector or any OTLP backend, with the GenAI conventions (gen_ai.request.model, gen_ai.usage.*), cost, key, end user, fallback and guardrail findings; 5xx are error spans. A request with a W3C traceparent joins the caller’s trace, and every provider call — each fallback attempt too — is a client span whose traceparent the provider gets; the API Gateway passes the trace on to its APIs. The Prometheus metrics are pushed as OTLP metrics (same names, no open port needed), and with logs.enabled every request is a log record linked to its span — the path into a SIEM or warehouse; each signal can be turned off. promptgate_otlp_items_total counts the export. Sampling, headers from the environment; batched, retried and dropped rather than slowing a request. PromptGate’s own encoder — no OpenTelemetry SDK — checked against the OpenTelemetry Collector (scripts/otlp-collector.sh) (telemetry).
  • commands guard: reads what the model answers — text and tool calls in OpenAI Chat, Responses (Codex), Completions and Anthropic Messages (Claude Code), buffered and streamed — for commands that download and run code, write a program to Temp and start it, encoded or hidden PowerShell, reverse shells, Defender exclusions, autostart entries and abused Windows tools, also obfuscated. block answers 422 in the client’s format before the agent sees anything; a stream is held only until its first 160 bytes are checked (1 KB when they hold a word a command starts with, to its end once it calls a tool), so ordinary answers flow almost at once; prose is checked in about 12 µs per KB. On in recommended and strict; allow lets trusted installers through. Prompted by poisoned GGUF models whose chat template made every reply start with a PowerShell command (agent safety, commands in answers).
  • Quality gate: two more pgfuzz stages, commands (900 commands in answers through an echo model — text, tool calls, streams split six characters per event, obfuscated) and commands-benign (ordinary answers with commands must pass), and admin and webhooks for the Management API and webhook deliveries; 30 stages (quality gate). Their first run found commands in tool-call arguments slipping through (JSON-escaped quotes and backslashes) and four unknown phrasings; the guard now reads escaped text resolved too.
  • promptgate model check <file.gguf>: reads a GGUF file’s header without running it and reports data after the last tensor (where that campaign hid a Windows stealer) and chat templates with commands, URLs or base64; exit 1 when something is found.
  • Control tools for webhooks and the audit trail — webhooks, webhook_deliveries (paged, one with its event), audit (by actor, action, time, paged), webhook_test, webhook_redeliver (audited) — in MCP and the Management API (/control/v1/audit …).
  • Web UI: a Webhooks page (Observability) — state, queue and 24-hour numbers per webhook, send a test, redeliver what failed, every delivery with its event and the receiver’s answer — running the control tools, audited as ui:<user>; the Settings page shows where telemetry goes and what each signal sent, dropped and gave up.
  • MCP control tools describe their answers (outputSchema); a test checks every answer against it.
  • promptgate logs show <id>: one request with what the provider got and answered, decrypted; --json for scripts.
  • Management API: changes sent at once with the same If-Match could all get through — the version check and the change now run one action at a time, so exactly one wins and the others get 412 (found by pgfuzz admin).
  • Key names with line breaks, NUL or invisible characters were taken; they would forge or hide text in logs, the audit trail and metrics. Names are now refused with control and format characters, spaces at either end, or more than 128 characters — on every path (config, keys file, CLI, web UI, MCP, API).
  • Started as a service (launchd, systemd, Windows), a gateway that failed — its port taken, the config broken — stayed running without serving anything and without a word. It now prints why and exits 1, so the service manager restarts it.
  • The first start after the update builds an index on the request log for the encryption of older content: about 2.5 s for 3 million requests, once; starts after it take as long as before.
  • A key can’t revoke itself through the control tools, so an automation can’t lock itself out.
  • oauth_connections names its fields in snake_case (expires_at) like every other control tool.
  • The request log and its -wal / -shm files are readable by their owner only (0600); SQLite created them 0644 before, and files from older versions are tightened on start. A request log directory others can list is reported in the log.
  • The BSL Additional Use Grant also names central configuration and management of many PromptGate instances (distributing configs, monitoring or auditing them in one place) as what a hosted offering may not compete with. Running PromptGate yourself — for your own company, at any size — stays allowed, as before.
Was this page helpful?