Open Bug 2008554 Opened 4 months ago Updated 2 days ago

Single source of truth for policy capabilities

Categories

(Firefox Enterprise :: General, task)

x86_64
Linux

Tracking

(Not tracked)

People

(Reporter: gcp, Unassigned)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

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.

This can also include whether the policy is relevant to Firefox for Enterprise (e.g. Firefox Accounts settings).

Target Milestone: --- → MVP
Severity: -- → S2

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.",
    "requires_restart": true,
    "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:

  1. Version support info removed in https://github.com/mozilla-firefox/firefox/commit/983c21b678c9b8d2c45b048deb899d5f237efab2
  2. Descriptions moved out into ftl files for translations https://github.com/mozilla-firefox/firefox/commit/4bc09a8e18cd3a797cd5f96fa14ba40ec4dba987
See Also: → 2012084
Blocks: 2036704

I'm proposing a linter in https://github.com/mozilla/enterprise-firefox/pull/910 to enforce the current shape of policies-schema.json.

See Also: → 2040651
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: