-
Notifications
You must be signed in to change notification settings - Fork 892
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
Disable tor by group policy on Windows. #3692
Conversation
644ddcd
to
4dc5dac
Compare
f30440d
to
7cc4db3
Compare
3650fe2
to
27df30d
Compare
I think all entry point for tor window are disabled and hidden. Also, tor component updater is not registered when tor is disabled by gpo. => pushed commit that deletes tor binaries also. |
3704b53
to
8aefc2c
Compare
|
||
CHROME_POLICY_KEY = 'SOFTWARE\\\\Policies\\\\Google\\\\Chrome' | ||
-CHROMIUM_POLICY_KEY = 'SOFTWARE\\\\Policies\\\\Chromium' | ||
+CHROMIUM_POLICY_KEY = 'SOFTWARE\\\\Policies\\\\Brave' |
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.
Or this should be SOFTWARE\\\\Policies\\\\BraveSoftware\\\\Brave
?
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.
Changed to use SOFTWARE\\\\Policies\\\\BraveSoftware\\\\Brave
because omaha updater uses SOFTWARE\\\\Policies\\\\BraveSoftware\\\\Update
for its policy.
This PR is ready to review. |
38f534b
to
9312473
Compare
9312473
to
638b1cd
Compare
1d89fb6
to
7b269c1
Compare
Kindly ping to reviewers :) |
SOFTWARE\\Policies\\BraveSoftware\Brave should be better because we already use SOFTWARE\\Policies\\BraveSoftware\Update for update policy.
* Fix trivial var naming and refactoring * Delete un-related header including * Add BraveTorClientUpdater::Cleanup() instead of deleting tor extension directly from BraveExtensionManagement.
With this, we don't need to rebase policy_templates.json.
Also, patching of CHROMIUM_POLICY_KEY is deleted. We can override it by importing from other file.
Also, tor-specific code for tor component is moved to tor client updater.
81bae87
to
054fd5a
Compare
CI seems not success but some fails are not related with this PR(audit and ios failure). |
Disable tor by group policy on Windows.
Disable tor by group policy on Windows.
Disable tor by group policy on Windows.
This should cover brave/brave-browser#6584 too. |
Introduce TorDisabled group policy for disabling tor feature.
also disable Tor.
This should be merged with brave/brave-browser#6475.
Fix brave/brave-browser#454
Fix brave/brave-browser#6044
When
TorDisabled
policy is set to registry (HKCU|HKLM\\Software\\Policies\\BraveSoftware\\Brave
),new menu item is visible in app menu like below.
brave branding
brave://management
webui page that can be opened by above menu item.Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
yarn test brave_browser_tests --filter=*TorDisabled*
Reviewer Checklist:
After-merge Checklist:
changes has landed on.