Skip to content

Changelog

All notable changes are listed here. The format follows Keep a Changelog and the project follows Semantic Versioning. Before 1.0, the manifest format, the signed request and some protocol details may change in a minor release. Each such change has an entry in docs/DECISIONS.md.

  • --max-clients is a shared cap on live OAuth clients. It used to count the clients one process had registered, so each replica allowed the full cap and a restart reset it. It now counts, in the auth store, the clients that have an active grant or were registered less than --client-grace ago (new flag, default 24h), so every replica on one Postgres shares one cap. Concurrent registrations cannot overshoot it (a transaction scoped advisory lock in Postgres). The hourly auth prune deletes clients older than the grace period with no active grant, also for the memory store, so clients that never link free their slot. A store error on registration answers 503. auth.Store gains RegisterClientCapped, CountLiveClients and Prune; stores must pass the extended authtest.Run. See docs/DECISIONS.md, “A shared client cap from live clients”.
  • Helm value config.clientGrace (default 24h) for --client-grace.

  • Distributed tracing with OpenTelemetry, off by default. --otel, or the standard OTEL_EXPORTER_OTLP_ENDPOINT, exports spans with OTLP over HTTP: a server span for /mcp and the dev API (joining an incoming traceparent), one gamewarden.call span per tool call with a child per pipeline stage, a client span for the signed backend request (which carries traceparent; the signature is unchanged) and a span for relay calls. Spans never hold arguments, results or secrets; a test enforces it. New dependencies: go.opentelemetry.io/otel, otel/sdk and otel/exporters/otlp/otlptrace/otlptracehttp (v1.47.0). The Helm chart has optional otel values. examples/tracing/ runs the stack with Jaeger.

  • Shared link code and registration limits. With --redis-addr, every gateway replica counts against one budget per client address, instead of one budget per replica. A limiter error fails closed with 503. Without Redis nothing changes. New limiters must pass limittest.Run.

  • The Unity relay client works in WebGL players. Under UNITY_WEBGL it uses the browser’s WebSocket through Runtime/Plugins/WebGL/RelaySocket.jslib, sends the ticket as ?ticket=, and runs on the one thread a page has (no Task.Run, timers on setTimeout). Other platforms keep ClientWebSocket unchanged. The Basic sample fetches its ticket with UnityWebRequest on WebGL. examples/unity-relay-client/E2E~/unity/webgl.sh builds it for WebGL and runs it in headless Chromium against the real gateway.

  • --relay-allowed-origins (or GAMEWARDEN_RELAY_ALLOWED_ORIGINS): the browser origins allowed to open the relay socket. Other origins get 403; native clients send no origin and are not affected. Empty (the default) keeps same origin only. No protocol change: see docs/DECISIONS.md, “The relay in the browser”.

  • A shared replay cache for studio-signed and admin-signed requests. With --redis-addr, every gateway replica on that Redis refuses a captured request another replica already accepted. A Redis error fails closed with 503. Without Redis nothing changes. New replay stores must pass replaytest.Run.

  • An Elixir pet shop backend (examples/pet-backend-elixir) on OTP’s built-in :httpd, with no Mix dependencies. It checks calls with examples/signing/elixir/sigverify.ex, and tutorial 3 runs it.

  • An Elixir signature verifier example (sig-elixir), Erlang/OTP only, with an ExUnit test. Tutorial 3 runs it.

  • A Rust signature verifier example (sig-rust, examples/signing/rust). Rust’s standard library has no HMAC, so it uses the hmac and sha2 crates, pinned in Cargo.lock. Tutorial 3 runs it.

  • A Dart signature verifier example (sig-dart, examples/signing/dart). Dart’s core libraries have no HMAC, so it uses package:crypto, pinned in pubspec.lock, and compares in constant time itself. Tutorial 3 runs it.

  • A Swift signature verifier example (sig-swift, examples/signing/swift). CryptoKit is Apple-only, so it uses swift-crypto, pinned in Package.resolved, and runs on Linux. Tutorial 3 runs it.

  • A standalone player test for the Unity relay client: examples/unity-relay-client/E2E~/unity/player.sh builds the Basic sample into a macOS player with Mono or IL2CPP and runs it against the real gateway. Both pass in Unity 6000.3.23f1 with default stripping and no link.xml.

  • A C# pet shop backend (examples/pet-backend-csharp): an ASP.NET Core minimal API on .NET 8 that compiles in examples/signing/csharp/SigVerify.cs. Tutorial 3 runs it.

  • A k8s tools container (Dockerfile target k8s: kind, kubectl, helm) and make k8s-shell. make k8s-tutorial-check now creates its own kind cluster (gamewarden-t09, or KIND_CLUSTER), runs tutorial 9 against it and deletes it, with nothing but Docker on the host.

  • Tutorial 9 (Helm chart on kind) has been run end to end and passes on kind v0.33.0, Kubernetes v1.37.0 and Docker 29.9.3. It is verified against v0.2.0.
  • make licenses works again. segmentio/asm v1.2.1 is MIT No Attribution, which go-licenses reports as unknown. The script now reads that module’s own license and accepts it only if it really is MIT-0. The page also lists the OpenTelemetry modules now.

The Unity relay client becomes a package you can install from a git URL, and its sample runs in the Unity editor. Signature verifier examples now cover seven languages and pet shop backends five. No manifest, signed request or policy changes.

  • A Ruby signature verifier example (sig-ruby), and Java and PHP pet shop backends (examples/pet-backend-java, examples/pet-backend-php). Tutorial 3 runs all of them.
  • A Unity editor test for the relay client: examples/unity-relay-client/E2E~/unity/run.sh creates a fresh project, installs the package and runs the Basic sample in play mode against the real gateway. It passes in Unity 6.3 (6000.3.23f1) on macOS, from a checkout and from the git URL.
  • Signature verifier examples in Java and PHP (sig-java, sig-php), and a TypeScript pet shop backend (examples/pet-backend-typescript). Tutorial 3 runs all of them.
  • Guide: add your manifest to the gateway (startup file, upload, the seed rule).
  • Tutorial 12: connect Claude Desktop to a game, written for players, with a script that plays the connector’s part.
  • Local HTTPS for the compose stack: an nginx https service on https://gamewarden.test (port 443, GAMEWARDEN_HTTPS_PORT) with a self-signed certificate from the tls-cert service (GAMEWARDEN_TLS_DOMAIN), and a guide on the local domain, copying and trusting the certificate, and reaching it from containers.
  • Unity relay client 0.2.0: JSON moved from System.Text.Json, which Unity does not ship, to Newtonsoft.Json (com.unity.nuget.newtonsoft-json, declared in package.json). Breaking: CallRequest.Args is now a JObject, and CallResult.Success(object) serializes with Newtonsoft. Date-like argument strings stay strings.
  • The README opens with what an agent cannot talk its way past: attempts that count before validation, failed calls that release their caps, player confirmations, kill switches, and an audit log that keeps only a hash of the arguments.
  • The MCP endpoint and gwbridge report the release version to MCP clients. Both said 0.1.0 whatever the build.
  • The dev image marks /src as a safe git directory, so go build can stamp VCS info when the mounted source belongs to another user. In CI this broke six tutorial scripts.
  • Tutorial 6 runs its gateway and fake backend as the owner of its key files (KEYS_UID, KEYS_GID). On Linux the gateway stopped with “permission denied” on its chmod 600 keys.
  • Unity relay client: installed from a git URL, Unity ignored every file in the package because none had a .meta. The package now ships them, and moves its tests, console game and end to end script into Tests~, ConsoleGame~ and E2E~ so Unity skips them. The Basic sample fetches its ticket from ticketUrl instead of throwing.

First public release.

  • Call pipeline: lookup, rate limit, validation, confirmation, reserve, signed backend call, settle, audit. Rate limits count every attempt, caps reserve before the call, a failed call releases its reservation, and policy outages fail closed.
  • Manifest in YAML or JSON with strict validation that reports every problem at once, and the gwctl CLI. Tools per tier (read, safe, medium, sensitive), caps, cooldowns and confirm.
  • MCP endpoint (stateless streamable HTTP) and the gwbridge stdio bridge for desktop clients.
  • Redis policy store shared across replicas, with kill switches. Memory store for one process.
  • --max-scope coach|operator caps every grant at read only for a first pilot.
  • --max-body limits request bodies at the front door (413 too_large), and the server sets read, write and idle timeouts.
  • SSRF-safe backend connector: no loopback, private or metadata addresses unless --backend-allow-private, no redirects.
  • pkg/agentsig, the public request signing library, with a published test vector.
  • OAuth 2.1 resource server with an embedded authorization server: PKCE, dynamic client registration, link tickets, consent with coach or operator scope, rotating refresh tokens.
  • Optional OIDC sign-in at consent (--oidc-issuer), verified with go-oidc and go-jose, tested against Dex and Keycloak (scripts/oidc-keycloak-check.sh). --oidc-public-client (Helm: oidc.publicClient) registers the gateway without a client secret, PKCE only.
  • Player confirmations for tools marked confirm.
  • Studio APIs signed with agentsig: grants, confirmations, activity feed (player and admin), manifest upload, list and rollback, kill switches (/v1/studio/switches), relay tickets.
  • Rotate the studio, admin and backend signing keys without a restart (key files and SIGHUP, --studio-keys-only, --admin-keys-only, --backend-key-file).
  • WebSocket relay with signed tickets and routing across replicas through Redis.
  • Protocol v1.1, backward compatible: limits in the hello, deadline_ms, retry_after_ms, bye, an in-flight cap (client_busy) and a frame rate limit.
  • examples/relayclient (Go) and examples/unity-relay-client (C#, with a Unity package layout).
  • Metrics, /healthz and /readyz on a separate ops listener (--ops-addr), including pgx and Redis pool and Go runtime metrics.
  • Helm chart, Grafana dashboard, Prometheus alert rules and a runbook.
  • Optional batched audit writes (--audit-queue), off by default. A 15 minute soak with it (AUDIT_QUEUE=1 scripts/soak.sh) dropped no event.
  • Load tool and a repeatable soak script. A one hour run at 100 calls per second held p99 at 6.5 ms with flat memory (see the runbook).
  • scripts/bench-overhead.sh measures what the gateway adds to a call by sending the same signed request to the backend directly and through the gateway. The homepage shows the result.
  • Schema migrations run under a Postgres advisory lock, so replicas that start together (a rollout or autoscale event) do not race.
  • The connector keeps up to 100 idle connections to the backend, so high load does not exhaust ports.
  • Signed multi-arch images on GHCR, binaries for six platforms, SBOMs and build provenance.
  • A project site with a landing page, concepts, generated reference (manifest, flags, error codes, audit events, OpenAPI for the studio API), and eleven tutorials. CI runs the scripts of the ones that need no Kubernetes cluster. Tutorials 9 (kind) and 11 (Docker Desktop) install the Helm chart on a local cluster, and tutorial 10 connects a Unity game through the relay.
  • Best practices, a cookbook, troubleshooting by result code and an FAQ.
  • Signing examples in Go, Python, TypeScript and C#, and two pet-shop backends.
  • Before 1.0: the manifest format, the signed request and some protocol details may change in a minor release. Every change has an entry in docs/DECISIONS.md.
  • The Unity package has not been run inside Unity. The relay was tried with the C# reference client and a Go client.
  • Tutorial 11 has been run on a real cluster. Tutorial 9 (kind) has not been run yet.
  • OIDC has not been tried against a hosted identity provider.
  • Audit retention prunes with an hourly DELETE. Partitioning is a design note (docs/design/audit-partitioning.md), not built.
  • Kill switches live in Redis, so without --redis-addr they are per process.
  • No hosted offering.