View as Markdown

OAID-3 — Passport: Format, Issuance, Renewal, Revocation#

Version 0.2.3-draft · Part of the AllowedBy specification set

1. Purpose#

A passport answers "who is acting". It binds a runtime's public key to its operator, runtime identity, model attributes, custody tier and attestation level, under the signature of an issuing node. It is short-lived, renewable by machine, and says nothing about rights. Rights are grants (ABY-1).

2. Format#

JWS, typ: oaid-passport+jwt, signed by a node key with role issue.

{
  "v": 1,
  "iss": "node.example.org",
  "iat": 1761480000,
  "nbf": 1761480000,
  "exp": 1761566400,
  "jti": "01JB3KA0…",
  "pid": "01JB3KA0…",
  "sub": "did:oaid:node.example.org:01JB3KA0…",
  "operator": { "id": "acme.example", "verified": "dns-txt", "name": "Acme SAS" },
  "runtime": { "id": "acme.example/assistant", "version": "4.2.0" },
  "model": [ { "vendor": "vendor.example", "family": "model-family", "version": "2026-09" } ],
  "key": { "kty": "EC", "crv": "P-256", "kid": "T7uQ…", "x": "…", "y": "…" },
  "custody": { "tier": 1, "attestation": "tpm2", "attested_at": 1761479990, "valid_until": 1762084790 },
  "status": { "status_list": { "idx": 184233, "uri": "https://node.example.org/oaid/v1/status" } },
  "log": { "idx": 184233 },
  "prev": "01JB3K9Z…"
}
Member Required Meaning
pid yes Passport id (ULID), equals jti
sub yes Agent URI (OAID-1 §2.4)
operator.id yes Operator id; verified is one of dns-txt, https-well-known, none
operator.name no Display name, informational, never used for decisions
runtime.id yes Runtime id (OAID-1 §2.3)
runtime.version no Free string
model no Array; each item has vendor, family, optional version. Informational. A runtime MAY omit or list several.
key yes Public JWK of the runtime: Ed25519 (kty: OKP, crv: Ed25519) or ES256 (kty: EC, crv: P-256). Any other key type MUST be refused. kid MUST be its RFC 7638 thumbprint.
custody.tier yes 0, 1 or 2 (OAID-6)
custody.attestation yes Attestation type from the node's policy list; none allowed only for tier 0
custody.valid_until no End of the attestation's validity as graded by the node (OAID-6 §3). Absent for none. Grants bound to this passport set actor.exp to the earlier of exp and valid_until (ABY-1).
status yes Position in the node's status list (§7)
log yes idx: leaf index assigned in the issuing transaction (OAID-4)
prev no pid of the passport this one renews (§6). Set only by the node.

Lifetime: exp - nbf MUST NOT exceed the node's passport_max_ttl for the tier, and MUST NOT exceed 3600 seconds for tier 0 and 86400 seconds for tiers 1 and 2 regardless of node policy.

3. Key requirements#

  • Tier 0: a fresh key per passport. Reuse across passports MUST be refused by the node.
  • Tier 1 and 2: the key MAY persist across renewals (prev chain) as long as the attestation remains valid.
  • The private key MUST NOT be exportable from its custody boundary (OAID-6). The node cannot verify this directly; it relies on attestation and on policy.

4. Issuance#

POST {passports} with body:

{
  "v": 1,
  "operator": { "id": "acme.example" },
  "operator_proof": "<JWS typ oaid-operator-proof+jwt>",
  "runtime": { "id": "acme.example/assistant", "version": "4.2.0" },
  "model": [ { "vendor": "vendor.example", "family": "model-family" } ],
  "key": { "kty": "EC", "crv": "P-256", "kid": "T7uQ…", "x": "…", "y": "…" },
  "custody": { "tier": 1, "attestation": "tpm2", "evidence": { "…": "OAID-6 §3" } },
  "requested_ttl": 86400
}

The request MUST carry an AllowedBy-Proof (ABY-2 §3) signed with the private key matching key. This is the proof of possession. Its jti MUST be a node-issued nonce obtained from GET {passports}/nonce (returns { "nonce": "…", "exp": … }, valid 120 seconds), and its dth hashes the RFC 8785 form of the body's key member.

The node MUST:

  1. Verify the proof with the key in the body.
  2. Verify the nonce is fresh and unused.
  3. Verify the operator binding (OAID-2 §6) and that the requester holds an operator key: for a domain-shaped id the body MUST carry operator_proof, a JWS typ: oaid-operator-proof+jwt over { "iss": <operator id>, "kid": <thumbprint of key>, "nonce": <the proof's jti>, "iat" } (iat within 120 s), signed by a key of the operator's JWK set. A domain that lists the node proves only that the operator uses it; without operator_proof anyone could claim that domain. If it cannot, the operator id MUST be node-scoped (OAID-1 §2.2) and verified: none; a domain-shaped id without a verified binding is refused. A node MAY refuse unverified operators by policy.
  4. Verify attestation evidence according to the claimed tier (OAID-6). If the evidence does not support the claimed tier, respond attestation_insufficient with the tier it would accept.
  5. Check key uniqueness for tier 0.
  6. Assign pid, status.status_list.idx and log.idx; set nbf = now, exp = min(now + requested_ttl, policy max).
  7. Sign, append to the log at the promised index, and return the passport.

Errors: a key that is not Ed25519 or P-256, or whose kid is not its thumbprint, an unverified domain operator id, and a reused tier 0 key are 400 invalid_request; a failed proof, dth, or an unknown, used or expired nonce are 401 invalid_signature; evidence problems are 400 attestation_insufficient.

Issuance never sets prev. A passport obtained through POST {passports} starts a new chain.

Response: 201 with application/jwt.

5. Presentation#

A runtime presents its passport as the Allowed-By value (ABY-2 §2) only on requests that need no grant: identity-only calls, node API calls, and the first request of a challenge flow (ABY-2 §2). On requests under a grant the passport is not sent; the node has copied its identity facts into the grant's actor member (ABY-1 §2.1). The passport is public; it contains no secret.

Web Bot Auth. A node publishes the public key of every unexpired, unrevoked passport it issued in a Web Bot Auth key directory at https://<node>/.well-known/http-message-signatures-directory (a JWKS, keys identified by thumbprint kid). Keys are removed from the directory when the passport expires or is revoked. A runtime using the RFC 9421 profile (ABY-2) sends Signature-Agent pointing to that directory and tag="web-bot-auth", so Web-Bot-Auth-aware edges recognise it without the SDK.

6. Renewal#

POST {passports}/{pid}/renew, signed with the passport's key, body { "requested_ttl": … , "custody": { "evidence": … } }. Evidence is REQUIRED when attested_at is more than 7 days old (else attestation_insufficient) and MAY be required on every renewal by node policy. A renewal without evidence copies custody unchanged, including attested_at and valid_until. The node issues a new passport with a new pid and sub, the same key, and prev = pid of the renewed passport. The old passport remains valid until its exp.

Only tiers 1 and 2 renew. A tier 0 passport is never renewed: a tier 0 runtime that needs a new passport obtains one with a fresh key (§4).

The prev chain is what rebind relies on (ABY-1): a grant revision may move to a new passport without an operator signature only if the new passport reaches the bound passport through prev. A tier 0 restart therefore always needs the operator signature to rebind; an operator without a verified domain cannot rebind and requests new approvals.

A runtime SHOULD renew when less than one third of the lifetime remains.

7. Revocation and status#

Revocation reasons: key_compromise, operator_request, runtime_retired, attestation_withdrawn, node_policy, redacted (withdrawn for erasure, OAID-1 §10).

  • POST {passports}/{pid}/revoke by the runtime key or an operator key. Body { "reason": "…" }.
  • The node appends an aby-revoke+jwt entry to the log, flips the passport's bit, and flips the bit of every grant revision whose actor.sub is this passport. Revisions bound to other passports are not affected.
  • Revocation by key. With reason: key_compromise the node also flips the bit of every passport whose key.kid is that key and of every grant revision whose actor.key.kid is that key, and removes the key from the key directory (§5).

Status list. Format: IETF OAuth Token Status List (typ: statuslist+jwt, bits: 1, compressed), signed by the node, one or more lists per node, sub = the list URI. Every passport and grant revision carries its position:

"status": { "status_list": { "idx": 184233, "uri": "https://node.example.org/oaid/v1/status" } }

Values: 0 valid, 1 revoked. There is no other value; revocation is final.

Nodes regenerate each list at least every 30 seconds and serve it with Cache-Control: max-age=30. Verifiers MUST refresh the list at least every 300 seconds for read and write, and at least every 60 seconds for write-hard and irreversible. For read and write a stale list may be used for up to 3600 seconds; older, the verifier MUST fail closed with status_stale. For write-hard and irreversible a list older than 60 seconds MUST fail closed with status_stale. The status bit is never cached together with a signature-verification result.

8. Verification of a passport by a service#

  1. Parse the JWS; typ MUST be oaid-passport+jwt.
  2. Resolve iss through the trust list (OAID-5). Obtain the node key with kid from the cached node statement. The key MUST carry role issue.
  3. Verify the signature.
  4. Check nbf <= now + 60 and exp > now - 60.
  5. Check key is Ed25519 or ES256.
  6. Check custody.tier and custody.attestation against the trust list's minimums for the capability class being exercised.
  7. Check the status bit with a list fresh enough for the class (§7).
  8. The passport's key is now the key expected to have signed the proof (ABY-2 §4).

9. Security considerations#

  • A passport without a proof proves nothing; it is public. Services MUST NOT treat the header alone as authentication.
  • operator.name and model are self-declared by the runtime and only bound by the operator's domain verification. Services MUST NOT make authorization decisions on model.
  • Short lifetimes are the primary revocation mechanism. The status list covers the gap. Revocation latency is at most 360 s for read/write and 90 s for write-hard/irreversible; if status fetches are blocked, at most 1 h for read/write, after which verifiers fail closed.

Change log#

Every change to this document adds a row here and increments its version (README, Versioning).

Version Date Change
0.2.3-draft 2026-11-08 A domain operator id needs operator_proof, a signature by the operator's key over the new key and the nonce (CHANGES §23).
0.2.2-draft 2026-10-27 Issuance error codes named; renewal evidence rule (7 days) and custody carry-over (CHANGES §16).
0.2.1-draft 2026-10-27 Issuance proof with node nonce and dth over the key; revocation by key; status-list freshness per class (CHANGES §15).
0.2.0-draft 2026-10-27 actor.exp bound to passport and attestation validity; tier 0 never renews (CHANGES §7).