Repository navigation
feat(step-up): approve a step-up from a trigger link, as the person (VTI-LNK-125 – VTI-LNK-131) - #427
Merged
Merged
Conversation
…VTI-LNK-125 – VTI-LNK-131) Someone acting for the person with a key they delegated, such as their assistant over vtc-mcp, can redeem a VTC step-up but never make one. The community now refuses such a party with a single-use handle beside the inline request, and the party shows the person a `step-up` link (trustoverip/dtgwg-vti-spec#106, OpenVTC/verifiable-trust-infrastructure#2490). This is the wallet's reader for that link. core: - Pins `auth/step-up/requests/show/0.1` and adds the `step-up` flow to the reader's flows. - Adds the flow's four reasons: `not-in-records`, `not-the-subject` and `binding-mismatch` (outcome `invalid`), and `step-up-gone` (outcome `expired`). - vtc/step-up-handoff.ts builds the read from a fresh key with the handle. It checks the reply's request is an approve-request the community signed, to its subject, unexpired, and bound to the returned operation. It also builds the subject's approve-response. extension: - step-up-flows.ts, in the offscreen document, reads the step-up only for a community the wallet holds an identity at. It checks that the subject is one of them, and sends the answer, signed by the agent as the subject, to the community directly. - The background runs the same check, approver prompt and signature as approveStepUp. The prompt shows the identity from the wallet's own record and the community's signed reason. - The person opens a link by pasting it into the popup (extension pages only) or by clicking it on a page. The outcome is shown as a notification. Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
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.
Why
A person's assistant over
vtc-mcpacts with a key they delegated. That key can redeem a VTC step-up but never make one. Since OpenVTC/verifiable-trust-infrastructure#2490, the community refuses such a party with a single-use handle, and the party shows the person astep-uplink (trustoverip/dtgwg-vti-spec#106). This PR is the wallet's reader for that link.What
auth/step-up/requests/show/0.1and adds thestep-upflow with its four reasons.vtc/step-up-handoff.tsreads the step-up from a fresh key with the handle.step-up-flows.tsruns in the offscreen document. It reads a step-up only for a community the wallet holds an identity at, and checks that the subject is one of them. It sends the answer, signed by the agent as the subject, to the community directly (VTI-LNK-131).approveStepUp's check, approver prompt and signature.handleTriggerLinknow routes away from the sign-in window.Checks
npm run lintnpm run buildnpm testNew tests:
core/tests/vtc.step-up-handoff.mjs, 7 tests.extension/tests/step-up-flows.test.mts, 7 tests.Two existing tests changed. The parser's unknown-flow example now uses another flow name. The task-surface census gains an entry for the read, because it goes to the VTC, not the VTA.
Not yet run live against a community.