Skip to content

feat(kyc-controller)!: require split vendor onboarding authorizations - #11892

Draft
danroc wants to merge 3 commits into
kyc-88-kwil-action-tokenfrom
kyc-88-vendor-onboarding-split-tokens
Draft

danroc wants to merge 3 commits into
kyc-88-kwil-action-tokenfrom
kyc-88-vendor-onboarding-split-tokens

Conversation

@danroc

@danroc danroc commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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 only read and write. Step refresh and decision polling do not submit authorizations.

Breaking changes

  • Host apps must pass idosRelayInserterId to VendorOnboardingController. Use the canonical lowercase UUID for the configured idOS Relay. The constructor validates it before registering with the messenger.
  • KycService.setAuthorizations now requires wrappedRegistryActionToken. Both controllers supply it. Direct callers must send it alongside the wrapped data encryption key and storage token. kyc-api still 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.
  • Package build, generated action types, changelog validation, type, lint, and formatting checks passed locally. Live Relay behavior is unverified.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🛑 Files requiring codeowner review

To merge this PR, you'll need to get approvals from the following owners.

@MetaMask/universal-kyc (12 files)
  • packages/kyc-controller/ARCHITECTURE.md
  • packages/kyc-controller/CHANGELOG.md
  • packages/kyc-controller/src/KycController.test.ts
  • packages/kyc-controller/src/KycController.ts
  • packages/kyc-controller/src/KycService-method-action-types.ts
  • packages/kyc-controller/src/KycService.test.ts
  • packages/kyc-controller/src/KycService.ts
  • packages/kyc-controller/src/ukyc/constants.ts
  • packages/kyc-controller/src/ukyc/sessionAuthorization.ts
  • packages/kyc-controller/src/VendorOnboardingController-method-action-types.ts
  • packages/kyc-controller/src/VendorOnboardingController.test.ts
  • packages/kyc-controller/src/VendorOnboardingController.ts

ℹ️ Files co-owned by @MetaMask/core-platform

For convenience in maintaining this repo, this team co-owns the following files and thus may approve changes to them.

Note

You do not need to get approval from @MetaMask/core-platform to merge this PR.

(Expand to view list of files)
  • packages/kyc-controller/CHANGELOG.md

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant