Update `FLEET_MDM_ENABLE_CUSTOM_FILEVAULT` to allow custom BitLocker profiles
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_ENCRYPTIONforFLEET_MDM_ENABLE_CUSTOM_FILEVAULTenv 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_ENCRYPTIONas a new alias for the existingFLEET_MDM_ENABLE_CUSTOM_FILEVAULTenv variable. Both names should be accepted. Document the new name in the Fleet server configuration docs page. File a:help-customersrequest for Customer Success to evaluate cloud environment changes.
- Add
- [ ] 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
- [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).
- [ ] QA: Added comment to user story confirming successful completion of test plan.
- [ ] 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":
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
Hey @getvictor, heads up, this is ready to be worked on (fast draft).
This can be moved to the "Ready" column.
@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.
Completed test plan. Note: using FLEET_MDM_ENABLE_CUSTOM_DISK_ENCRYPTION server config.
Updated test plan in description with more detailed testing steps for my sanity, and removed it from this comment.
Confirmed both old and new flags work as expected.
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:
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
Windows devices gain freedom one config unlocks both paths security flows smooth
@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!
Windows users gain freedom same custom encryption choice as Mac now receives