Skip to main content

Deployment architecture


Prerequisites

Before starting the gateway, generate a persistent ECDSA P-256 signing key and expose it as QWED_A2A_SIGNING_KEY_PEM. Attestation JWTs are signed with this key; without it the gateway fails closed (HTTP 503) on every request.
Every replica in the same logical deployment must load the same PEM. Different keys across replicas would produce different kids, and attestations issued by one instance would fail verification on another. Store the PEM in your secrets manager and inject it at runtime.

FastAPI application

Create your production entrypoint:

Docker

Build and run:

Available endpoints

Health check response

Metrics response

JWKS endpoint

GET /.well-known/jwks.json returns the current signing public key so downstream services can verify attestation JWTs without an out-of-band key exchange.
The kid is derived from a SHA-256 fingerprint of the public key, so it remains stable across restarts as long as QWED_A2A_SIGNING_KEY_PEM is unchanged. When the PEM is missing or invalid, the endpoint responds with HTTP 503 Signing key unavailable — use this as a readiness signal for orchestrators and load balancers. See Crypto attestations for the full JWT structure and verification flow.

Environment variables


Monitoring

Sentry integration

QWED A2A includes built-in Sentry integration for error tracking:

Structured logging

All intercepts are logged with structured fields:

CI/CD integration

GitHub Actions

Mergify auto-merge


Integration with QWED ecosystem

QWED Core

A2A uses the same verification principles as the core QWED engine — deterministic, symbolic, and provable.

QWED MCP

MCP provides tool-level verification. A2A provides agent-to-agent communication verification. They complement each other.

QWED Finance

The A2A finance guard uses the same Decimal arithmetic patterns as QWED Finance, adapted for inter-agent payloads.

Agent Specification

The QWED-Agent spec defines trust levels and budget enforcement. A2A implements the verification gateway described in the spec.