Use compat info to hide unsupported policies
Categories
(Enterprise Products :: Console, task, P1)
Tracking
(Not tracked)
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)
References:
- https://bugzilla.mozilla.org/show_bug.cgi?id=2060298#c1
- https://github.com/mozilla/enterprise-firefox/blob/enterprise-main/browser/components/enterprisepolicies/schemas/policies-schema.json
Check for:
"firefox_enterprise": { "version_added": false }
| Reporter | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
| Assignee | ||
Updated•1 month ago
|
Updated•26 days ago
|
| Reporter | ||
Updated•26 days ago
|
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.
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.
| Assignee | ||
Comment 5•19 days ago
|
||
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).
| Assignee | ||
Comment 6•18 days ago
|
||
Thank you Andi.
- Indeed, the
BlockAboutProfilespolicy 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. - 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.
| Assignee | ||
Comment 8•13 days ago
|
||
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.
Description
•