fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Disk encryption profile is not appearing while setting is enabled

Open rebeccaui opened this issue 1 year ago • 9 comments

Fleet version: 4.61.0

Web browser and operating system: macOS 15.2, 15.1.1, 15.0.1, 14.5


💥  Actual behavior

Disk encryption is enabled in the OS Settings, but the disk encryption profile is not present in the host's System Settings or in the OS settings modal on the host's page. Most users also did not have the recovery key available on Fleet after restarting, while one user did. This is all occurring in No Team.

image

🧑‍💻  Steps to reproduce

  1. TODO
  2. TODO

🕯️ More info (optional)

N/A

rebeccaui avatar Dec 31 '24 19:12 rebeccaui

@rebeccaui Could you add some more context? where was this seen and did the numbers ever update later? Thanks!

georgekarrv avatar Jan 02 '25 17:01 georgekarrv

Linked to Unthread ticket:

Disk encryption issue with Fleet instance #4014

JoStableford avatar Jan 02 '25 21:01 JoStableford

@georgekarrv I've linked the conversation for additional context.

rebeccaui avatar Jan 02 '25 21:01 rebeccaui

Looking at the OS Query results for that host it does appear to be encrypted = Vincent’s MacBook Pro - /dev/disk3s1s1 - encrypted - /System/Volumes/Data - apfs

@rebeccaui were these devices -

  • already encrypted prior to enrolling in Fleet?
  • managed by a different MDM prior to enrolling in Fleet?
  • manually enrolled in Fleet or via ABM?
  • Did they move teams at any point after getting enrolled in Fleet?
  • I'm also curious if all the other config profiles that are part of no team are reaching the host?

Assuming they were already encrypted prior to Fleet enrollment, I tested the following workflow - I unenrolled/wiped my device, encrypted the disk manually, then manually enrolled to Fleet on no team with encryption enabled. My host does show the Disk Encryption Profile but it's stuck in Pending (and the banner still shows on My Device) even after several restarts and log outs so something does appear to be broken when enrolling hosts into fleet that are already encrypted. After looking at the orbit logs it shows that Escrow Buddy is failing -

2025-01-05T15:56:24-08:00 INF refreshing the update runner config with Escrow Buddy targets and hashes
2025-01-05T15:56:24-08:00 ERR running config receivers error="failed to re-enable Escrow Buddy in the authorization database, err: exit status 127: sh: /Library/Security/SecurityAgentPlugins/Escrow Buddy.bundle/Contents/Resources/AuthDBSetup.sh: No such file or directory\n"

PezHub avatar Jan 06 '25 00:01 PezHub

@PezHub Agreed about the query results.

Here are the answers to your questions:

  1. Yes, the devices were encrypted prior to enrolling to Fleet. However, the device from the screenshots DID have the profile and recovery key for available on Fleet for a limited time. Both are now gone.
  2. No, the devices were not managed by another MDM prior to Fleet.
  3. They have both manual enrollments and automatic enrollments.
  4. Some devices did move teams, but some did not.
  5. Based on the screenshots, it appears as though the other config profiles are present.

rebeccaui avatar Jan 06 '25 16:01 rebeccaui

@rebeccaui @gillespi314 I did not see anything broken when playing with macOS encryption on No Team today. I'd like to get some more details on how to reproduce this issue. I'm not looking at Gabe's experiment at the moment since that's not what the customer is experiencing.

A couple of things to note:

  • macOS encryption keys may take up to 2 hours to show up, since verification involves 2 jobs that run every hour
  • if MDM doesn't seem to be working, try testing it by uploading a simple config profile and see if it makes it to the device
  • there was an MDM bug introduced in 4.61.0 and fixed in 4.62.1 #24816 -- is the issue seen before 4.61.0 or in 4.62.1? (Note: this bug is only relevant if replica DB is used)

getvictor avatar Jan 14 '25 23:01 getvictor

@georgekarrv assigning to you for clarification and/or next steps

getvictor avatar Feb 04 '25 17:02 getvictor

This could be a symptom of the concurrent client-side API calls, which were addressed by the client here. If we're not able to reproduce locally, I'd suggest we close this issue for now and re-open if the client experiences this problem again using their updated application.

gillespi314 avatar Feb 05 '25 18:02 gillespi314

Hey @rebeccaui can you please add reproduction steps?

noahtalerman avatar Feb 10 '25 15:02 noahtalerman

From Pinto - Checked with the customer and it hasn't resurfaced. Closing out and will reopen a new one with new info if they see it again

zayhanlon avatar May 27 '25 16:05 zayhanlon

Encryption profile gone, Fleet's swift fix brings it back, Secure data dawn.

fleet-release avatar May 27 '25 16:05 fleet-release