router, node, standalone: external HTTP ingress for a2a, mcp, and inference services #838
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 556 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.378
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #838"
general
weight: 0.35
aojea
Summary
Adds zero-trust External HTTP Ingress so callers outside the mesh can reach explicitly opted-in
a2a://,mcp://, andinference://services on enrolledagentmesh-nodemembers throughagentmesh-router(oragentmesh-one's single port) without routing data-plane traffic throughagentmesh-control-plane.Two-Layer Opt-In (Service Capability + Admin Role Ceiling)
PolicyRole.allowed_ingress): Admins set the ingress ceiling viarepeated IngressGrant, compiled intogranted_ingress_Datalog rules by the control plane and enforced at directory announcement (RequireIngress). Omittingallowed_auth_modesgrantsINGRESS_AUTH_MODE_EDGEonly;PASSTHROUGHrequires an explicit role grant.ServiceIngress): Service owners opt in per service (ingress:inagentmesh-node.yaml), with optional caller narrowing viaallowinPolicyBinding.memberssyntax ("email:alice@example.com","email:@example.com","group:eng").Default Edge Authentication (
INGRESS_AUTH_MODE_EDGE) & Discovery<public-url>/ingress/<peer_id>/<service_type>/<service_name>[/<subpath>](zero wildcard DNS or extra TLS certificates required) plus RFC 9728/.well-known/oauth-protected-resource, returning401 UnauthorizedwithWWW-Authenticate: Bearer resource_metadata="..."when unauthenticated.ServiceIngress.allow, while rejecting unattenuated standing member/router transport Biscuits.AgentCardRewriting:GET /.well-known/agent-card.json(and bare service rootGET) rewritessupportedInterfacesto the public ingress URL, strips stale backend signatures, and populates OAuth 2.1 / OIDC / BearersecuritySchemesinEDGEmode (preserving backendsecuritySchemesinPASSTHROUGHmode)./mesh/ingress/1.0.0): Streams across local or federated peer routers to the serving node, which admits only authenticatedmesh:role:routerpeers, re-verifies localingressopt-in and caller authorization end-to-end, strips spoofedX-Mesh-headers, and injects verified attribution headers (X-Mesh-Ingress,X-Mesh-Principal,X-Mesh-Role,X-Mesh-Task).Protocol Gate (
/mesh/ingress/1.0.0is router-only)/mesh/ingress/1.0.0through arouterHostgate: a stream from any peer that did not authenticate asmesh:role:router(a member included) is reset before the HTTP server reads a byte and counted inagentmesh_node_streams_refused_total{scope="not_router"}. The handler's ownX-Mesh-Biscuit+ authority-binding + role check stays as the second, independent layer.HandleAuthHandshakenow records the role under the key that verified the credential (authRoutersalongsideauthPeers), so a federated router that handshakes inbound is recognised; a ban drops both.TestNodeProtocolInventoryIsClassifiedlists every protocol a started node registers and fails on any that is not classified as handshake-open, in-stream-credential, or gated; for each gated protocol it opens a stream from an unauthenticated peer and checks it is refused and counted.TestExternalIngressProtocolServesOnlyRouterschecks member-reset / router-served / ban. Both fail against the previous code.ingress.allownode:entries are canonicalised at the config boundary (ServiceIngressFromConfig), and--allow-insecure-ingress-httpnames the plaintext risk in its help text.Deployment & Operations
agentmesh-one: Enabled out of the box on the single port with zero extra flags.--ingress-addr,--ingress-url,--public-control-plane,--ingress-tls-cert-path,--ingress-tls-key-path, and--allow-insecure-ingress-httponagentmesh-router, surfacedRouterInfo.ingress_urlon/infoand the console (SQLite/Postgres schema v21), and wiredcharts/agentmeshand.github/k8sGatewayHTTPRoute(/ingress/->agentmesh-router).Validation
make,make lint, unit tests (-race), integration tests (TestStandaloneExternalIngressCUJ,TestFederatedMultiRouterIngressRoleCeilingAndBan), andmake e2e-test(32/32Bats tests).