You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non-repudiation and key rotation: audit trail considerations? #3
Agent delegates use ephemeral keys, and agent servers can rotate their JWKS. The spec focuses on proving message authenticity at request time where the entity signing the message holds the private key bound to the agent identity. But how should adopters think about audit and non-repudiation after the fact?
Once keys rotate out of JWKS, old signatures become unverifiable. The only persistent identifiers are agent and sub (agent delegate), but these don't help you cryptographically prove "agent X signed request Y at time T" after key rotation.
Is this intentional (privacy-preserving by design)?
Should the spec offer guidance for deployments that need audit trails?
Are there recommended patterns (e.g., resources archiving tokens at verification time, key transparency logs)?
Our trajectory hash chaining proposal in PR #10 addresses part of this.
The core idea: each audit entry in the mission log chains to the previous via SHA-256(prev_hash | action | params | result), seeded from the mission's s256. This gives you a tamper-evident execution log whose integrity is verifiable independently of key material - you don't need the signing key to verify the chain, just the s256 anchor and the ordered entries.
This doesn't solve the full non-repudiation problem (you still can't prove agent X signed request Y after key rotation), but it does give you a cryptographic guarantee that the audit trail hasn't been modified, reordered, or had entries removed after the fact. If the PS records the chain at verification time, you get durable audit integrity even as keys rotate out.
For deployments that need stronger non-repudiation, the hash chain could be extended with a receipt pattern - the PS returns a signed receipt for each audit entry that the agent or a third party can archive. That way you have both chain integrity (our proposal) and point-in-time attestation (receipts signed with a PS key that has a longer lifecycle than agent keys).
Two patterns worth separating in the spec, because they solve different threat models.
Pattern A, archive-at-verification. The resource server persists each verified token (or a digest of it plus the JWKS snapshot used to verify) at the moment of acceptance. This gives you "we verified X under key Y at time T" forever, but it pushes the trust to the RS log: a malicious or compromised RS can rewrite history. Cheap, common, weak against insider threat.
Pattern B, transparency log inclusion. After verification, the RS submits a canonical hash of the request (RFC 8785 or whatever canonicalization the spec settles on) plus the verifying JWK thumbprint to an append-only log. Verifiers later get a Merkle inclusion proof tying the signed request to a fixed log root. Sigstore's Rekor and the certificate-transparency RFC 6962 / 9162 designs are the well-trodden paths. This is the right answer if you want non-repudiation that survives RS compromise, JWKS rotation, and key revocation.
Pattern C, RFC 3161 timestamps over the request hash. Cheaper than running a log, gives you "this signature existed at this time" without needing the original key to be live. Doesn't catch equivocation, doesn't give you set membership, but it's the lightest-weight option and it composes with A and B.
Trajectory hash chaining (PR #10) is orthogonal to all three. It proves ordering and tamper-evidence within a single mission, but it does not prove that the chain head was witnessed by anyone outside the agent server. Without an external anchor (signed checkpoint, log entry, timestamp), a chain can be silently truncated at the tail; you only catch mid-chain deletions.
Suggested spec move: keep AAuth itself silent on archival, but add a non-normative section "Long-term verification" that names these three patterns and notes that signature validity has a defined lifetime equal to the JWKS retention window unless one of A/B/C is layered on. Implementers will reach for the wrong pattern without that nudge.
Guidance? Yes — deployments needing durable audit should capture evidence at verification time (while the key is still in the JWKS), not rely on re-verification after rotation.
Patterns? Archive the request+signature+Signature-Key+trusted timestamp; optional JWKS-entry (kid+JWK) snapshot; RFC 3161 timestamping or tamper-evident/transparency logs; index records by (iss,sub) and jti. Flags the privacy tradeoff of archiving signatures/keys. Closing.
Activity
dickhardt commentedon Mar 2, 2026
Good points. I think a transparency log is a good direction to explore for this.
dickhardt commentedon Apr 15, 2026
@christian-posta what are your thoughts on recommending a transparency log?
nickgamb-strata commentedon Apr 16, 2026
Our trajectory hash chaining proposal in PR #10 addresses part of this.
The core idea: each audit entry in the mission log chains to the previous via
SHA-256(prev_hash | action | params | result), seeded from the mission's s256. This gives you a tamper-evident execution log whose integrity is verifiable independently of key material - you don't need the signing key to verify the chain, just the s256 anchor and the ordered entries.This doesn't solve the full non-repudiation problem (you still can't prove agent X signed request Y after key rotation), but it does give you a cryptographic guarantee that the audit trail hasn't been modified, reordered, or had entries removed after the fact. If the PS records the chain at verification time, you get durable audit integrity even as keys rotate out.
For deployments that need stronger non-repudiation, the hash chain could be extended with a receipt pattern - the PS returns a signed receipt for each audit entry that the agent or a third party can archive. That way you have both chain integrity (our proposal) and point-in-time attestation (receipts signed with a PS key that has a longer lifecycle than agent keys).
jagmarques commentedon Apr 29, 2026
Two patterns worth separating in the spec, because they solve different threat models.
Pattern A, archive-at-verification. The resource server persists each verified token (or a digest of it plus the JWKS snapshot used to verify) at the moment of acceptance. This gives you "we verified X under key Y at time T" forever, but it pushes the trust to the RS log: a malicious or compromised RS can rewrite history. Cheap, common, weak against insider threat.
Pattern B, transparency log inclusion. After verification, the RS submits a canonical hash of the request (RFC 8785 or whatever canonicalization the spec settles on) plus the verifying JWK thumbprint to an append-only log. Verifiers later get a Merkle inclusion proof tying the signed request to a fixed log root. Sigstore's Rekor and the certificate-transparency RFC 6962 / 9162 designs are the well-trodden paths. This is the right answer if you want non-repudiation that survives RS compromise, JWKS rotation, and key revocation.
Pattern C, RFC 3161 timestamps over the request hash. Cheaper than running a log, gives you "this signature existed at this time" without needing the original key to be live. Doesn't catch equivocation, doesn't give you set membership, but it's the lightest-weight option and it composes with A and B.
Trajectory hash chaining (PR #10) is orthogonal to all three. It proves ordering and tamper-evidence within a single mission, but it does not prove that the chain head was witnessed by anyone outside the agent server. Without an external anchor (signed checkpoint, log entry, timestamp), a chain can be silently truncated at the tail; you only catch mid-chain deletions.
Suggested spec move: keep AAuth itself silent on archival, but add a non-normative section "Long-term verification" that names these three patterns and notes that signature validity has a defined lifetime equal to the JWKS retention window unless one of A/B/C is layered on. Implementers will reach for the wrong pattern without that nudge.
dickhardt commentedon Jun 8, 2026
Addressed (commit on
main, §Non-Repudiation and Audit After Key Rotation). Answers the three questions:Signature-Key+trusted timestamp; optional JWKS-entry (kid+JWK) snapshot; RFC 3161 timestamping or tamper-evident/transparency logs; index records by(iss,sub)andjti. Flags the privacy tradeoff of archiving signatures/keys. Closing.Security/Privacy Considerations: non-repudiation after key rotation (#3…