-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: patch authentication controller sign out validation #28847
fix: patch authentication controller sign out validation #28847
Conversation
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. |
…tfix/patch-authentication-signout-validation
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@stablelib/[email protected], npm/@stablelib/[email protected], npm/@stablelib/[email protected], npm/@stablelib/[email protected], npm/[email protected], npm/[email protected] |
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat is new author?A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package. Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
Builds ready [da1ccd4]
Page Load Metrics (1737 ± 78 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
@@ -332,7 +332,7 @@ | |||
"@metamask/post-message-stream": "^8.0.0", | |||
"@metamask/ppom-validator": "0.35.1", | |||
"@metamask/preinstalled-example-snap": "^0.2.0", | |||
"@metamask/profile-sync-controller": "^2.0.0", | |||
"@metamask/profile-sync-controller": "patch:@metamask/profile-sync-controller@npm%3A2.0.0#~/.yarn/patches/@metamask-profile-sync-controller-npm-2.0.0-02e028ab48.patch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patched until profile-sync-controller changes are released.
The next upgrade of this package has an interdependency with the network controller.
Closing this as @mathieuartu fix is more ideal than package patching. |
Description
This adds a patch (fix from this PR: MetaMask/core#5013), to remove the state validation from signing out. This is because the Authentication State could be either in a weird state, or metametrics toggle does not behave and use the 'signedIn' property from authentication.
Either way, this ensures that signing out using the Authentication Controller works correctly and does not throw any errors.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3709
Manual testing steps
I have not been able to find repro-steps from this issue. However the below should still work
Onboarding
Settings page
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist