Repository navigation
Revoke associations when their LE or QVI credential is revoked - #49
Merged
Merged
Conversation
A registry revocation is now classified by durable index rather than by reading a credential body. An association applies directly as before. A credential with source links becomes one work record per association in one transaction, and anything else is acknowledged with no effect. The registry record is acknowledged only after the application commit, so a crash replays it.
One worker turn applies one work record, committing status with its cause, the unchanged revision-2 event and the work removal together, so an LE or QVI revocation yields one event per association and replay yields none. Work for an association that is no longer accepted is dropped. A bad association moves to a dead letter so the rest of the fan-out proceeds, and `retry-revocation` requeues it offline. A direct revocation that can't apply is dead-lettered the same way, so it can't stop the shared registry queue.
Operators need to see why an association was revoked when the association credential itself was not. Status responses now carry `revocationSource` for upstream revocations only, so responses for every other status keep their shape. The webhook event is unchanged and carries no cause.
This was referenced Nov 10, 2026
kentbull
marked this pull request as ready for review
November 10, 2026 00:51
kentbull
changed the base branch from
feat/upstream-revocation-1-acceptance
to
master
November 10, 2026 00:57
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 2 of 3 in the upstream-revocation stack. Draft. Based on #48.
What and why
This PR turns the stored links into revocations and makes them visible.
retry-revocationrequeues it. A direct revocation that cannot apply is dead-lettered the same way, so it cannot stop the shared registry queue.revocationSource(credential SAID, roleleorqvi, TEL event SAID) to the public status response for upstream revocations only. Other responses keep their shape.Stack
feat/upstream-revocation-1-acceptance)Verification
Run against this PR's head in a separate checkout of that commit:
tests/associationsandtests/persistence: 66 passedtests/deliveryandtests/runtime: 75 passedThe full suite is run at the head of the stack (see PR 3).
Reviewer notes
ValueError(missing original event, or changed status) dead-letters.