How visado reads credentials and delegation chains from a request. The AAT draft leaves bindings to separate specifications (§1), and the asor draft defines DPoP for the proof but no header for the chain, so the chain headers below are visado’s own until bindings are published.
Choosing the method
Section titled “Choosing the method”Which method a request uses is decided by the headers it carries, in this order:
Workload-Identity-TokenandAuthorization: WPT: WIT with WPT.Workload-Identity-TokenandSignature-Input, with noAuthorization: WIT with an HTTP message signature. AnAuthorizationheader next to a signature is denied (credential.ambiguous).Authorization: Bearerwith no WIT: a JWT-SVID if[jwt_svid]is configured,subis a SPIFFE ID andissis not a configured OAuth issuer; otherwise an OAuth access token.Authorization: DPoPwith no WIT: a DPoP-bound OAuth access token with itsDPoPproof.- None of these,
[mtls]configured and a peer certificate in the check request: mTLS.
A credential header longer than 16 KiB is denied (credential.too_large) before it is decoded.
user_token_header (default x-user-token) must be a lowercase header name that visado and the proxy do not already use: not authorization, proxy-authorization, dpop, dpop-nonce, workload-identity-token, txn-token, a chain header, host, cookie, x-forwarded-client-cert, a hop-by-hop header, or a name starting with signature, content- or x-envoy-. The server refuses to start otherwise.
Only the proxy may call visado’s gRPC port: anything that can call ext_authz directly gets decisions and, on an allow, a minted Transaction Token. A grpc_listen that is not a loopback address needs [grpc_tls] with a client_ca_file, so the proxy authenticates with a client certificate, or the top-level grpc_reachable_only_by_proxy = true, which records that the network lets nothing else reach the port and logs a warning at startup. [grpc_tls] serves the port over TLS with cert_file and key_file (PEM); with client_ca_file, a client without a certificate from one of those CAs is refused in the handshake.
An inbound Txn-Token is accepted only from a workload in internal_callers that proved possession of a key for the request: WIT with WPT (tth), WIT with a signature that covers it, or mTLS. A bearer caller or an OAuth client cannot forward one (txn.untrusted_hop). When the request also carries a delegation chain that names its principal (asor sub, the sub of a token with an RFC 8693 act claim), that principal must be the forwarded token’s sub, or the request is denied (chain.principal_mismatch); an AAT chain names no principal and is not compared.
Request target
Section titled “Request target”Before any credential is read, the request target must have one reading, since the PDP’s resource, the WPT and HTTP signature audience, the DPoP htu, the @path of a signature and the tool of a bodiless AAT or asor call all take the path as received. Anything else is a 400 request.unnormalized_path:
- a
#anywhere in the target; - in the path (before
?), a character outside RFC 3986pcharand/: a backslash, a space, a control character or NUL, or a byte that is not ASCII; ;, which Tomcat, Jetty and other servers read as the start of path parameters, so/public/..;/adminreaches them as/adminand/admin;jsessionid=xas/admin;- a malformed percent-encoding, or one of an unreserved character (
%61,%2e: RFC 3986 §2.3 says these should not be encoded), of%(double encoding such as%252e),/,\,;or a control character; - percent-encoded bytes that do not decode to UTF-8, overlong forms such as
%c0%aeincluded; - dot segments (
.,..) and empty segments (//).
The query string is not checked.
Forwarding headers
Section titled “Forwarding headers”visado never reads Forwarded or X-Forwarded-*: the authority, scheme and path come from the check request, and the client certificate from the TLS handshake. On an allow it removes the forwarding headers a client could use to name another host or path to the upstream: Forwarded, X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Prefix, X-Forwarded-Uri, X-Original-URL and X-Rewrite-URL. X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Client-Cert are the proxy’s to set: at the edge, Envoy needs use_remote_address: true to overwrite the first two and forward_client_cert_details left at SANITIZE or set to SANITIZE_SET for the third.
Header values
Section titled “Header values”A header value that is not valid UTF-8 is a 400 request.invalid_header, and so is a value with U+FFFD in it, which is what a proxy that decodes values lossily (agentgateway does) leaves in place of the bytes it could not decode. Decoding lossily would map different bytes to the same text, which a signature over that text could not tell apart. With Envoy, set encode_raw_headers: true so visado gets the bytes as received (see Proxy settings).
Proxy settings
Section titled “Proxy settings”visado decides only on check requests it can decode. A check request that fails to decode never reaches its handler: a protobuf string field (a header value, the path, the body) that is not UTF-8, or a message over gRPC’s 4 MiB limit, is a gRPC error, and the proxy then applies its failure mode. These settings are required:
| Setting | Envoy ext_authz |
agentgateway extAuthz |
|---|---|---|
| Deny when visado errs or cannot decode the request | failure_mode_allow: false |
failureMode: deny |
| Header values as bytes, repeated fields kept apart | encode_raw_headers: true |
No equivalent: agentgateway decodes values lossily itself, and visado denies a value with U+FFFD (request.invalid_header) |
| The body as bytes | with_request_body.pack_as_bytes: true |
includeRequestBody.packAsBytes: true |
| The whole body or none | with_request_body.allow_partial_message: false |
includeRequestBody.allowPartialMessage: false |
| Room in the 4 MiB message | max_request_bytes plus the largest headers the listener accepts (max_request_headers_kb) well under 4 MiB |
maxRequestBytes likewise |
visado denies a partial body (x-envoy-auth-partial-body) wherever it reads the body, but with allow_partial_message: false the proxy itself refuses a body over the limit. deploy/lab/envoy.yaml and deploy/lab/agentgateway.yaml use these settings.
| Item | Carried in |
|---|---|
| Workload Identity Token | Workload-Identity-Token header |
| Workload Proof Token | Authorization: WPT <token> |
| User access token next to a WPT | X-User-Token (configurable), bound through the WPT oth claim |
| Transaction Token from an earlier hop | Txn-Token, bound through the WPT tth claim |
HTTP message signatures
Section titled “HTTP message signatures”draft-ietf-wimse-http-signature-08, a profile of RFC 9421.
| Item | Carried in |
|---|---|
| Workload Identity Token | Workload-Identity-Token header, which the signature must cover |
| Signature | Signature-Input and Signature; the one tagged wimse-workload-to-workload is used, so an intermediary may add its own |
| User access token | X-User-Token (configurable), which the signature must cover |
| Transaction Token from an earlier hop | Txn-Token, which the signature must cover |
| Body | Content-Digest (sha-256 only), which the signature must cover when present |
Rules:
- The signature must cover
@method,@pathand@query, andContent-Type,Content-Digest,Authorization,Txn-TokenandWorkload-Identity-Tokenwhen the request carries them.created,expires,nonce,tagandwimse-audare required;keyidandalgare refused. The key is the WIT’scnfkey. wimse-audmust equal the request’s scheme, authority and path without the query, the same string a WPT’saudis compared with. The authority must be inallowed_authorities; visado refuses to start with an empty list.expiresminuscreatedand the age ofcreatedare at mostmax_signature_lifetime(default 60 s), with the usual clock leeway.createdmay be at mostmax_proof_skew(default 5 s) ahead of the clock. Thenonce(at most 256 bytes) is recorded untilexpiresplus the leeway (see Replay).- Covering
Content-Digestbinds only the header. visado also hashes the body it receives, so Envoy must send it: setwith_request_bodyon the ext_authz filter, withpack_as_bytes: trueso a body that is not UTF-8 arrives unchanged, and amax_request_byteslarge enough for the bodies you sign. A body Envoy did not send is treated as empty, so a signed non-empty body is then denied. A partial body (x-envoy-auth-partial-body: true, fromallow_partial_message) is denied. HTTP/2 needs no length header, so a request without exactly oneContent-Length: 0is taken to have a body and must coverContent-Digest, whatever the method; a client signing a GET over HTTP/2 covers the digest of the empty body. - Envoy sends repeated headers joined with commas in
headers, or separately inheader_mapwithencode_raw_headers. visado joins repeated fields with a comma and a space, as RFC 9421 does, so setencode_raw_headersif a covered header can repeat. - Every failure (the WIT, the signature, its parameters, the digest, a replayed nonce) is
httpsig.invalidwith status 400 and an RFC 9457application/problem+jsonbody of typewimse-signature-invalid, as the draft requires the response not to say which check failed. The audit record has the detail.
draft-ietf-wimse-mutual-tls with a Workload Identity Certificate, which is a SPIFFE X.509-SVID.
| Item | Carried in |
|---|---|
| Client certificate | The TLS handshake with Envoy. Envoy passes it to visado as CheckRequest.attributes.source.certificate (URL-encoded PEM) when the ext_authz filter sets include_peer_certificate: true |
Rules:
- Envoy must terminate the client’s TLS itself, request a client certificate (
require_client_certificate: true), and validate it against the same CA. The handshake is what proves the client holds the private key; visado sees only the certificate.source.certificateis filled from Envoy’s own connection state, not from a request header, so a client cannot forge it. If something in front of Envoy terminates TLS, the field is empty (or describes the wrong peer) and mTLS must not be configured. visado never readsX-Forwarded-Client-Cert. - Only Envoy may reach visado’s gRPC port: certificates are public, so a client that could call ext_authz directly could put any workload’s certificate in the field. The gRPC port rules under Choosing the method enforce this for every configuration.
- The certificate must be one PEM block (no chain), issued directly by the one CA configured for the trust domain in its URI SAN, with an Ed25519 or P-256 CA key, within its validity window, with exactly one URI SAN, not a CA, and, if key usage is present, allowing signatures and not certificate or CRL signing. Chain building through intermediates, name constraints and revocation are not implemented. Without
[mtls]the certificate is ignored. - The certificate is used only when the request carries no
Workload-Identity-Tokenand noAuthorization. A user token header is denied (credential.unbound_user_token): nothing ties it to the certificate.
SPIFFE JWT-SVID
Section titled “SPIFFE JWT-SVID”| Item | Carried in |
|---|---|
| JWT-SVID | Authorization: Bearer <token> |
Rules:
algisRS256orES256;typ, if present, isJWTorJOSE;subis a SPIFFE ID;audis required and must contain one of[jwt_svid] audiences;expis required andnbfis checked when present.- The key comes from the JWT bundle configured for the trust domain in
sub: a SPIFFE bundle file whose keys withuse: jwt-svidare used, selected bykid(withoutkidonly if the bundle has one key). Keys are never fetched. The JWT bundle the SPIRE Workload API hands out has nouse, so visado refuses it at startup; write the bundle withspire-server bundle show -format spiffeinstead. - A JWT-SVID is a bearer token: it proves nothing about who sends it. The caller cannot present an AAT chain or forward a Transaction Token, and a user token header is denied.
| Item | Carried in |
|---|---|
| Bearer access token | Authorization: Bearer <access token>, when the caller has no WIT and the token is not a JWT-SVID |
| DPoP-bound access token | Authorization: DPoP <access token> |
| DPoP proof (RFC 9449) | DPoP header, exactly one |
The caller is the token’s client_id (or azp), and the user is its sub.
Rules for every access token, bearer or DPoP-bound, and for a user token:
- A JWKS key verifies a token only when its
use, if present, issig, itskey_ops, if present, includeverify, and itsalg, if present, is the token’salg(RFC 7517 §4.2-4.4). A token without akidverifies only when the set holds exactly one key in total, and that key passes these checks. - A delegation-chain token is not an access token: a token whose
typis an AAT type (aat+jwt,aat-pop+jwt), or that carriesdel_depth,del_max_depth,par_hash,status, an AAT proof claim (aat_id,aat_hash,aat_tool,aat_aud,hta) or anauthorization_detailsentry of typeagent_delegationorattenuating_agent_token(compared without case, after trimming spaces), is denied (token.delegation). Anauthorization_detailsthat is not an array (RFC 9396 §2) is denied (token.invalid). It is checked only on its chain path, which reads the status list, the depth, the parent hash and the constraints. - The server refuses to start when an
[aat]or[asor]trust anchor key, by RFC 7638 thumbprint, is also in an[[oauth_issuers]]JWKS, and when a JWKS key has no RFC 7638 thumbprint to compare. A Delegation Token is anat+jwtlike any access token, so a shared key would let it verify as one.
Rules for DPoP:
- The token must have
cnf.jktand no othercnfmember except Keycloak’skc-jkt-typewith the valueDPoP(Keycloak also bindsjktto client attestation keys, asABCA; that and any other value is denied astoken.sender_constrained), and it must equal the RFC 7638 thumbprint of the proof’sjwk. A token withcnf.jktsent asBearer, or as the user token next to a WPT or a signature, is denied (token.dpop_bound). - The proof’s
typisdpop+jwt, itsalgES256,EdDSAorEd25519, and itsjwka public key.htmmust be the request method andhtuthe request’sscheme://authority/path, both without query or fragment, compared after lowercasing scheme and host and dropping a default port.iatmay be at mostdpop_iat_window(default 60 s) behind now and at mostmax_proof_skew(default 5 s) ahead.athis required. Thejti(at most 256 bytes) is accepted once per proof key, and only once every check has passed (see Replay). - A failed proof is a 401 with
WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA Ed25519"(dpop.invalid, ordpop.replay). A token not bound to the proof key, a bound token sent asBearer, and any other token failure under theDPoPscheme senderror="invalid_token"(dpop.binding,token.dpop_bound, or the token’s own code). Other access token failures sendBearer, DPoP algs="ES256 EdDSA Ed25519". - With
[dpop] require_nonce = true, the proof must also carry anoncevisado issued (RFC 9449 §9). A proof that passes every other check but has nononce, one visado did not issue (another key, a changed byte, a malformed value, or an issue time more than 5 s ahead), or one older thannonce_lifetime(default 300 s, at most 3600 s) is a 401 withWWW-Authenticate: DPoP error="use_dpop_nonce", algs="ES256 EdDSA Ed25519"(dpop.nonce_missing,dpop.nonce_invalidordpop.nonce_expired). Itsjtiis not recorded, so the client can retry at once. - While nonces are required, every 401 carries one fresh
DPoP-Nonceheader andCache-Control: no-store, whatever failed, so a client gets a nonce at its first challenge. An allowed request that carried a DPoP proof gets the next nonce in aDPoP-Nonceresponse header (§8.2), through ext_authzresponse_headers_to_add; Envoy and agentgateway both apply it. visado does not addCache-Controlto an allowed response: the request carriedAuthorization, which a shared cache does not store without an explicit directive (RFC 9111 §3.5). A nonce may be used many times until it expires (RFC 9449 §11.1); replay of a whole proof is caught by itsjti. - A nonce is
base64url(version || issue time || tag), 34 characters, where the tag is the first 16 bytes of an HMAC-SHA256 over a context label, the version and the issue time. visado keeps no state per nonce.nonce_key_fileslists files holding a base64url key of at least 32 bytes; the first issues nonces and every one is accepted, so replicas that share the files accept each other’s nonces, and a key is rotated by putting a new file first and dropping the old one afternonce_lifetime. Without key files, visado makes a key at startup, which another replica or a restart does not accept, and logs a warning. A single replica recovers with oneuse_dpop_nonce401 after a restart. Several replicas behind a load balancer must sharenonce_key_files: with a key each, a client whose retry lands on another replica getsuse_dpop_nonceagain, possibly every time. - The PDP context and the Transaction Token
tctxname the methodoauth-dpop;req_wlisoauth-client:<client_id>, as for a bearer token. The gate removesAuthorizationandDPoPbefore the request goes upstream. - The proof key is the caller’s key for the request, so the client may present an AAT chain whose leaf it holds. It cannot present an asor chain (
chain.proof_conflict, 400): the asor leaf proof would need the sameDPoPheader.
RFC 8693 act
Section titled “RFC 8693 act”| Item | Carried in |
|---|---|
| Chain | The act claim of the user token next to a WIT (bound through the WPT oth or the HTTP signature), or of a DPoP-bound access token. An mTLS caller cannot send a user token, so it cannot present one |
Rules:
- The token is verified as any access token first (issuer, key, audience, lifetime). The
actclaim is then read as a chain: the principal is the token’ssub, the current actor is the outermostact, and each nestedactis a prior actor, the most deeply nested the least recent. Everyactmust be a JSON object with a non-empty stringsuband, if present, a non-empty stringiss; otherwiseact.not_object,act.missing_suboract.bad_issuer. More thanmax_actorsactors (default 8) isact.too_deep. Other members of anact, such asexporaud, are ignored, as RFC 8693 §4.1 says. - As for AAT and asor, only a caller that proved possession of a key for the request may present a chain. A bearer token with an
actclaim is denied (chain.unbound_caller): nothing shows that the actor it names is the party sending it. - The current actor must be the caller: its
sub, as the token writes it, must equal the caller identifier (the WITsub, or theclient_idof a DPoP client), or, when[act.actors]maps thatsub, the caller it is mapped to. Otherwiseact.actor_mismatch. The issuer’ssubject_prefixapplies to the token’ssubandclient_id, not toact.sub. The actor’sissis recorded but not compared, since the token’s issuer vouches for the whole claim. Prior actors are never compared with anything. - RFC 8693 §4.1 says prior actors are “informational only and are not to be considered in access control decisions”. The PDP therefore gets only the current actor:
context.chainhasprofile(rfc8693-act),issuer,principal,actor({iss, sub}) andcaller_kind, the kind of caller the actor was bound to (workload, orclientfor a DPoP client). The Transaction Token’stctx.chain(ortctx.chain:<caller>on a replacement) addsprior_actors, least recent first, anddepth. - RFC 8693 gives no actor an authority of its own, so visado does not narrow anything by the chain: what the token grants is its
scope, as for any access token. - An access token with an
actclaim next to anAAT-ChainorAgent-Delegation-Chainheader ischain.ambiguous. Without[act], a token with anactclaim is denied (chain.unsupported) rather than read as the subject’s own token. [act]takesrequired(no default; a token with anactclaim satisfies it, as either other chain format does),max_actors(1 to 32) and the[act.actors]table. Themay_actclaim is not read.- The audit detail of an
act.actor_mismatchnames the actor and the caller, never the token.
| Item | Carried in |
|---|---|
| Chain | AAT-Chain header: the tokens in compact serialization, root first, separated by , |
| Proof of possession | AAT-PoP header |
| Tool and arguments, MCP | The JSON-RPC body of a tools/call request: params.name is the tool, params.arguments the arguments, read as the exact JSON text received |
| GET, HEAD, DELETE or OPTIONS with no body and no query string | Tool <METHOD> <path>, arguments {} |
Rules:
- A comma cannot appear in a compact JWS, so a proxy that joins repeated headers with commas does not change the meaning of
AAT-Chain. - The leaf token’s
cnfkey must be the key the caller proved possession of for this request: the WIT’scnfkey with a WPT or an HTTP signature, or the certificate’s key over mTLS (Ed25519 or P-256 only). That workload is then the holder the chain was delegated to. An OAuth client with a DPoP-bound token holds its DPoP proof key. A bearer caller (a bearer access token or a JWT-SVID) has no such key and is denied (chain.unbound_caller). A missingAAT-PoPis a 401 (chain.missing_pop), and a leaf held by another key ischain.holder_mismatch. - Anything else is denied rather than guessed (
chain.bad_invocation, 400): a JSON-RPC batch, any other JSON-RPC method, a body that is not JSON or not UTF-8, a malformedtools/call, a query string, or a missing body on POST, PUT or PATCH. [aat]must setrequiredexplicitly. Withrequired = falsea request withoutAAT-Chainskips every chain check, and the server logs a warning at startup; withrequired = truesuch a request is denied (chain.required). Without[aat], a request withAAT-Chainis denied (chain.unsupported).- What a verified chain does: the gate denies the call unless the chain permits this tool with these arguments. It does not narrow the minted Transaction Token’s
scope, which comes from the user token ordefault_scope, because AAT tool grants and OAuth scopes are different vocabularies. The chain goes to the PDP ascontext.chainand into the token: astctx.chainwhen the gate mints a new token, or, when the caller forwards a Transaction Token, as a new membertctx.chain:<caller>in a replacement token (scope,txn,subandaudunchanged, lifetime not extended). A downstream service that needs the delegated limits must read these members. Within one transaction a caller can record one chain: forwarding the same transaction again with a different chain is denied, sincetctxmembers never change. - By default the chain must name this enforcement point in
audand the proof must carryaat_aud. - The PoP
iatmay be at most 30 s behind now (the draft’s window) and at mostmax_proof_skew(default 5 s) ahead. The draft’s window is symmetric; visado is stricter about the future, so that a PoP cannot hold its replay entry longer than about 35 s. - Reading MCP arguments needs the request body. In Envoy, set
with_request_bodyon the ext_authz filter. The body must be whole: a partial-body header (x-envoy-auth-partial-body) with any value butfalse, or aContent-Lengththat is not the length of the body received, is denied (chain.partial_body), since padding could push a second JSON-RPC message past the cut. This holds whether or not a chain is required, and for asor too.
| Item | Carried in |
|---|---|
| Chain | Agent-Delegation-Chain header: the Delegation Tokens in compact serialization, root first, separated by , |
| Proof of possession | DPoP header (RFC 9449): a proof by the leaf cnf.jkt key over the request method and URI, with ath over the leaf token |
| Action | The JSON-RPC body of a tools/call request, read as for AAT: params.name is the action’s scope, params.arguments its parameters |
Rules:
- The chain format is chosen by the header, not by the token
typ: asor tokens are plain RFC 9068 access tokens (at+jwt), sotypcannot tell them from other access tokens. A request that carries bothAAT-ChainandAgent-Delegation-Chainis denied (chain.ambiguous). - Only a caller that proved possession of a key for the request may present a chain: a WIT caller, or an mTLS caller with an Ed25519 or P-256 certificate key. The leaf
cnf.jktmust be the thumbprint of that key, so the DPoP proof is made with it. Without[asor], a request withAgent-Delegation-Chainis denied (chain.unsupported). A bearer-only caller is denied (chain.unbound_caller), an OAuth client authenticated with DPoP is denied because itsDPoPheader already proves its access token (chain.proof_conflict), a missingDPoPheader is a 401 (chain.missing_pop), and a leaf held by another key ischain.holder_mismatch. - The DPoP
htuis compared withscheme://authority/pathof the request, both without query or fragment and normalized as for DPoP-bound access tokens.athis required, since a Delegation Token is an access token (RFC 9449 §4.2).iatmay be at most 60 s behind now and at mostmax_proof_skew(default 5 s) ahead, and a proofjtiis accepted once per proof key (see Replay). - With
[dpop] require_nonce = true, the leaf proof needs visado’s nonce as well. A library user can instead set nonces on the asor verifier alone (Verifier::with_dpop_nonces); the gate keeps them and hands them out. Step 6 asks for a valid RFC 9449 proof, and RFC 9449 §4.3 item 10 and §11.3 make the server’s nonce part of a valid proof once the server provides one; the enforcement point is the resource server of §9. A leaf proof refused only for its nonce is a 401 withWWW-Authenticate: DPoP error="use_dpop_nonce", algs="Ed25519 ES256"(the algorithms a leaf proof may use) and thedpop.nonce_*code, with a freshDPoP-Nonce, instead ofasor.holder_binding_failed, so the holder knows to retry. An allowed request with a leaf proof gets the next nonce, as for a DPoP-bound access token. - The tool name is the action’s scope and is matched with the draft’s covering relation (§4.1), so a tool name is usually an opaque scope matched exactly, or a dotted literal such as
crm.readthat a wildcard can cover. A per-action constraint reads the argument named by itskey; an absent argument fails the constraint (asor.ceiling_exceeded). A body-less GET, HEAD, DELETE or OPTIONS request has the tool<METHOD> <path>, which is never a valid scope, so it is denied (asor.scope_not_granted). - The gate holds no running totals, so a leaf with a
max_lifetimeormax_subtreeconstraint denies every call (asor.ceiling_exceeded), and a leaf with a constraint type visado does not implement denies every call (asor.unknown_constraint). - Step 7: a token’s
status.status_listreference (draft-ietf-oauth-status-list-21) is looked up in a Status List Token the gate already holds.INVALIDandSUSPENDEDentries deny the whole chain (asor.revoked). The status is unknown, which denies (asor.status_unknown), when theuriis not a configured list, the list could not be fetched or did not verify, the list has passed itsexp, the list is older than itsttlormax_agesince it was fetched, the index is past the end of the list, the value is notVALID,INVALIDorSUSPENDED, orstatusnames another mechanism. Astatusclaim of the wrong shape (for example a negativeidx) isasor.malformed. Without[asor.status], a token with astatusclaim is denied (asor.status_unknown). A token without one is not checked. [asor.status]lists the Status List Tokens (lists, each auriand optionally afile) and the keys that sign them (trust_anchors, as for[aat]; a list withissmust name the key’s issuer). The gate never fetches a URI taken from a token. A list with afileis read and verified at startup, and the server refuses to start if it does not verify; a list without one is fetched withGET uri(Accept: application/statuslist+jwt; the response must be 2xx of that type and at most 1 MiB; redirects are not followed), and itsurimust behttpsor loopback. Every list is read or fetched again everyrefreshseconds (default 60), sooner when the held list would go stale first, withtimeout_msper fetch (default 2000). A failed refresh, or a list issued before the one held, keeps the held list, which is trusted until itsttlormax_age(default 300 s, at most a day) runs out after it was fetched. A list withoutexpis also stalemax_ageafter itsiat, so the issuer must sign a new one at least that often, and a list whoseiatis more than 60 s ahead of the clock is refused. That is the window in which a revoked token can still be honored (draft §9.5).[asor]takesaudiences,trust_anchors(as for[aat]),required, which has no default, and the optional[asor.status]. A request without a chain is denied when the chain formats setrequired = true; a chain of any configured format satisfies it. Every configured format among[aat],[asor]and[act]must set the same value, or the server refuses to start.- A verified chain goes to the PDP and the Transaction Token as for AAT, with the Principal (
sub) added asprincipal.
Replay
Section titled “Replay”Every accepted proof is remembered for as long as it could be accepted, so a copy of it is refused.
- There is one bounded in-memory cache per proof type: WPT
jti, HTTP signaturenonce, DPoPjtifor an access token, AAT PoPjtiand asor leaf proofjti. A flood of one type cannot refuse proofs of another. - Each cache holds at most
replay_capacitylive entries (default 100000, about 150 bytes each). When one is full, new proofs of its type are refused with a 503 (wpt.replay_cache_fullfor a credential’s proof,chain.replay_cache_fullfor a chain’s). - A chain’s proof
jtiis recorded only after the chain is found to be the caller’s (its leaf holds the key the caller proved) and the invariant engine agrees, so someone with a copy of a chain and its proof, but not the key, cannot use up the holder’sjti. A replayed chain proof keeps its format’s code (aat.pop_replayed,asor.holder_binding_failed); a full chain proof cache is a 503 (chain.replay_cache_full) and a holder key past its quota a 429 (chain.replay_quota). - Quotas apply only under pressure: while fewer than half of a cache’s entries are live, any caller records freely. From half full on, a caller that already holds its quota is refused with a 429 (
credential.replay_quota) while other callers still have room. - The quota is
replay_key_quotaper caller in each cache (default a 64th ofreplay_capacity, at most 5000; set at mostreplay_capacity): a workload by WITsubfor WPTs and signatures, a key by thumbprint for DPoP proofs, and the leaf holder key for AAT and asor proofs. On top of that, one OAuth client (issuer andclient_id) holds at mostreplay_client_quotaDPoP entries across all its keys (default a 32nd ofreplay_capacity, at most 10000), so a client with many bound keys gets no more. - So one caller can take at most half a cache, and every other caller at most its quota of the rest: with the defaults, filling a cache takes at least 33 workloads or keys, or 17 clients.
- Under pressure, the default quota holds one workload to about 17 WPTs a second (1562 entries of up to 91 s) and one DPoP key to about 24 proofs a second. Raise
replay_capacityso that normal traffic stays below half of it, andreplay_key_quotafor callers that must keep their rate during a flood. - An entry lives as long as its proof could be accepted, counted from the proof’s own time, which is at most
max_proof_skew(default 5 s, at most 60) ahead of the clock:- a WPT
jtiuntilexpplus the clock leeway;expis at mostmax_wpt_lifetimeafter now, so at most 90 s with the defaults; - a signature
nonceuntilexpiresplus the leeway;expiresis at mostmax_signature_lifetimeaftercreated, so at most 95 s; - a DPoP
jtiuntiliatplusdpop_iat_window, so at most 65 s; - an AAT PoP
jtiuntiliatplus 30 s, so at most 35 s, and an asor leaf proofjtiuntiliatplus 60 s, so at most 65 s.
- a WPT
- Size the cache for the peak rate of each proof type times the time an entry lives, and the quota for the busiest single caller’s rate times the same.
- The caches live in the process. Replicas do not share them, so a proof can be replayed once at each replica.
Invariant engine
Section titled “Invariant engine”- After its format’s checks pass, every chain (AAT, asor or
act) goes through the format-neutral invariant engine with the authority algebras of the configured formats. The engine is a second pass: it must agree with the format, and a chain it refuses is denied with a 403 and one ofchain.malformed,chain.link_mismatch,chain.principal_altered,chain.exp_extended,chain.depth_exceeded,chain.audience_widened,chain.token_repeated,chain.unverified,chain.unknown_authority,chain.scope_escalation,chain.status_unchecked,chain.no_holder_prooforchain.action_denied. The audit detail names the invariant and the hop. - For AAT and asor the action is the invoked tool and its arguments; an
actchain is asked no action, since its actors hold no authority. - It is stricter than the drafts in two places (see
SPEC-MAP.md): a hop’saudmust stay within its parent’s, and the chain has at most 32 hops. - The audit record of an accepted chain carries
depth_semantics: howdel_max_depthwas read (aat-holder-cap,asor-strict, oruncappedforact).
Reason codes
Section titled “Reason codes”A denial answers with the HTTP status below and {"error": "<code>"} (an RFC 9457 problem document for httpsig.invalid). The same code is the audit event’s reason, the span’s visado.reason and the chain view’s code, except for request.no_http_attributes, request.invalid_header and internal.clock, which the gRPC service returns before the pipeline runs: they have an audit record and a chain view entry, with what is known of the request, but no span. Checks run in the order of the design and stop at the first failure.
| Status | Codes | From |
|---|---|---|
| 400 | request.no_http_attributes, request.no_scheme, request.unnormalized_path, request.invalid_header |
The request target and header values |
| 403 | request.unknown_authority |
The request target |
| 401 | credential.missing, credential.ambiguous, credential.repeated_header, credential.too_large, credential.unbound_user_token |
Method selection |
| 429 | credential.replay_quota |
A caller over its quota in the WPT, signature or DPoP replay cache (Replay) |
| 401 | wit.invalid, wit.untrusted_domain, wpt.missing, wpt.invalid, wpt.replay |
WIT with WPT |
| 503 | wpt.replay_cache_full |
A full WPT, signature or DPoP replay cache |
| 400 | httpsig.invalid |
HTTP message signatures |
| 401 | mtls.invalid, mtls.untrusted_domain |
mTLS |
| 401 | jwt_svid.invalid, jwt_svid.untrusted_domain |
JWT-SVID |
| 401 | token.invalid, token.expired, token.untrusted_issuer, token.no_client, token.sender_constrained, token.dpop_bound, token.delegation |
OAuth access tokens |
| 401 | dpop.invalid, dpop.replay, dpop.binding, dpop.nonce_missing, dpop.nonce_invalid, dpop.nonce_expired |
DPoP proofs, for an access token or an asor leaf |
| 400 | chain.ambiguous, chain.bad_invocation, chain.partial_body, chain.proof_conflict |
Chain selection |
| 401 | chain.missing_pop |
Chain selection |
| 403 | chain.required, chain.unsupported, chain.unbound_caller, chain.holder_mismatch |
Chain selection |
| 429 | chain.replay_quota |
A holder key over its quota in the AAT or asor proof replay cache |
| 503 | chain.replay_cache_full |
A full AAT or asor proof replay cache |
| 403 | aat.*, asor.* (the outcome names of the draft’s Table 2), act.* |
The chain format |
| 403 | chain.malformed, chain.link_mismatch, chain.principal_altered, chain.exp_extended, chain.depth_exceeded, chain.audience_widened, chain.token_repeated, chain.unverified, chain.unknown_authority, chain.scope_escalation, chain.status_unchecked, chain.no_holder_proof, chain.action_denied |
The invariant engine |
| 403 | txn.untrusted_hop, and txn.* from verifying a forwarded token or minting its replacement |
Transaction Tokens |
| 403 | chain.principal_mismatch, token.no_scope |
Principal and scope |
| 401 | ssf.session_revoked, ssf.credential_changed |
A Shared Signal revoked the user token’s session or credential after it was issued |
| 403 | ssf.account_disabled |
A Shared Signal disabled or purged the account |
| 503 | ssf.stream_stale, ssf.store_full |
A Shared Signals stream for the token’s issuer is stale, or the revocation store dropped a revocation |
| 403 | pdp.deny, pdp.unavailable, pdp.status, pdp.invalid_response, pdp.request_id_mismatch |
The PDP |
| 500 | internal.clock, internal.act |
visado itself |
| 401 | internal |
visado itself: the clock out of range while checking a DPoP proof |
© 2026 The visado Authors. Licensed under Apache-2.0.
Third-party logos are trademarks of their respective owners and are used to show compatibility; their use does not imply endorsement.