Enforce FileVault at login when manually enrolled#31170
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #31170 +/- ##
==========================================
+ Coverage 63.73% 64.19% +0.46%
==========================================
Files 1958 1914 -44
Lines 190652 188680 -1972
Branches 6179 5317 -862
==========================================
- Hits 121504 121128 -376
+ Misses 59625 58015 -1610
- Partials 9523 9537 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c85d0c2 to
f4079e3
Compare
Done by not allowing any deferrals as before one deferral was allowed
f4079e3 to
f438795
Compare
|
Marked as Draft as we want to potentially do load testing for it. Another option, not sure if that is too hacky is to avoid updating the Checksum on the new filevault profile and instead just update the contents of the profile which would result in new hosts getting the new value but not resending the profile to all old hosts. |
Agreed to not update the checksum for existing filevault profiles, to avoid resending the profile to all hosts. |
gillespi314
left a comment
There was a problem hiding this comment.
LGTM, suggestions for a handful of small changes then good to go!
server/datastore/mysql/migrations/tables/20250723111413_EnforceFileVaultAtLogin.go
Outdated
Show resolved
Hide resolved
server/datastore/mysql/migrations/tables/20250723111413_EnforceFileVaultAtLogin.go
Show resolved
Hide resolved
…vault-on-login-for-manual-enrollments
…vault-on-login-for-manual-enrollments
Done by not allowing any deferrals as before one deferral was allowed
fixes: #29250
There is no doc change as we nowhere state that we allow one deferral, let me know if we want to write somewhere that this is now the standard behaviour.
I also investigated trying to force it directly when the profile arrived but without any luck, so still need a logout/login to get filevault enabled, but it's no longer possible to cancel/defer it.
Do verify when testing in automatic enrollment that FileVault is still enforced as I can't test Automatic enrollment yet.
Checklist for submitter
If some of the following don't apply, delete the relevant line.
changes/,orbit/changes/oree/fleetd-chrome/changes.See Changes files for more information.
COLLATE utf8mb4_unicode_ci).