Skip to content
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: correct SubjectType for origins connecting via the BackgroundBridge #9216

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Apr 12, 2024

Description

The SubjectType for origins connecting via the BackgroundBridge was incorrectly set to SubjectType.Snap for all origins. This PR corrects it to assuming that all origins are of type SubjectType.Website.

This is important in order to enforce that Snap-specific RPC methods don't leak into the possession of dapps.

@FrederikBolding FrederikBolding requested a review from a team as a code owner April 12, 2024 13:02
@FrederikBolding FrederikBolding changed the title Fix SubjectType for origins connecting via the BackgroundBridge fix: correct SubjectType for origins connecting via the BackgroundBridge Apr 12, 2024
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Apr 12, 2024
Copy link

sonarcloud bot commented Apr 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@Jonathansoufer Jonathansoufer left a comment

Choose a reason for hiding this comment

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

LGTM!

@FrederikBolding FrederikBolding merged commit bc81a64 into main Apr 12, 2024
43 of 44 checks passed
@FrederikBolding FrederikBolding deleted the fb/fix-backgroundbridge-subject-type branch April 12, 2024 13:23
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
@metamaskbot metamaskbot added the release-7.22.0 Issue or pull request that will be included in release 7.22.0 label Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template mobile-snaps release-7.22.0 Issue or pull request that will be included in release 7.22.0 team-snaps-platform Snaps Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants