Closed Bug 2074359 Opened 2 months ago Closed 26 days ago

Use compat info to hide unsupported policies

Categories

(Enterprise Products :: Console, task, P1)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bsmth, Assigned: andip)

References

Details

User Story

As an enterprise admin, I shouldn't be able to see policies in the editor which are not supported so that I can avoid sending irrelevant policies to clients.

AC:

- The console doesn't list any policy which is not supported according to `x-compatibility`

Attachments

(4 files, 3 external files)

Blocks: 2036704
Target Milestone: MVP → V1
Assignee: nobody → apieper
No longer blocks: 2060298
See Also: → 2070529
Attached file GitHub Pull Request —
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 days ago
Resolution: --- → FIXED
Flags: qe-verify+
Attached image pasted-image.png —

Hello,
I assume these changes are not yet in the current console because we still see unsupported policies in the editor and they are not marked as "unsupported".
Console version tested: v0.8.0, commit:8159781c6d11f352c2bc5d5861381bacfdae6e69 .
Thank you.

QA Contact: lburuian
Attached image 2026-11-05_11h08_19.png —

Hello,
Verified this using the latest console, v0.9.0, commit: 3b3fa5d9aaab4453dd4a577e9efc5139dc55ecae, and this policy schema, for the following policies with "firefox_enterprise": { "version_added": false }

  • BlockAboutProfiles - it has the "Unsupported" flag but still can be set up
  • Bookmarks - does not show up at all
  • DisableAccounts - does not show up at all
  • DisableFirefoxAccounts - does not show up at all
  • DisableFirefoxStudies - does not show up at all
  • DisableMasterPasswordCreation - does not show up at all
  • DisablePocket - does not show up at all
  • DisablePrivateBrowsing - does not show up at all
  • DisableTelemetry - does not show up at all
  • Extensions - does not show up at all
  • "Snippets" from the FirefoxHome policy - The option still shows up inside the FirefoxHome setup (see image).
  • LegacyProfiles - does not show up at all
  • PrimaryPassword - does not show up at all
  • UserMessaging - does not show up at all

Should we log an issue for the FirefoxHome policy or is that expected?
Thank you.

Flags: needinfo?(apieper)
Attached image 2026-11-05_11h24_00.png —

I think there are two issues her:

1
Hiding the unsupported policies: The policies schema used to compare has to be the same that the console knows about, i.e. what the latest release brought with it. There are situations whre an unspported policy is in the console data. In that case, the policy still gets displayed, but with a warning. In the JSON editor, it is actually still possible to put in unsupported policies. This is to support people that copy-paste stuff into the json editor for a policy migration or cases where policies became unsupported by an update to policies-schema.json. So in the above example, I assume the BlockAboutProfiles policy was already set up before and now shows the warning on the visual editor - as it was meant to work.

2
Hiding certain values deep inside of the policy (Snippets). This is an actual issue, the code currently ony looks at top-level x-compatibility annotations. CUrrently, there is only a single instance where this is happening, the noted Snippets value of the FirefoxHome policy.

I will create a fix for the second issue (unsupported deep policy values).

Attached file GitHub Pull Request —
Flags: needinfo?(apieper)

Thank you Andi.

  1. Indeed, the BlockAboutProfiles policy is set at user level, hence it shows up as unsupported. It does not show up at Company level, since it is not set up there.
    Thank you for confirming.
  2. Thank you for fixing the issue. Please let us know once that is done, so that we can check it and close this issue.

Thank you.

Attached file GitHub Pull Request —
Attached image pasted-image.png —

Verified this using console version v0.11.0 (commit: d6823dc1c3203a8335eda34e96221de9219fc88a), and the Snippets value is no longer displayed in the console.
Also, the option is marked as not compatible with FxE in the policy schema.
Marking this as Verified.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: