Repository navigation
Reject revoked LE/QVI credentials at acceptance and store the chain - #48
Merged
Merged
Conversation
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.
This was referenced Nov 10, 2026
kentbull
marked this pull request as ready for review
November 10, 2026 00:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
revocationSourceon the association status. Nothing reads or writes them yet.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
master)Verification
Run against this PR's head in a separate checkout of that commit:
tests/associationsandtests/persistence: 56 passedtests/deliveryandtests/runtime: 73 passedThe full suite is run at the head of the stack (see PR 3).
Reviewer notes
rejected, and that includes the association's own revocation, which was previously a dead letter at that point.revocationSourceare unused until PR 2. The webhook event is unchanged.