fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Remove disk encryption key access from Observer; grant it to Observer+ and Technician

Open andreasn-work opened this issue 1 week ago • 0 comments

  • [ ] Gong snippet: N/A, request came in via Slack: https://fleetdm.slack.com/archives/C0A7UGX5GH4/p1795217035898549

  • customer-tomoki: User requested this because they want to give Fleet access to non-technical stakeholders (decision-makers, procurement, leadership) without those users being able to retrieve disk encryption keys and unlock any computer in the organization. Today, the Observer role can read disk encryption keys (FileVault/BitLocker), which makes Observer unsafe for that audience. The ask is to remove key access from Observer and allow Observer+ and Technician to view keys instead.

Background (from customer-tomoki's research)

  • #8708 (opened 2022-11-14), "Access FileVault disk encryption key, store in Fleet database, and serve via API endpoints." Requirement 1: Fleet admins, maintainers, and observers can see the disk encryption key for macOS hosts.
  • #9713 (merged 2023-02-08) added GET /hosts/:id/encryption_key with a code comment stating that permissions to read encryption keys are the same as the permissions to read hosts. That comment hasn't changed since.
  • The separate endpoint exists so that viewing a key creates an activity (audit logging), not for access control. This was confirmed in the #8708 discussion when a developer asked why the key wasn't part of Get host.
  • Fleet-level scoping was discussed (fleet-level roles only see keys for their own fleets' hosts), but whether Observer should see keys at all was never raised.
  • Observer+ and Technician roles were added after this decision, so the original permission model didn't account for them.

Proposed change

Role Can view disk encryption keys today Requested
Admin Yes Yes
Maintainer Yes Yes
Technician ? Yes
Observer+ Yes Yes
Observer Yes No

Applies to both global and fleet-level roles, UI and API (GET /hosts/:id/encryption_key).

andreasn-work avatar Nov 23 '26 21:11 andreasn-work