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

Grant access to chrome.sockets APIs for IPFS companion #2050

Merged
merged 3 commits into from
Mar 25, 2019
Merged

Grant access to chrome.sockets APIs for IPFS companion #2050

merged 3 commits into from
Mar 25, 2019

Conversation

bbondy
Copy link
Member

@bbondy bbondy commented Mar 25, 2019

Fix brave/brave-browser#3876

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Verified that these changes build without errors on
    • Windows
    • macOS
    • Linux
  • Verified that these changes pass automated tests (npm test brave_unit_tests && npm test brave_browser_tests && npm run test-security) on
    • Windows
    • [ ]
    • Linux
  • Verified that all lint errors/warnings are resolved (npm run lint)
  • Ran git rebase master (if needed).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.
  • Add appropriate QA labels (QA/Yes or QA/No) to include the closed issue in milestone

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

bbondy and others added 2 commits March 24, 2019 21:17
The ID of the Stable channel was whitelisted in 10f16e6
but we want to allow the ID of Beta channel to have access to those APIs as well.

The purpose of opt-in Beta channel is to dogfood and iterate faster
without impacting regular user base.
@bbondy bbondy self-assigned this Mar 25, 2019
yrliou
yrliou previously approved these changes Mar 25, 2019
@@ -2,7 +2,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Command to get whitelist ID: echo -n mnojpmjdmbbfmejpflffifhffcmidifd | openssl sha1 | tr '[:lower:]' '[:upper:]'
// Same for sync api: echo -n nomlkjnggnifocmealianaaiobmebgil | openssl sha1
// Same for sync api: echo -n nomlkjnggnifocmealianaaiobmebgil | openssl sha1 | tr '[:lower:]' '[:upper:]'
// Same for ipfs-companion: echo -n nibjojkomfdiaoajekhjakgkdhaomnch | openssl sha1 | tr '[:lower:]' '[:upper:]'
Copy link
Member

Choose a reason for hiding this comment

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

780bf954c0f7c586ea9662d4f967771f49cc2114 is the sha1 of nibjojkomfdiaoajekhjakgkdhaomnch; what does FF32507DC3DB5DFFD1D6733187C84D4B74713D63 correspond to?

Copy link
Member Author

Choose a reason for hiding this comment

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

IPFS beta extension, it's the 2nd commit in the PR.

@@ -61,17 +62,17 @@
"sockets.tcp": {
"dependencies": ["manifest:sockets"],
"contexts": ["blessed_extension"],
"whitelist": ["3D9518A72EB02667A773B69DBA9E72E0F4A37423"]
Copy link
Member

Choose a reason for hiding this comment

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

i assume 3D9518A72EB02667A773B69DBA9E72E0F4A37423 is webtorrent?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep

@bbondy
Copy link
Member Author

bbondy commented Mar 25, 2019

@diracdeltas I cleaned up the headers to specify the mapping and ID for each extension.

Copy link
Member

@diracdeltas diracdeltas left a comment

Choose a reason for hiding this comment

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

lgtm

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.

Grant access to chrome.sockets APIs for IPFS companion
4 participants