Repository navigation
Conversation
2 tasks done
Contributor
🛑 Files requiring codeowner reviewTo merge this PR, you'll need to get approvals from the following owners. @MetaMask/universal-kyc (12 files)
ℹ️ Files co-owned by
|
This branch has not been deployed
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.
Explanation
Extend the split-token flow from #11838 to
VendorOnboardingController. On session creation and resume, the controller sends the wrapped data encryption key and separate storage and Kwil tokens in one request. Both tokens grant onlyreadandwrite. Step refresh and decision polling do not submit authorizations.Breaking changes
idosRelayInserterIdtoVendorOnboardingController. Use the canonical lowercase UUID for the configured idOS Relay. The constructor validates it before registering with the messenger.KycService.setAuthorizationsnow requireswrappedRegistryActionToken. Both controllers supply it. Direct callers must send it alongside the wrapped data encryption key and storage token.kyc-apistill accepts the optional field from older clients and leaves acceptance of single-token requests to idOS.Rollout
Merge this PR and #11838 together after each passes its checks. Verify the split flow in staging with the configured Relay and Kwil deployment before upgrading clients.
References
Testing
yarn workspace @metamask/kyc-controller run test:coverage: 618 tests passed with 100% coverage.yarn workspace @metamask/ramps-controller run test run src/RampsController.test.ts: 538 tests passed.