Repository navigation
fix(step-up): answer a relying party's step-up as the identity that signed in - #458
Merged
Merged
Conversation
…igned in
A site signed in to as a per-site persona has that persona as the session's
subject. The did-hosting control plane addresses its step-up approve-request
to the subject and accepts an answer only from it, but the wallet always
answered with its own holder key, so a persona session's step-up was refused
before any prompt ("step-up approve-request refused: it is addressed to
<persona DID>, not this wallet").
handleApproveSessionStepUp now decides the identity the way sign-in does
(stepUpIdentity -> decideSiteIdentity, never the picker) and passes the vault
entry to the offscreen, which signs the approve-response as that persona
through the VTA (personaTaskSigner; vault/sign-trust-task signs this type for
assertionMethod). Without a persona the wallet's own key answers, as before.
In core, buildStepUpApproval and performRpStepUp take a ChannelSigner (a
local key or a TaskSigner) instead of a bare SigningIdentity.
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.
Follow-up to #456. With the control plane now accepted as the step-up's executor, a holder signed in to the did-hosting console as a per-site persona was refused at the next check:
Why
The persona is the session's subject:
auth/authenticatewas signed as it, through the VTA. The control plane addresses the approve-request to the subject and accepts a decision only from it (approve_response:approver != pending.subject→approverUnauthorized). The wallet always answered with its owndid:key, so a persona session could never be stepped up.Change
handleApproveSessionStepUpdecides the identity the way sign-in does:stepUpIdentity→decideSiteIdentity. It never raises the picker, and the page can't name the entry. It passes the vaultentryId(plusrestBaseUrl) to the offscreen.doApproveSessionStepUpsigns as that persona through the VTA (personaTaskSigner). With no persona, the holder key answers, unchanged.vault/sign-trust-tasksignsauth/step-up/approve-response/0.7forassertionMethod(vta-sdkpurpose_for_document_type,ATTESTATION_SLUGS; covered by vta-servicevault_sign_trust_task_purpose.rs).buildStepUpApproval/performRpStepUp/verifyRpStepUpRequesttake aChannelSigner(a local key or aTaskSigner) instead of a bareSigningIdentity. The signature now goes throughasTaskSigner(...).sign(doc, { proofPurpose: "assertionMethod" }).CLAUDE.mdrecords the rule and what would break it.Verified
glenn-vta): the control plane loggedstep-up approved: session elevated to aal2. The session renewal that follows failed for an unrelated control-plane reason, fixed separately in affinidi-webvh-service.tests/rp-login.step-up.mjsadds two: a persona session is answered by the persona, signed forassertionMethod; the holder key can't answer a persona's step-up. Core 1350 pass and extension 1612 pass.npm run buildsucceeds, and the CI bundle guards pass locally.Pre-merge checklist (vti-stack-development-guide §9)
getVtaSession)entryId,restBaseUrl, optional, background-set)