Skip to content

Reject revoked LE/QVI credentials at acceptance and store the chain - #48

Merged
kentbull merged 2 commits into
masterfrom
feat/upstream-revocation-1-acceptance
Nov 10, 2026
Merged

kentbull merged 2 commits into
masterfrom
feat/upstream-revocation-1-acceptance

Conversation

@kentbull

@kentbull kentbull commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Part 1 of 3 in the upstream-revocation stack. Draft.

What and why

Today the Verifier ends an accepted association only when the association credential itself is revoked. This stack also ends it when the LE or QVI credential in its verified chain is revoked. This first PR lays the ground: it stores what is needed and tightens acceptance. It does not revoke anything yet.

  • Commit 1 adds the storage: a source-link index (LE or QVI credential to association), a durable revocation-work table, a revocation dead-letter table, the work record, and an optional revocationSource on the association status. Nothing reads or writes them yet.
  • Commit 2 makes acceptance read all three credentials (association, LE, QVI). Previously only the association credential was checked, so an LE or QVI revoked between verification and acceptance was accepted anyway. A revoked one is now a terminal rejected, consuming no nonce and creating no event, which matches what verification already does. Missing evidence still stops in the acceptance dead letter. Accepted associations record both chain rows in the acceptance transaction.

Stack

  1. This PR (base master)
  2. Processing: Revoke associations when their LE or QVI credential is revoked #49
  3. Coverage and docs: Add upstream revocation fixtures, witnessed coverage and docs #50

Verification

Run against this PR's head in a separate checkout of that commit:

  • tests/associations and tests/persistence: 56 passed
  • tests/delivery and tests/runtime: 73 passed

The full suite is run at the head of the stack (see PR 3).

Reviewer notes

  • Behaviour change: a revoked credential at acceptance is now terminal rejected, and that includes the association's own revocation, which was previously a dead letter at that point.
  • Stores from earlier versions are unsupported by decision. The new tables and the source-link rows exist only for associations accepted by this code, so there is no backfill.
  • The new tables and revocationSource are unused until PR 2. The webhook event is unchanged.

Revoking an association because its LE or QVI credential was revoked needs a fan-out index and a durable work phase in the same LMDB environment as status, so that they commit together. This adds the source-link, work and dead-letter tables, the record that describes one unit of work, and an optional cause on the association status.

Nothing reads or writes them yet.
Acceptance checked only the association credential, so an LE or QVI revoked between verification and acceptance was accepted anyway. The guard now reads all three credentials. A revoked one is a terminal rejection through the existing rejected path, consuming no nonce and creating no event, which matches verification. Missing evidence still stops in the acceptance dead letter.

This also changes the association's own revocation at this point from a dead letter to a rejection. Accepted associations now record both chain rows inside the acceptance transaction.
@kentbull
kentbull marked this pull request as ready for review November 10, 2026 00:51
@kentbull
kentbull merged commit 27c84d7 into master Nov 10, 2026
1 check passed
@kentbull
kentbull deleted the feat/upstream-revocation-1-acceptance branch November 10, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant