[meta] Single source of truth for policy capabilities
Categories
(Enterprise Products :: General, task, P1)
Tracking
(firefox155 fixed)
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: gcp, Assigned: bsmth)
References
(Blocks 3 open bugs)
Details
Attachments
(2 files)
Different Firefox versions might support different policies, and might support different configuration options within those policies, and be or not be able to support un-setting the policy or changing it live (without restarting). We want a single source of truth for these capabilities that the console can pull from to display the proper UI.
| Reporter | ||
Comment 1•7 months ago
|
||
This can also include whether the policy is relevant to Firefox for Enterprise (e.g. Firefox Accounts settings).
| Reporter | ||
Updated•6 months ago
|
| Reporter | ||
Comment 2•6 months ago
|
||
Note: https://github.com/mozilla-firefox/firefox/commit/983c21b678c9b8d2c45b048deb899d5f237efab2
But: https://github.com/mozilla/policy-templates/issues/135 wasn't entirely followed up on.
| Reporter | ||
Updated•6 months ago
|
| Assignee | ||
Comment 3•5 months ago
•
|
||
I have the impression we are converging on having this in data in https://github.com/mozilla-firefox/firefox/blob/main/browser/components/enterprisepolicies/schemas/policies-schema.json
But containing additional members, like:
{
"DisableTelemetry": {
"description": "Disables the collection and submission of telemetry data.",
"x-requires_restart": true,
"x-compatibility": {
"firefox": {
"version_added": "50"
},
"firefox_esr": {
"version_added": "50"
},
"firefox_enterprise": {
"version_added": "70"
}
}
}
}
For validation, it may look like this example I was roughly drafting: https://github.com/bsmth/policy-compat-data/blob/main/data/policy-compat-data.schema.json
Historical context:
- Version support info removed in https://github.com/mozilla-firefox/firefox/commit/983c21b678c9b8d2c45b048deb899d5f237efab2
- Descriptions moved out into ftl files for translations https://github.com/mozilla-firefox/firefox/commit/4bc09a8e18cd3a797cd5f96fa14ba40ec4dba987
edit:
- Adding
x-prefix for non-standard fields
Comment 4•3 months ago
|
||
| Assignee | ||
Comment 5•3 months ago
|
||
I'm proposing a linter in https://github.com/mozilla/enterprise-firefox/pull/910 to enforce the current shape of policies-schema.json.
Updated•2 months ago
|
| Reporter | ||
Updated•2 months ago
|
| Assignee | ||
Comment 7•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 10•1 month ago
|
||
There's still some work to do on this, so reopening. The tests have now landed, so all new policies must have description, category, and examples. The missing parts are compat and 'restart required' info, they're coming in follow-up patches.
| Assignee | ||
Updated•20 days ago
|
| Assignee | ||
Comment 11•14 days ago
|
||
We can close as done now, well done!
| Assignee | ||
Updated•7 days ago
|
Description
•