fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Update `FLEET_MDM_ENABLE_CUSTOM_FILEVAULT` to allow custom BitLocker profiles

Open noahtalerman opened this issue 7 months ago • 11 comments

Goal

User story
As an IT admin,
I want Fleet to update FLEET_MDM_ENABLE_CUSTOM_FILEVAULT to support custom BitLocker configure profiles
so that I can add a custom BitLocker profile.

Demo: https://www.youtube.com/watch?v=5naGaZKLZ8o Docs: https://github.com/fleetdm/fleet/pull/48738/changes

Changes

Product

  • [ ] Add a second name FLEET_MDM_ENABLE_CUSTOM_DISK_ENCRYPTION for FLEET_MDM_ENABLE_CUSTOM_FILEVAULT env variable to enable custom BitLocker configuration profile.
  • [ ] We don't do anything special if we use UI controls and a custom configuration profile for FileVault, so we want the same behavior for BitLocker.
  • [ ] UI changes: No changes.
  • [ ] CLI (fleetctl) usage changes: No changes
  • [ ] YAML changes: No changes
  • [ ] REST API changes: No changes
  • [ ] Fleet's agent (fleetd) changes: No changes
  • [ ] Fleet server configuration changes:
    • Add FLEET_MDM_ENABLE_CUSTOM_DISK_ENCRYPTION as a new alias for the existing FLEET_MDM_ENABLE_CUSTOM_FILEVAULT env variable. Both names should be accepted. Document the new name in the Fleet server configuration docs page. File a :help-customers request for Customer Success to evaluate cloud environment changes.
  • [ ] Exposed, public API endpoint changes: No changes
  • [ ] fleetdm.com changes: No changes
  • [ ] GitOps mode UI changes: No changes
  • [ ] GitOps generation changes: No changes
  • [ ] Activity changes: No changes
  • [ ] Permissions changes: No changes
  • [ ] Changes to paid features or tiers: No changes
  • [ ] My device and fleetdm.com/better changes: No changes
  • [ ] Usage statistics: No changes
  • [ ] Other reference documentation changes: No changes
  • [ ] First draft of test plan added
  • [ ] Once shipped, requester has been notified
  • [ ] Once shipped, dogfooding issue has been filed https://github.com/fleetdm/fleet/issues/50986

Engineering

  • [ ] Test plan is finalized
  • [ ] Contributor API changes: No changes
  • [ ] Feature guide changes: docs PR

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

Risk assessment

  • Risk level: Low

Test plan

Make sure to go through [the list](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/ui/design-qa-considerations.md) and consider all events that might be related to this story, so we catch edge cases earlier.

Core flow

  • [x] Start Fleet with FLEET_MDM_ENABLE_CUSTOM_DISK_ENCRYPTION=1. Upload a custom BitLocker profile to a Windows team. Confirm it is accepted and appears in the profiles list.
  • [x] Restart Fleet with FLEET_MDM_ENABLE_CUSTOM_FILEVAULT=1 (old flag, new flag unset). Upload a custom BitLocker profile. Confirm it is also accepted (backward compat — the existing flag now enables BitLocker as well).

Edge cases

  • [x] Start Fleet with neither flag set. Attempt to upload a custom BitLocker profile. Confirm the request is rejected with a clear error.

Confirmation

  1. [x] Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
  2. [ ] QA: Added comment to user story confirming successful completion of test plan.
  3. [ ] QA: Determined whether this story needs Playwright automation.
    • Needs automation: Yes / No
    • If yes, filed a follow-up issue in the :help-qa project with status "Needs automation":

noahtalerman avatar Apr 14 '26 14:04 noahtalerman

FYI @marko-lisica @getvictor small story I think we want to try to squeeze into 4.86. Probably want to add a second, cross-platform name like FLEET_MDM_ENABLE_CUSTOM_OS_UPDATES_AND_DISK_ENCRYPTION

noahtalerman avatar Apr 14 '26 14:04 noahtalerman

Hey @getvictor, heads up, this is ready to be worked on (fast draft).

marko-lisica avatar Apr 21 '26 14:04 marko-lisica

This can be moved to the "Ready" column.

marko-lisica avatar May 13 '26 15:05 marko-lisica

@melpike Instead of FLEET_MDM_ENABLE_DISK_ENCRYPTION I'm going with FLEET_MDM_ENABLE_CUSTOM_DISK_ENCRYPTION server config.

I'm trying to improve reliability/consistency. We already have mdm.enable_disk_encryption setting for each team which means "enforce encryption". So, I don't want to overload that existing name with a different meaning in the server config.

getvictor avatar Jul 06 '26 10:07 getvictor

Completed test plan. Note: using FLEET_MDM_ENABLE_CUSTOM_DISK_ENCRYPTION server config.

getvictor avatar Jul 06 '26 12:07 getvictor

Updated test plan in description with more detailed testing steps for my sanity, and removed it from this comment.

thisisjoegrant avatar Jul 21 '26 21:07 thisisjoegrant

Confirmed both old and new flags work as expected.

thisisjoegrant avatar Jul 31 '26 17:07 thisisjoegrant

Hey @melpike just a reminder that, as part of confirm and celebrate, we want to close the story (this issue) and assign the original request to a CSM:

Image

Also a reminder to leave a comment in the original issue that explains whether we think the request is fulfilled or not (there's more iterations coming).

I closed this issue and assigned the original request to @kellykroening. cc @ddribeiro

noahtalerman avatar Sep 01 '26 14:09 noahtalerman

Windows devices gain freedom one config unlocks both paths security flows smooth

fleet-release avatar Sep 01 '26 14:09 fleet-release

@melpike just chatted w/ @ddribeiro and learned that it's actually simpler to just always pass stories (instead of the original request). So, I just changed what we did here and updated the handbook: https://github.com/fleetdm/fleet/pull/52291

Let's pass stories to CSMs going forward.

Sorry for the confusion!

noahtalerman avatar Sep 01 '26 17:09 noahtalerman

Windows users gain freedom same custom encryption choice as Mac now receives

fleet-release avatar Oct 12 '26 12:10 fleet-release