Skip to content

Non-repudiation and key rotation: audit trail considerations? #3

Closed

Description

@christian-posta

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)?

Activity

  1. dickhardt commented on Mar 2, 2026

    @dickhardt
    Owner

    Good points. I think a transparency log is a good direction to explore for this.

  2. dickhardt commented on Apr 15, 2026

    @dickhardt
    Owner

    @christian-posta what are your thoughts on recommending a transparency log?

  3. nickgamb-strata commented on Apr 16, 2026

    @nickgamb-strata

    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).

  4. jagmarques commented on Apr 29, 2026

    @jagmarques

    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.

  5. dickhardt commented on Jun 8, 2026

    @dickhardt
    Owner

    Addressed (commit on main, §Non-Repudiation and Audit After Key Rotation). Answers the three questions:

    1. Intentional? Partly by design — AAuth provides request-time authentication (proof-of-possession), not long-term non-repudiation; short-lived keys + directed identifiers limit long-term linkability.
    2. 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.
    3. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions