Operational Guidance
This document is non-normative. It points operators at the normative rules
that govern running AITP in production and at the sibling-repository docs
that explain the mechanics. The authoritative protocol is in the RFCs under
rfcs/; how to configure and deploy a specific
implementation is owned by that implementation's repository (see
ecosystem.md). Where this page states a rule or a default
value, the RFC or schema it comes from is cited next to it — if the two ever
disagree, the RFC wins.
Handshake renewal
TCTs expire per their exp claim. In v0.3 core there is no in-band
renewal message: a peer that needs a continuing trust relationship runs a
fresh Mutual Handshake before expiry, and agents MUST NOT use an expired peer
TCT (RFC-AITP-0004 §8).
Every TCT is therefore issued only after a fresh proof-of-possession exchange,
and renewal re-verifies identity at expiry
(RFC-AITP-0004 §12).
Operational pattern:
- Track each held peer TCT's
expand start the renewing handshake early enough that it completes beforeexpon your slowest path. How much lead time that is depends on your links; the RFCs set no value. - On success, replace the old TCT (and its companion grant voucher, if any) with the new one. On failure, stop using the old TCT once it expires; a new handshake is required.
- If the peer rotated its key in the meantime, its inline Manifest carries a
newer
published_at; accept it if it verifies and discard the cached copy (RFC-AITP-0004 §11.3).
Shortened renewal (opt-in, not part of v0.3 conformance)
RFC-AITP-0013 (Draft) specifies a renewal endpoint as an opt-in extension. The points an operator needs:
- It is gated behind an explicit opt-in and advertised through the Manifest
extension key
rfc-aitp-0005.renew_uri(registry). Peers that do not find the key renew with a full Mutual Handshake and do not probe a guessed path (RFC-AITP-0013 §2). - The current TCT must still be unexpired, and the issuer re-runs revocation, the Manifest bound and its grant policy on every request. Renewal is not a bypass for revocation, Manifest rotation or trust-anchor changes (RFC-AITP-0013 §4).
- The issuer keeps a store of accepted renewal nonces, retained until the
current TCT's
expand shared across replicas (RFC-AITP-0013 §5). - If the issuer cannot read its own deny list or its nonce store, it refuses
with
RENEWAL_UNAVAILABLE(retryable, HTTP503) and does not mint; it does not answerTCT_REVOKED. Alert on it as an outage. Holders retry with backoff and a freshpop_nonce, and fall back to a full handshake before the current TCT expires (RFC-AITP-0013 §4). - The response is a fresh TCT with a new
jtiin a signedtctenvelope, accompanied per issuer policy by a freshly minted grant voucher; vouchers bound to the old TCT'sjtido not carry over to the renewed token (RFC-AITP-0013 §7). - Core conformance does not require it; its
ren-*fixtures run only under theexperimental-renewalfeature flag.
How the reference implementation exposes it (wire format, issuer-side
algorithm, SDK calls, known limitations):
aitp-rs docs/tct-renewal.md.
Manifest and key rotation
- Rotate the Manifest on a schedule proportional to its lifetime — the recommended schedule is the table in RFC-AITP-0003 §8. When the signing key changes, the Manifest MUST be re-signed immediately.
- On key compromise, the steps in RFC-AITP-0003 §8.1 are normative (new key and AID, revoke every TCT issued under the old AID, notify peers out of band).
- A Manifest MUST be republished whenever the runtime
trust_anchorsconfiguration changes, and operators SHOULD check the two agree at build or deploy time (RFC-AITP-0003 §5.1). - Signing keys SHOULD be rotated on a schedule; the recommended interval is 90 days (RFC-AITP-0009 §3).
Storing seeds and performing a rotation with the reference implementation: aitp-rs key management — Rotation.
Spec-owned defaults
These are the values the RFCs and schemas themselves set. Implementation- specific knobs (replay-store backends, session routing, connection limits) are documented by the implementation — for aitp-rs see deployment and the transport hardening register.
| Setting | Default | Source |
|---|---|---|
| Envelope timestamp tolerance | 300 s, configurable | RFC-AITP-0001 §5.5 |
message_id deny-list retention | at least the timestamp tolerance window (shrinking it below the window breaks replay protection) | RFC-AITP-0001 §5.5 |
| Handshake transient state (nonces, inline Manifest, unconfirmed TCT/voucher) | at most the timestamp tolerance window, or until the handshake completes or fails | RFC-AITP-0004 §7 |
Identity-issuer key cache TTL (key_resolution.cache_ttl_secs) | 3600 s, configurable; expired entries MUST NOT be used unless offline_mode is on | RFC-AITP-0007 §2.1; aitp-trust-anchors.schema.json |
| Peer Manifest cache | never beyond the Manifest's expires_at | RFC-AITP-0007 §5; RFC-AITP-0003 §8 |
key_resolution.fail_mode | fail_closed | RFC-AITP-0007 §3; schema key_resolution.fail_mode.default |
revocation_policy.mode | fail_closed | RFC-AITP-0008 §3.1; schema revocation_policy.mode.default |
revocation_policy.max_staleness_secs | 300 s | RFC-AITP-0008 §3; schema revocation_policy.max_staleness_secs.default in aitp-trust-anchors.schema.json |
Re-verification of long-lived peer TCTs against the issuer's ListRevoked | every 5 minutes (RECOMMENDED for sessions longer than 1 hour) | RFC-AITP-0008 §4; RFC-AITP-0009 §3 |
Failure modes
Key resolution and revocation lookup are configured independently
(key_resolution.fail_mode vs revocation_policy.mode; RFC-AITP-0007 §3).
Both default to fail_closed, and an agent MUST NOT downgrade key_resolution.fail_mode
based on transient errors — the configured mode is the policy
(RFC-AITP-0007 §5).
Identity-issuer key resolution (key_resolution.fail_mode)
Applies when no key for an identity issuer can be obtained from cache, pinned configuration or the well-known endpoint (RFC-AITP-0007 §3).
| Mode | Behaviour | Source |
|---|---|---|
fail_closed (default) | Reject with KEY_RESOLUTION_FAILED. | RFC-AITP-0007 §3 |
soft_fail | Allow with grants restricted to a deployment-configured safe subset — but only after the identity has been verified against a cached still-valid key, a pinned key, or a deployment-local trust context. With no configured safe subset, or no such trust basis, it MUST behave as fail_closed. | RFC-AITP-0007 §3.1, §3.2 |
fail_open | Suppresses the network error only when a cached still-valid or pinned issuer key already exists; it never bypasses the signature check, which still runs and fails if there is no such key. MUST NOT be offered as a production default; appropriate for deployments with pinned issuer keys where network failures should not block handshakes. | RFC-AITP-0007 §3.3 |
For peer Manifest key resolution every mode behaves as fail_closed:
without a verified Manifest the handshake fails (RFC-AITP-0007 §3.2).
Air-gapped deployments MUST set offline_mode: true, which skips
well-known fetches and consults only cache and pinned keys
(RFC-AITP-0007 §4) —
offline mode is a separate setting, not a fail mode.
Revocation lookup (revocation_policy.mode)
Applies when no fresh revocation snapshot is available — the issuer's
ListRevoked endpoint is unreachable and the cached snapshot is older than
max_staleness_secs
(RFC-AITP-0008 §3.2) —
and when the snapshot obtained was discarded because it failed verification.
A discarded snapshot counts as absent; it never means that no revocation check
is needed
(RFC-AITP-0008 §1.5).
| Mode | Behaviour | Pinned by | Source |
|---|---|---|---|
fail_closed (default) | An absent, stale or discarded snapshot means revocation status is unknown, treated as revoked: reject the TCT with TCT_REVOKED (not a snapshot error code). | rev-001, tct-022, tct-024 (no source, default mode) | RFC-AITP-0008 §3.1 |
soft_fail | Allow with grants restricted to read-only or a configured safe subset; the degraded state MUST be logged. | rev-002 | RFC-AITP-0008 §3.1 |
fail_open | Allow and log a warning; grants are not narrowed. For read-only, non-sensitive operations; MUST NOT be the default for high-value operations. | rev-009, tct-023, tct-025 | RFC-AITP-0008 §3.1, §5 |
Whatever the mode, network revocation lookups (fetching ListRevoked, DNS
resolution of issuer endpoints, writes to a shared revocation cache) MUST
wait until the token's signatures have verified; only a purely local,
side-effect-free deny-list check may run earlier
(RFC-AITP-0008 §3.3,
fixture rev-004).
Centralised revocation management
Non-normative. A revocation snapshot is valid only for tokens its signer
issued. A verifier MUST discard a snapshot whose signed issuer is not the
issuer of the token being checked
(RFC-AITP-0008 §1.5).
aitp/0.3 has no third-party revocation authority. A registry or control
plane that signs one combined list with its own key does not revoke anything:
every verifier discards that list for every other issuer's tokens, and under
fail_closed it then rejects them all (fixture rev-011). The rule exists so
that a compromised registry cannot un-revoke or mass-revoke tokens it never
issued.
To manage revocation from one place, make the registry a relay:
- An operator records the revocation at the registry. The record names the
token's
jtiand its issuer (iss). - The registry relays the entry to that issuer, or the issuer fetches its own entries from the registry.
- The issuer adds the
jtito its own deny list, then signs and serves its ownListRevokedsnapshot at the URL its Manifest advertises (RFC-AITP-0008 §1.4). - Verifiers poll each issuer, as for any other deployment. They never consult the registry.
Points to get right:
- The registry is a record of intent, not an authority. Its audit trail
says who asked for what and when. Whether a token is revoked is what its
issuer's signed list says. A revocation is in force once the issuer
publishes it, and verifiers see it at their next poll, within
max_staleness_secs(§3.2). - Every issuer publishes a list. Every peer that issues TCTs MUST serve
ListRevoked(RFC-AITP-0008 §1.4), and MUST sign it even when it is empty (§1.5). An issuer with no list has no revocation source, and under the defaultfail_closedevery verifier rejects its TCTs withTCT_REVOKED(fixturetct-024). Relaying through a registry does not change this: an agent that issues tokens but publishes no list cannot have its tokens accepted underfail_closed. - Replicas of one issuer sign as one issuer. Every replica that serves an issuer's list signs it with that issuer's key and serves the same entry set. A replica that serves fewer entries un-revokes the missing ones until the next poll. A replica that signs with a different key is a different issuer, and its list is discarded.
Rate limiting and the handshake endpoint
The handshake_endpoint is public. Implementations MUST apply
per-source rate limiting to it
(RFC-AITP-0009 §3.1,
cited by RFC-AITP-0004 §11.4).
The source key MUST include a transport-level identifier — the peer IP (from a
forwarding header only behind a configured trusted proxy) or a TLS
client-certificate fingerprint — because an AID read before the envelope
signature is verified is self-asserted; a per-AID limit is RECOMMENDED in
addition, never instead. RFC-AITP-0009 §3.1
gives the RECOMMENDED defaults — 30 requests per source IP and 10 per
initiator AID per 60 s, at most 1000 concurrent in-flight handshake sessions,
and a 64 KB maximum MUTUAL_HELLO payload — to be tuned for high-volume
deployments. Rate-limited requests SHOULD get HTTP 429 with no AITP error
envelope, since they never reached the protocol layer (RFC-AITP-0009 §3.1).
The check order at the endpoint is normative (RFC-AITP-0009 §3.1):
message_iddeny list (replay) — before rate limiting, so a replayed envelope does not consume the sender's rate-limit slot;- rate limiting;
- timestamp tolerance;
- Content-Type and body-size validation;
- envelope signature verification;
- payload cryptographic checks.
In a multi-instance deployment the replay deny list must be shared (or routing made sticky) for this to hold; how to do that with aitp-rs is in deployment and transport hardening.