Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 17:45
· 42 commits to main since this release

Agent Mesh v0.3.0 makes the verified claims of an identity provider an input of the mesh policy, lets a browser join a mesh as a member with the Agent Mesh Connect web app (preview), and lets agentmesh-node enforce the mesh policy for Google Cloud Agent Gateway. This release also fixes nine security advisories in the node, the control plane, the router and the JavaScript and Python SDKs: upgrade every component that runs v0.2.0 or earlier (see Security below). It includes fixes to the node, the router, the Helm charts, the SDKs and the documentation.

Upgrade notes

  • Upgrade the control plane, the routers and the nodes. A component that stays on v0.2.0 keeps the vulnerabilities of its row in the Security table below. The changes to api/agentmesh.proto are additive: PolicyBinding.claims and PolicyConfig.attested_claims.
  • The control plane database schema is now version 22. The migration is automatic and keeps existing data. Do not downgrade a migrated database to v0.2.0: the old binary does not read the claims of a binding, so it applies the binding to every identity that matches members, and a policy save from it removes the claims. Take a backup before upgrading.
  • Envoy ext_authz must send the request body. The node reads the tool of an MCP tools/call from the body only. Set with_request_body on the ext_authz filter. Without the body, the node refuses a POST to an MCP service from a credential that has operation.allowed_tools. The X-Mesh-Mcp-Tool request header has no meaning.
  • A gateway must use the Unix socket or a client certificate to receive a credential. The node returns the upstream credential of an egress destination (ext_authz, ext_proc) and a border JWT (POST /oauth/token with requested_token_type) only over its Unix socket (--socket-path) or to a verified client certificate (--tls-ca). On another transport it answers 403.
  • The same rule applies to an MCP service that has a backend credential. ext_authz and ext_proc now return the credential of an MCP service (target_auth_path, or a credential in target_url) to the gateway in Authorization. A check for such a service on another transport gets 403. Before, that check passed and returned no credential (#965).
  • ext_proc reads an MCP body in BUFFERED or FULL_DUPLEX_STREAMED mode only. Set allow_mode_override: true on the Envoy filter, so that the node can ask for the BUFFERED mode. In half-duplex STREAMED mode, the node refuses an MCP body that arrives in more than one chunk with 403. A body above 1 MiB gets 413 (#965).
  • The host of a request selects the service before a bare path. ext_authz and ext_proc take the service from X-Mesh-Target-Service, then from a /mesh/<scheme>/<name>/ path, then from the host of the request (an MCP service by the host and path of its target_url, or an egress destination), and last from a bare /<scheme>/<name>/ path. Before, the bare path came before the host (#965).
  • The audience of a border JWT comes from policy. /sts/token and the node's /oauth/token refuse a requested audience that differs from the audience of the egress policy. A failed read of the egress policy refuses the request with 500.
  • Ambiguous MCP messages are refused under a task credential. With operation.allowed_tools, a message that states method, params or the tool name twice, or in another letter case, is refused. A request with no id that is not a notifications/ method is dropped.
  • allowed_tools grants tools only, on HTTP as on a stream. Under a credential with operation.allowed_tools, resources/list and prompts/list on HTTP (router ingress, the node, the Envoy filters) get 403. initialize, server/discover, ping, tools/list and the tools/call of a listed tool work as before. A credential that must list resources or prompts needs a rule for the service with no allowed_tools. On HTTP, a tool name with a scheme://service/ prefix or with spaces around it is denied (#964).
  • A task denial on an MCP stream is JSON-RPC error 1001. It was -32600. The node sends tools/call once and returns its error to the caller; it retries only the connection to the provider (#856).
  • The node removes X-Mesh-* and X-Peer-Id headers that a caller sets, on mesh streams, on router ingress and on the Envoy filters, and sets them from the verified credential (#953).
  • A directory record with an address longer than 1024 bytes is refused.
  • An expires_in above 9223372036 is reduced to that value. A correct client sees no change.
  • Helm chart agentmesh: with router.replicaCount above 1 and no router.externalAddrs, the chart does not pass --external-addr, so each router announces its own pod IP (#883).
  • The Python SDK requires libp2p>=0.8.1 (#903).
  • JavaScript SDK: a failed connect() throws cannot reach <peer>: with one line for each path it tried. The text of the error changed (#955).

Identity provider claims in policy (#953)

The control plane can now attest claims of the OIDC token that an identity enrolls with, and the policy can require them. This lets a policy use device posture, the issuer, or the authentication method (amr) without a label that the node declares itself.

  • PolicyBinding.claims is a map of claim paths to required values. The binding applies only to an identity whose verified token has these values. iss can always be matched, so a binding can name one issuer in a mesh with several.
  • PolicyConfig.attested_claims lists more claim paths to attest, for use in node rules, headers and border JWTs.
  • The control plane writes each value as a claim(key, value) fact in Block 0 of member and delegated session Biscuits, at /register, /refresh, /token/exchange and /oauth/token. A claim is separate from a node-declared label: a node cannot declare a claim, also when its role allows every label.
  • A claim path is a top-level key (URI keys included) or a dot-separated path into nested objects. Strings, booleans, numbers and arrays of these are supported; an array gives one fact for each element. A missing or malformed value gives no fact, so a rule that requires it denies.
  • Limits: 16 claim paths in a policy (POST /policies answers 400 above that). A claim with more than 16 values is not attested, and the control plane logs a warning.
  • The binding claims are part of the Datalog text that the control plane distributes, so every member, in every SDK, enforces them.

Node. Two new keys in attenuation of agentmesh-node.yaml:

Key Meaning
require_task_scope Refuse a credential with no tar_block on inbound mesh, external ingress and Envoy gateway requests.
max_task_ttl Maximum remaining lifetime of the caller's credential, for example 15m. Implies require_task_scope.

Provenance headers. The node sets X-Mesh-Claims, X-Mesh-Labels, X-Mesh-Actor-Node and X-Mesh-Origin (mesh-remote, mesh-external-ingress or mesh-gateway) from the verified credential, and forwards the first three to an egress destination that has forward_context. A border JWT from /sts/token carries mesh_claims and mesh_labels, and the Border Crossing log lines include them.

Documentation: Enterprise device posture, boundary isolation, and gateway provenance. Runnable example: development/examples/device-posture-isolation/.

Agent Mesh Connect: a browser joins the mesh (preview) (#934, #920, #955)

agentmesh-webapp serves Agent Mesh Connect, a web app that runs the JavaScript SDK in a browser page. The browser becomes a member with its own key, credential and Node ID. It does not offer services.

  • Join. Enter the address of the control plane and an enrollment token, or open a link <page>#server=<mesh address>&token=<token>. The values after # do not reach a server. When the mesh has a sign-in provider, Sign in enrolls with the account (authorization code with PKCE).
  • Run. The dashboard shows the Node ID and the connections, with Start, Stop, Unenroll and Reset device identity.
  • Local agent. On a computer, the Config tab connects an agent such as Claude Code to the node's caller tools through WebMCP and a relay that needs only Node.js 22. The agent pairs once with a single-use token. The page runs only calls that a paired agent signed, one time each, in a 60-second window.
  • Transport. The page reaches a router over WebSocket or WebTransport. A router that listens on /webtransport and has --external-addr now also announces a /webtransport address for each external QUIC address, so a browser can dial the router by IP and check its certificate hash (#920). A router that does not listen on WebTransport announces the same addresses as before.
  • Delivery. agentmesh-webapp is a container image (ghcr.io/google/agentmesh-webapp) and a Helm chart (charts/agentmesh-webapp). It belongs to no mesh; one deployment serves any mesh. The release archives do not contain it.
  • Fixes found on the testnet (#955): remote tools that declare an output schema load under the page's Content Security Policy, and the dashboard counts routers and peers separately.

Documentation: Agent Mesh Connect (web).

Google Cloud Agent Gateway (#965)

agentmesh-node can be the policy enforcement point of Google Cloud Agent Gateway, as an ext_proc Service Extension (AuthzExtension with EXT_PROC_GRPC, AuthzPolicy with CONTENT_AUTHZ). The gateway keeps the data path; the node verifies the Biscuit, the role grants and the task rules of each request, and sets the X-Mesh-* headers from the verified credential.

  • No routing header. The node finds the service from the host of the request. An MCP service matches by the host and the longest path prefix of its target_url; two services that match equally are refused. Other traffic matches an egress destination of the policy. X-Mesh-Target-Service and /mesh/<scheme>/<name>/ paths still come first.
  • FULL_DUPLEX_STREAMED body mode. The node holds each chunk of an MCP body until the body is complete and the allowed_tools check passes, and then returns the body. A request that is refused sends no body to the backend.
  • Requests that are not MCP are not buffered. The node decides a POST such as Git Smart HTTP git-upload-pack on its method and path, and the body streams through.
  • Audit. A check that the node refuses before the policy decision (no credential, a credential that does not verify, no service for the request) writes an ExtAuthz denied log line with the stage, the method, the host, the path and the reason.

Documentation: Google Cloud Agent Gateway with Service Extensions (ext_proc). Runnable example: development/examples/gcp-agent-gateway/.

Security (#961)

v0.3.0 fixes nine security advisories. Upgrade every component that runs v0.2.0 or earlier.

Advisory Severity Component Problem
GHSA-g9hr-vm84-pjjr High node, router An MCP message that two JSON parsers read differently passed a task rule with allowed_tools, and the backend ran a tool that the rule excludes.
GHSA-qp8f-gxq7-x6h9 High node (Envoy integration) A client X-Mesh-Mcp-Tool header, or an ext_authz check with no body, passed any tools/call.
GHSA-2g97-3v45-p9f4 High node (Envoy integration) ext_authz, ext_proc and /oauth/token gave the credential of an egress destination to any caller that held a Biscuit.
GHSA-gwq9-733j-cg85 High control plane /sts/token signed a border JWT with the audience of another destination.
GHSA-g2j8-hmvc-5r3x Medium control plane /sts/token skipped the served_by and audience checks when the read of the egress policy failed.
GHSA-qg99-6frq-2h5m Medium control plane, node An expires_in overflow in the token exchange gave a delegated Biscuit that did not expire.
GHSA-gw5v-gc33-3wg6 Medium router One member could hide every provider of a service type with one oversized directory record.
GHSA-qgh6-qr94-7prg Low node The node sent the caller's Biscuit to a provider on the MCP path before it verified the provider.
GHSA-h9gm-855f-88jw Low sdk/js, sdk/python The SDKs lost a ban that was set again while a control plane pull was in progress.

The Go advisories affect github.com/google/agentmesh up to v0.2.0, sdk/meshnet included, because it uses the node's enforcement code. GHSA-h9gm-855f-88jw affects @agentmesh-p2p/sdk and agentmesh-p2p up to 0.2.0.

Thanks to the reporters: @Staberman, @ersinkoc, @HosniBelfeki, @pilotwaffle and @ignaciojaneiro, who also wrote the fix for GHSA-qgh6-qr94-7prg.

A review after these fixes found three more gaps in the check of operation.allowed_tools for MCP. None of them lets a caller run an excluded tool on a path that a release ships. #964 closes them: the HTTP check reads the tool name as the request states it, the HTTP check and the /mesh/mcp stream check allow the same session requests, and the JavaScript and Python authorizers allow a request with no tool only when the application says that it opens or keeps the session.

Control plane

  • The served_by and audience refusals at /sts/token write a Border Crossing deny line with actor_node, destination, reason and the requested audience (#795).

Node

  • A trusted key that the control plane still lists is kept. Before, the node could drop the key that signed its own identity one day after it first received it, and the next start failed with biscuit: invalid signature. Each key that pruning drops is logged (#916, #945).
  • A provider that does not attest the labels that the caller or the egress floor requires is not tried again. Before, the call made three handshakes and waited 3 seconds for the same refusal (#954).
  • Model Armor egress inspection reads every text field of OpenAI Chat Completions, OpenAI Responses, Anthropic Messages and Gemini generateContent bodies, and puts streamed deltas together before it inspects them. A replacement that cannot be written back, and a verdict where a filter other than Sensitive Data Protection matched, refuse the request (#923, #924).

Router

  • A find_providers answer always fits the 64 KiB frame. The new counter agentmesh_router_directory_records_omitted_total counts the records that an answer left out (#961).
  • The busiest-stream gauge of a transport goes back to 0 when its last connection closes. Before, the WebSocket, WebTransport and WebRTC series of agentmesh_router_busiest_connection_streams and agentmesh_node_busiest_connection_streams kept their last value (#948).

agentmesh-one

  • A Cloudflare connector that exits on its own is reported as an error, also when its exit status is 0. Before, the public URL stopped and agentmesh-one logged nothing. A named tunnel with an --external-url that is empty after trimming is refused at start (#949).

Helm charts

  • agentmesh: several router replicas each announce their own pod IP. Before, they all announced the Service name and a node failed with peer id mismatch (#881, #883).
  • New chart agentmesh-webapp (#934).

SDKs

  • @agentmesh-p2p/sdk: the browser build dials WebTransport beside WebSocket (#920). New for a program that unenrolls: NotEnrolledError, AgentMesh.forget and StateStore.remove; close() waits for a credential refresh or a control plane pull that is in progress (#934). The MCP client checks tool results without eval, in Node.js and in the browser (#955).
  • agentmesh-p2p: works with py-libp2p 0.8.3 (#953). The workaround for WebSocket dials by name is removed, with the floor at libp2p>=0.8.1 (#903). A renewed credential is saved as soon as /refresh answers (#934).
  • The Python package is published to PyPI through Google's OSS Exit Gate (#884).
  • authorizeCaller and authorize_caller have a new request field, allowMCPStreamInit (allow_mcp_stream_init). Under a task rule with allowed_tools, a request that names no tool passes only with this field. The paths that the SDKs ship do not change (#964).

Documentation

Dependencies

a2a-go v2.9.0, pgx v5.13.0, modernc.org/sqlite v1.62.0, pflag v1.1.0, golang.org/x/net v0.63.0, golang.org/x/oauth2 v0.38.0, golang.org/x/crypto v0.59.0, and the gorilla/websocket commit that fixes GO-2026-6278. Release images are built with Go 1.27.4.