Skip to content

Use SIWE origin validation logic from @metamask/controller-utils#18518

Merged
legobeat merged 6 commits intoMetaMask:developfrom
legobeat:siwe-to-core
Apr 25, 2023
Merged

Use SIWE origin validation logic from @metamask/controller-utils#18518
legobeat merged 6 commits intoMetaMask:developfrom
legobeat:siwe-to-core

Conversation

@legobeat
Copy link
Copy Markdown
Contributor

@legobeat legobeat commented Apr 10, 2023

Explanation

This PR aims to remove the (currently incomplete) origin domain validation logic from the UI layer and use the new implementation from @metamask/controller-utils.

Depends on:

Related issues:

Resolves:

Supersedes:

Manual Testing Steps

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

@legobeat legobeat added the DO-NOT-MERGE Pull requests that should not be merged label Apr 10, 2023
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@legobeat legobeat force-pushed the siwe-to-core branch 4 times, most recently from 36f2856 to 9af3673 Compare April 10, 2023 08:44
@legobeat legobeat force-pushed the siwe-to-core branch 9 times, most recently from 0b0b44e to 1d54ca1 Compare April 11, 2023 05:06
@legobeat legobeat marked this pull request as ready for review April 11, 2023 05:28
@legobeat legobeat requested a review from a team as a code owner April 11, 2023 05:28
@legobeat

This comment was marked as outdated.

Comment thread ui/components/app/signature-request-siwe/signature-request-siwe.js Outdated
digiwand
digiwand previously approved these changes Apr 19, 2023
Copy link
Copy Markdown
Contributor

@digiwand digiwand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! approving so it's ready to merge after https://github.com/MetaMask/core/pull/1163/files is merged

@legobeat

This comment was marked as outdated.

@legobeat legobeat dismissed stale reviews from digiwand and naugtur via 6e2685b April 21, 2023 01:48
@legobeat legobeat removed the DO-NOT-MERGE Pull requests that should not be merged label Apr 21, 2023
@legobeat legobeat requested review from digiwand and naugtur April 21, 2023 01:50
@legobeat legobeat force-pushed the siwe-to-core branch 3 times, most recently from 4d8566b to c0fc734 Compare April 21, 2023 02:30
digiwand
digiwand previously approved these changes Apr 21, 2023
@legobeat

This comment was marked as resolved.

@digiwand
Copy link
Copy Markdown
Contributor

^^ @legobeat
seems so and it's a flaky test. ran into the same error in another PR https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/43453/workflows/6d25069e-a563-47f7-a410-d1c8b4942c37/jobs/1221445


also new file conflicts have appeared

@legobeat legobeat force-pushed the siwe-to-core branch 2 times, most recently from 6869f15 to bce3f67 Compare April 22, 2023 02:15
@legobeat
Copy link
Copy Markdown
Contributor Author

legobeat commented Apr 25, 2023

@SocketSecurity ignore not-really-a-package@1.0.0

@legobeat legobeat merged commit 64d4bfb into MetaMask:develop Apr 25, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: SIWE domain binding should handle port appropriately

4 participants