Repository navigation
fix(step-up): signing in to a relying party enrolls it for its own step-ups - #456
Merged
Merged
Conversation
…ep-ups
A holder signed in to a did-hosting control plane was refused on the first
privileged change ("step-up approve-request refused: signed by <control
plane DID>, not an executor this wallet is enrolled with"). The only fix was
pasting that DID into Options → Enrolled executor DIDs, which nothing pointed
to.
The requirement protected nothing on this path. The background already
refuses a step-up unless its rpDid is the RP the origin was pinned to by an
approved sign-in (pageStepUpBindingRefusal); the approve-request must be
signed by that rpDid; and the approve-response is addressed to it and bound
to its own session's single-use challenge. So the background now passes the
pin it checked (signedInRpDid, never page-supplied) to the offscreen, and
rpStepUpExecutorDids adds it to the enrolled set when it equals the rpDid.
Executor-initiated pushes (task consent, disclosure step-up) arrive from no
origin and keep the enrolled set alone. The options help text and CLAUDE.md
say so.
Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
11 tasks done
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.
A holder signed in to a did-hosting control plane is refused on the first privileged change (e.g. saving an ACL entry):
The only way through was pasting the control plane's DID into Options → Enrolled executor DIDs, and nothing pointed there.
Why the requirement protected nothing here
Before the offscreen verifies anything, an RP session step-up has already passed these checks:
rpDidis the RP DID the page's origin was pinned to by a sign-in the human approved (pageStepUpBindingRefusal).verifyRpStepUpRequestrequires the approve-request to be signed by thatrpDid.The human already confirmed this RP at the login prompt. Requiring it a second time in settings added a refusal the human couldn't act on.
Change
page-task-policy.ts: newrpStepUpExecutorDids(enrolled, pinnedRpDid, rpDid). It returns the enrolled set, plus the pinned RP only when it equalsrpDid.background.ts: after the binding check passes, passes the pin it read assignedInRpDidonOffscreenApproveSessionStepUpRequest. It is set by the background, never by the page.offscreen.ts:doApproveSessionStepUpfeedsrpStepUpExecutorDids(...)toperformRpStepUp.options.tsx: the help text says signed-in sites are enrolled automatically.CLAUDE.md: records the rule and what would break it.Tests
tests/page-rp-binding.test.mtsadds 3 tests: pinned RP added when it matches, not added for another RP, unchanged with no pin.tsc -bandnpm run buildsucceed, and the CI bundle guards (admin, key-material, persona, mediator URIs) pass locally.Pre-merge checklist (vti-stack-development-guide §9)
signedInRpDid, optional)