-
Notifications
You must be signed in to change notification settings - Fork 898
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
Make Brave-specific options configurable through Windows Group Policy templates #25710
Conversation
The security team is monitoring all repositories for certain keywords. This PR includes the word(s) "policy" and so security team members have been added as reviewers to take a look. |
patches/components-policy-resources-templates-policies.yaml.patch
Outdated
Show resolved
Hide resolved
95b648f
to
a380566
Compare
@bsclifton what would be needed for changing the cloud.google.com URLs to ours? |
@mihaiplesa I'll check that out next |
a32557c
to
d6a715c
Compare
@mihaiplesa I found the following places of interest: This is one place to make the change. We'd want to have a similar URL / path before we changed it. Something like This seems to be the webUI - basically if you navigate to brave://policy I think we'd need to make the change in both places. Could we do that as a follow up? |
3c05d44
to
af74527
Compare
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.
approving for js-deps-reviewers. No concerns with the changes to package.json.
Some other non-blocking questions that I think are worth considering/following up on:
- Do we want to add a policy for webTorrent and playlists (could be used to download internal videos)?
- Would it make sense to follow up with a group policy that configures controls over default lists/shields configurations?
- Do we have a support doc already written about how to configure and use this? I could see it being a useful link to supply to people who complain about having lots of features they don't want on (tell them how to configure a group policy for themselves by linking to the docs for this page)
@kdenhartog answers to questions 😄
|
@bsclifton I was thinking we can have something else before |
components/policy/resources/templates/policy_definitions/README.md
Outdated
Show resolved
Hide resolved
components/policy/resources/templates/policy_definitions/README.md
Outdated
Show resolved
Hide resolved
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.
lgtm with few things to improve
865b01d
to
d649f10
Compare
[puLL-Merge] - brave/brave-core@25710 DescriptionThis PR introduces significant changes to the policy management system in Brave, including the addition of new Brave-specific policies and modifications to the policy template generation process. The changes aim to provide more granular control over Brave-specific features through group policies. ChangesChanges
Possible Issues
Security HotspotsNo significant security issues are apparent in this change. However, careful review of the new policy definitions is recommended to ensure they don't inadvertently expose sensitive functionality or information. |
…uses. The assets generated now include all of the Brave group policies in a group called "BraveSoftware". Fixes brave/brave-browser#26502
Co-authored-by: Michael Herrmann <[email protected]>
Co-authored-by: Michael Herrmann <[email protected]>
101924e
to
bbbccf7
Compare
Made final changes - thanks @goodov, @mherrmann, and @diracdeltas and everyone who helped review 😄👍 Added test plan to top of brave/brave-browser#26502 |
Released in v1.73.8 |
Updates Brave's group policies to match the style that Chromium does.
Notable changes:
src/brave/chromium_src/components/policy/tools/generate_policy_source.py
and broken out to individual files undersrc/brave/components/policy/resources/templates/policy_definitions/BraveSoftware/
. This matches the style upstream in Chromium. For example, see https://source.chromium.org/chromium/chromium/src/+/main:components/policy/resources/templates/policy_definitions/Accessibility/AccessibilityShortcutsEnabled.yamlBraveSoftware
.DEPS
file. This copies the Brave specific group policies found insrc/brave/components/policy/resources/templates/policy_definitions/
into the Chromium specific directory at ``src/components/policy/resources/templates/policy_definitions/`.src/brave/chromium_src/components/policy/resources/policy_templates.py
was added to intercept the loading of thepolicies.yaml
file upstream and add our own group policies.This new approach generates a
policy_templates.zip
andbrave_policy_templates.zip
which has all of the Brave specific group policy values present.windows/examples/brave.reg
has examples for using all Brave specific registry keyswindows/admx/brave.admx
group policy file has the Brave specific entries in itThis approach also does generate macOS (example plist file) and Linux (example JSON file) resources with the Brave specific group policy values- but we are not using those anywhere. More info about those can be found here:
https://source.chromium.org/chromium/chromium/src/+/main:components/policy/BUILD.gn
Fixes brave/brave-browser#26502
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Generating the assets
Building yourself
npm run build
npm run build -- --target=brave/components/policy:pack_policy_templates
Trying out the policy
brave_policy_templates.zip
(in the out directory) to somewheregpedit.msc
and right clickAdministrative Templates
and pickAdd/Remove Templates
brave_policy_templates.zip
and add either the ADM or ADMXBrave Software settings