OAID-6 — Key Custody Tiers and Attestation#
Version 0.2.2-draft · Part of the AllowedBy specification set
1. Principle#
A runtime's private key is never a file. It is either in process memory for the life of a sandbox (tier 0) or behind a signing interface it cannot export from (tiers 1 and 2). A passport records the tier and the attestation that supports it; services set minimum tiers per capability class.
Runtime keys are Ed25519 or ES256 (P-256). Secure Enclave, TPM, StrongBox and most KMS only support P-256, so hardware-backed keys will usually be ES256. Nodes and verifiers MUST accept both and MUST refuse any other runtime key type.
2. Tiers#
| Tier | Where the key lives | Generation | Export | Passport max TTL | Attestation accepted |
|---|---|---|---|---|---|
| 0 Ephemeral | Process memory of the runtime | At process start, by the runtime | Impossible by design only if the process cannot write it out; not verifiable | 3600 s | none, orchestrator |
| 1 Local persistent | Hardware-backed keystore on the operator's machine: TPM 2.0, Apple Secure Enclave, Android StrongBox, a FIDO authenticator, Windows Hello (TPM-bound) | Inside the keystore, non-exportable flag set | Not possible | 86400 s | tpm2, apple-se, android-strongbox, fido, windows-hello |
| 2 Custodial | A KMS or HSM operated by the operator or a node, exposing sign-only access | Inside the KMS/HSM | Not possible | 86400 s | aws-kms, gcp-kms, azure-kv, hsm-pkcs11, aws-nitro, gcp-cc, azure-cc |
Tier 1 and tier 2 differ in who runs the custody, not in strength. Services MAY treat them as equal.
3. Attestation types#
| Type | Evidence | What a node verifies |
|---|---|---|
none |
nothing | Nothing. Tier 0 only. |
orchestrator |
A JWS signed by the orchestrator (the platform that started the sandbox) stating the runtime id, the sandbox id, the key thumbprint, a start time and an exp |
Orchestrator key is registered at the node for that operator; timestamps are recent. Tier 0 only. This is "the platform vouches" and is the expected common case at launch. |
tpm2 |
TPM 2.0 key certification: TPM2_Certify output over the key, with the AK certificate chain |
AK chain to a known TPM manufacturer root; certified key matches the thumbprint; key attributes show fixedTPM, sensitiveDataOrigin, no export. |
apple-se |
Apple App Attest or DeviceCheck assertion covering the key | Apple root; key in Secure Enclave. |
android-strongbox |
Android key attestation certificate chain | Google root; StrongBox security level; key not exportable. |
fido |
A WebAuthn registration with attestation, authenticator is the key holder (the runtime drives a FIDO device) | Attestation chain to FIDO MDS; AAGUID allowed by node policy. |
windows-hello |
Windows Hello key attestation (TPM-bound) | Same as tpm2 through the Windows attestation format. |
aws-kms, gcp-kms, azure-kv |
A signed statement from the cloud KMS that the key id exists, is asymmetric, non-exportable, and its public key equals the thumbprint, plus a cloud identity token binding the operator | Cloud provider signing root; operator binding. |
hsm-pkcs11 |
A certificate from the HSM vendor's attestation scheme | Vendor root. |
aws-nitro, gcp-cc, azure-cc |
Confidential-computing attestation document (Nitro attestation, GCP Confidential Space token, Azure MAA token) carrying the key thumbprint in user data | Provider root; measurements match a list the node or the operator published. Tier 2. |
Evidence is carried as custody.evidence in the issuance and renewal requests (OAID-3 §4, §6), an object keyed by type-specific fields.
Orchestrator evidence is custody.evidence.orchestrator: a JWS typ: oaid-orchestrator+jwt, signed by an orchestrator key the operator registered at the node, payload { "iss": <orchestrator id>, "runtime": <runtime id>, "sandbox": <sandbox id>, "key": <thumbprint of the passport key>, "iat": <sandbox start>, "exp" }. The node sets attested_at = iat and valid_until = exp. The node MUST reject evidence older than 10 minutes and MUST bind evidence to the key by thumbprint.
Attestation validity. The node records in the passport custody.valid_until (OAID-3 §2) = the earliest of: attested_at + 7 days (tiers 1 and 2), the notAfter of any certificate or the exp of any token in the evidence chain, and the orchestrator statement's exp (orchestrator). Grants bound to the passport take actor.exp = min(passport exp, custody.valid_until) (ABY-1); verifiers reject proofs after actor.exp with actor_expired.
4. Runtime obligations#
- Generate the key in the custody boundary claimed. Never persist a tier 0 key. Never copy a tier 1 or 2 key.
- Present fresh evidence at issuance and at renewal when required by node policy (at least every 7 days for tiers 1 and 2).
- Tie the key's lifetime to the sandbox for tier 0: when the sandbox ends, the key is gone; do not attempt to "save" a passport.
- Refuse to sign requests whose grant is expired (ABY-2 §7). This is a runtime rule, not a security boundary; services enforce it independently.
5. Node obligations#
- Grade evidence strictly; prefer
attestation_insufficientwith the tier the node would accept over silent downgrade. - Publish the accepted attestation types and the roots it uses in its statement
policy.attestationand atGET {passports}/attestation-roots. A node accepting every type publishes:
"attestation": ["none", "orchestrator", "tpm2", "apple-se", "android-strongbox", "fido", "windows-hello",
"aws-kms", "gcp-kms", "azure-kv", "hsm-pkcs11", "aws-nitro", "gcp-cc", "azure-cc"]- Record the attestation type in the passport; never record raw evidence in the log (it may contain device identifiers).
6. Service obligations#
- Set
requirements.min_tierandattestationper capability class in the trust list (OAID-5 §2). Irreversible or financial classes SHOULD require tier 1 or 2 with hardware attestation. - Treat
orchestratoras the weakest non-nonelevel: the strength is that of the orchestrator's own security.
7. Security considerations#
- Tier 0 is unverifiable by construction; its security is the sandbox's. Short lifetimes bound the damage: a leaked tier 0 key dies with its passport (≤ 1 h) through
actor.exp. - Attestation roots are a trust decision like any other; nodes SHOULD document them and trust programs SHOULD audit them.
- A compromised orchestrator can mint tier 0 passports for any runtime it claims to run, but it cannot take over existing grants: a grant moves to a new passport only by rebind, which requires a
prevchain to the bound passport (tier 0 passports are never renewed, so never chained) or the operator's signature (ABY-1, OAID-3 §6). New grants still need a human signature. Operators SHOULD monitor logs for their operator id (OAID-4 §9).
Change log#
Every change to this document adds a row here and increments its version (README, Versioning).
| Version | Date | Change |
|---|---|---|
| 0.2.2-draft | 2026-10-27 | Orchestrator evidence format oaid-orchestrator+jwt defined (CHANGES §16). |
| 0.2.0-draft | 2026-10-27 | Attestation validity feeds custody.valid_until and actor.exp; orchestrator evidence limited to tier 0 (CHANGES §7). |