-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include Linux disk encryption status in configuration profiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS #24114
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #24114 +/- ##
==========================================
- Coverage 63.42% 54.07% -9.35%
==========================================
Files 1579 1579
Lines 149948 150098 +150
Branches 3818 3818
==========================================
- Hits 95106 81172 -13934
- Misses 47261 62208 +14947
+ Partials 7581 6718 -863
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
bfc10d1
to
d8b51c9
Compare
Merging in my existing integration tests branch here as I need the integration test started there to confirm this is behaving correctly. Will probably expand PR scope for the other config known issue(s). |
…ility in profiles stats by whether disk encryption is enabled
…ult on enabling encryption if macOS MDM isn't enabled
ad30999
to
1a716f5
Compare
…urned on, skip FileVault config when enabling disk encryption when macOS MDM is off Also ensures disk encryption on a per-team basis works as expected. TODO: set up FileVault if Mac MDM gets enabled after encryption enforcement is enabled.
…nfigured, set up FileVault escrow at that time
… to ensure LUKS platform check works on key retrieval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Left just a small question.
} | ||
} | ||
// Enable FileVault escrow for teams that already have disk encryption enforced | ||
// For later: add a data store method to avoid making an extra query per team to check whether encryption is enforced |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ListTeams
is used in a few places to list all teams along with their config? E.g. here:
fleet/server/cron/calendar_cron.go
Lines 76 to 82 in b6c5113
teams, err := ds.ListTeams( | |
ctx, fleet.TeamFilter{ | |
User: &fleet.User{ | |
GlobalRole: ptr.String(fleet.RoleAdmin), | |
}, | |
}, fleet.ListOptions{}, | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Considered that but it pulls way more data so it wasn't clear that it was better than an N+1 here, so will leave this as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My approval specifically covers the FE changes @jacobshandling made (and that I didn't touch), in my capacity as "being able to review FE code"; thx @lucasmrod for the BE approval!
|
…ate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24114) ## Addresses #24112, #24116, #23587 **For #24112, Counts included:** <img width="1392" alt="Screenshot 2024-11-22 at 5 31 06 PM" src="https://github.com/user-attachments/assets/2bb306d7-1130-4106-aef8-475b8be1f6b2"> - [x] Include counts when disk encryption is enforced - [x] Exclude counts when disk encryption isn't enforced __ - [x] Added/updated tests --------- Co-authored-by: Jacob Shandling <[email protected]> Co-authored-by: Ian Littman <[email protected]>
…ofiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24124) Cherry-pick of #24114, for #24112, #24116, #23587 Co-authored-by: jacobshandling <[email protected]> Co-authored-by: Jacob Shandling <[email protected]>
Addresses #24112, #24116, #23587
For #24112, Counts included:

__