Skip to content

macOS/Windows hosts show "Pending" disk encryption status when MDM is turned off #24119

@iansltx

Description

@iansltx

Goal

User story
As an IT admin enforcing disk encryption on only Linux workstations,
I want to see empty counts for macOS and Windows hosts on the Controls > OS settings > Disk encryption page
so that I know Fleet is only enforcing disk encryption on Linux hosts.

Key result

Small UX improvements

Original requests

None.

Context

Original issue description: #24119 (comment)

Changes

Product

  • UI changes: Figma here.
  • CLI (fleetctl) usage changes: No changes.
  • YAML changes: No changes.
  • REST API changes: [API design] macOS/Windows hosts show "Pending" disk encryption status when MDM is turned off #27271
    • If MDM isn't turned on for Apple or Windows, than count for respective platform should return null
  • Fleet's agent (fleetd) changes: No changes.
  • GitOps mode changes: No changes.
  • Activity changes: No changes.
  • Permissions changes: No changes.
  • Changes to paid features or tiers: Disk encryption is Fleet Premium only
  • Transparency changes: No changes.
  • First draft of test plan added
  • Other reference documentation changes: No changes.
  • Once shipped, requester has been notified
  • Once shipped, dogfooding issue has been filed

Engineering

  • Test plan is finalized
  • Feature guide changes: TODO
  • Database schema migrations: TODO
  • Load testing: TODO

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

QA

Risk assessment

  • Requires load testing: TODO
  • Risk level: Low / High TODO
  • Risk description: TODO

Test plan

UI

  • With macOS and Windows MDM turned off, enroll a Linux host and turn on disk encryption. On the Controls > OS settings > Disk encryption page and verify that all host counts for the macOS and Windows hosts display ---.
  • Turn on macOS MDM. On the Controls > OS settings > Disk encryption page and verify that the host counts for Windows hosts display ---. Now turn off macOS MDM and turn on Windows MDM. Verify that the macOS host counts display ---.

API

  • With macOS and Windows MDM turned off, enroll a Linux host and turn on disk encryption. Hit the Get disk encryption statistics API endpoint and verify that all host counts for the macOS and Windows hosts return null.
  • Turn on macOS MDM. Get disk encryption statistics API endpoint and verify that the host counts for Windows hosts return null. Now turn off macOS MDM and turn on Windows MDM. Verify that the macOS host counts are reset to null.
  • For each of these tests, also hit the Get host API endpoint and verify that the mdm.os_settings.disk_encryption status is correct. For example, when macOS MDM is turned off, the status should be empty.

Testing notes

Sarah: What if MDM is on for macOS but turned off for Windows and you have both hosts on the same team with encryption turned on?
Gabe: tested and verified when mdm is off for windows and I move the host to a team with Encryption on it doesn't show up as pending. The minute I turn Windows MDM on and the host checks in it does get added to the pending count

Confirmation

  1. Engineer: Added comment to user story confirming successful completion of test plan.
  2. QA: Added comment to user story confirming successful completion of test plan.

Metadata

Metadata

Assignees

Labels

#g-security-complianceSecurity & Compliance product group:productProduct Design department (shows up on 🦢 Drafting board)storyA user story defining an entire feature~dogfoodIssue resulted from Fleet's product dogfooding.

Type

No type

Projects

Status

🥚 Ready

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions