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 TLS pins and update list of pinned roots #8750

Merged
merged 12 commits into from
May 28, 2021
Merged

Conversation

fmarier
Copy link
Member

@fmarier fmarier commented May 8, 2021

Resolves brave/brave-browser#15667,
Resolves brave/brave-browser#14637,
Resolves brave/brave-browser#12349,
Resolves brave/brave-browser#2949,
Resolves brave/brave-browser#15874

Security review: https://github.com/brave/security/issues/446

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

  1. Open https://pinning-test.badssl.com/ and confirm that the page is blocked with a non-bypassable TLS error:
    Screenshot from 2021-05-17 11-48-45
  2. If you see the following, the test has failed:
    Screenshot from 2021-05-07 18-48-46
  3. Open a new tab page and scroll down into the Brave Today section.
  4. Confirm that Brave Today images are loading.
  5. Open https://creators.brave.com/ and confirm that the page loads (you dont' need to login for the test).
  6. Open https://ads-serve.brave.com/ and confirm that the page loads without a TLS error (it will display an error like "Cannot GET /" and that's okay).

@fmarier fmarier requested a review from a team as a code owner May 8, 2021 01:49
@fmarier fmarier self-assigned this May 8, 2021
@fmarier
Copy link
Member Author

fmarier commented May 8, 2021

@tmancey Does this cover all of the Ads and Rewards endpoints? (i.e. does it fix brave/brave-browser#12349?)

@fmarier
Copy link
Member Author

fmarier commented May 8, 2021

Note on testing: since browser tests don't have access to the network, I'm not able to browse to the test page with a bad cert and verify that the pinset is actually working. The best I could do is fake the TLS state and look for an interstitial, but whether or not that state gets set is what I'm most interested in testing.

There is also an open request for a Brave-specific domain that will allow us to do a full end-to-end (manual) test: https://github.com/brave/devops/issues/4981

Copy link
Collaborator

@tmancey tmancey left a comment

Choose a reason for hiding this comment

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

LGTM++

@fmarier fmarier force-pushed the update-pins-14637 branch 2 times, most recently from cd72e8d to 7ac6fe9 Compare May 13, 2021 01:49
@fmarier fmarier requested a review from bridiver as a code owner May 13, 2021 01:49
chromium_src/net/DEPS Outdated Show resolved Hide resolved
@fmarier fmarier force-pushed the update-pins-14637 branch 2 times, most recently from 6a97a1d to 964f9e7 Compare May 18, 2021 01:09
@fmarier fmarier requested a review from bridiver May 18, 2021 01:37
@fmarier fmarier added this to the 1.27.x - Nightly milestone May 19, 2021
@fmarier fmarier force-pushed the update-pins-14637 branch 6 times, most recently from 56b35a7 to 8a1aed7 Compare May 20, 2021 18:32
@fmarier
Copy link
Member Author

fmarier commented May 28, 2021

The Android build failure is a known one since it's currently failing on Nightly: https://bravesoftware.slack.com/archives/CA5FPHWLF/p1622162074079200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants