Skip to content

Bug 2066822 - Enables enterprise storage encryption by default - #1345

Open
1rneh wants to merge 6 commits into
mozilla:enterprise-mainfrom
1rneh:bug-2066822-enterprise-encryption-default-on
Open

Bug 2066822 - Enables enterprise storage encryption by default#1345
1rneh wants to merge 6 commits into
mozilla:enterprise-mainfrom
1rneh:bug-2066822-enterprise-encryption-default-on

Conversation

@1rneh

@1rneh 1rneh commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Description

Bugzilla: Bug-2066822

  • Flips security.storage.encryption.enabled to true
  • Deprecates the policy EnterpriseStorageEncryption, and since it's not consumed yet we can remove it entirely.

Testing

  • Added tests
  • Manual testing performed

@1rneh
1rneh requested a review from a team August 26, 2026 15:58
@1rneh 1rneh self-assigned this Aug 26, 2026
Copilot AI lite review requested due to automatic review settings August 26, 2026 15:58
@1rneh 1rneh added the branch:main PR that should be merged on enterprise-main branch label Aug 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables the enterprise storage encryption feature by default via a pref default change, and removes the now-redundant EnterprisePolicies surface area for the EnterpriseStorageEncryption policy.

Changes:

  • Enables security.storage.encryption.enabled by default for enterprise builds (and removes the test override that is no longer needed).
  • Removes the EnterpriseStorageEncryption policy from the policies schema, implementation, descriptions, and xpcshell policy tests.
  • Removes sample policy JSON files related to enterprise storage encryption.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
security/manager/ssl/tests/unit/test_sdr_enterprise_logout.js Removes explicit pref override since the feature is enabled by default in targeted builds.
modules/libpref/init/StaticPrefList.yaml Changes the default for security.storage.encryption.enabled (enterprise-only).
browser/locales/en-US/browser/enterprise/enterprise-policies-descriptions.ftl Removes the policy description string for the deleted policy.
browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js Removes the policy test case for EnterpriseStorageEncryption.
browser/components/enterprisepolicies/schemas/policies-schema.json Removes the EnterpriseStorageEncryption policy schema entry.
browser/components/enterprisepolicies/Policies.sys.mjs Removes the policy handler and its security-pref allowlisting entry.
browser/components/enterprisepolicies/helpers/sample_storage_encryption.json Deletes the sample JSON that referenced the removed policy.
browser/components/enterprisepolicies/helpers/sample_enterprise_storage_encryption.json Deletes the duplicate/alternate sample JSON that referenced the removed policy.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread modules/libpref/init/StaticPrefList.yaml Outdated
@1rneh
1rneh removed the request for review from a team August 26, 2026 16:05
Comment thread modules/libpref/init/StaticPrefList.yaml Outdated

@lissyx lissyx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with the suggested changes

@1rneh

1rneh commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

@lissyx You're just too fast. I had removed the requested review just a few seconds after putting it 😄

- Flips security.storage.encryption.enabled to true
- Removes the policy EnterpriseStorageEncryption
Copilot AI review requested due to automatic review settings August 26, 2026 19:51
@1rneh
1rneh force-pushed the bug-2066822-enterprise-encryption-default-on branch from d033918 to 942e784 Compare August 26, 2026 19:51
@1rneh
1rneh force-pushed the bug-2066822-enterprise-encryption-default-on branch from 942e784 to e699841 Compare August 26, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Comment thread modules/libpref/init/StaticPrefList.yaml
Copilot AI review requested due to automatic review settings August 26, 2026 19:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

modules/libpref/init/StaticPrefList.yaml:19252

  • Grammar in the pref comment: “with a enterprise console” should be “with an enterprise console”, and “console provisioned” should be hyphenated as “console-provisioned”.
# INTERNAL -- DO NOT ENABLE. Master switch for enterprise storage encryption:
# at startup the browser unlocks the internal NSS token with a enterprise console
# provisioned secret, and fails closed (force-quit) if that secret is unavailable.
# Don't enable it on unprovisioned builds.

Comment thread toolkit/components/enterprise/tests/xpcshell/xpcshell.toml
Copilot AI review requested due to automatic review settings August 27, 2026 09:00
@1rneh
1rneh force-pushed the bug-2066822-enterprise-encryption-default-on branch from e699841 to 6b7643b Compare August 27, 2026 09:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Comment thread modules/libpref/init/StaticPrefList.yaml
Copilot AI review requested due to automatic review settings August 27, 2026 14:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

modules/libpref/init/StaticPrefList.yaml:19251

  • Grammar in this pref comment is off: "with a enterprise console" should be "with an enterprise console" (and keeping "console-provisioned" hyphenation improves readability).
# INTERNAL -- DO NOT ENABLE. Master switch for enterprise storage encryption:
# at startup the browser unlocks the internal NSS token with an enterprise console
# provisioned secret, and fails closed (force-quit) if that secret is unavailable.

Comment thread toolkit/components/passwordmgr/test/mochitest/mochitest.toml
Copilot AI review requested due to automatic review settings August 27, 2026 14:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Suppressed comments (2)

Previously missed (1) — in code that hasn't changed since the last review.

toolkit/components/enterprise/tests/xpcshell/xpcshell.toml:4

  • This xpcshell manifest only gates on buildapp == 'browser', but the test imports and exercises enterprise-only behavior (EnterpriseStorageEncryption). On non-enterprise builds this can be inapplicable or even fail to load (depending on packaging). Consider also gating on enterprise to avoid running it in configurations where the feature is not present.
["test_storage_encryption.js"]
run-if = ["buildapp == 'browser'"]

toolkit/components/passwordmgr/test/mochitest/mochitest.toml:432

  • Typo in the skip-if comment: “primpary” → “primary”.
  "enterprise", # On enterprise builds the primpary password is provisioned by the console and keeps the token logged in.

Comment on lines 13 to 20
if (
AppConstants.MOZ_ENTERPRISE &&
Services.prefs.getBoolPref(
"security.storage.encryption.enabled",
false
) &&
!Services.felt?.isFeltUI()
Services.felt?.isFeltBrowser()
) {
await this.load();
…o bug-2066822-enterprise-encryption-default-on
Copilot AI review requested due to automatic review settings August 27, 2026 20:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch:main PR that should be merged on enterprise-main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants