fleet
fleet copied to clipboard
Lock command can be sent via API to macOS host that has MDM turned on and then turned off.
Fleet version: 4.69.0
💥 Actual behavior
I hit POST /api/v1/fleet/hosts/:id/lock to lock host that has MDM turned off. It was successful and lock pending badge appeared on the host details.
🧑💻 Steps to reproduce
- Find a macOS host that has MDM turned off
- Take the host ID.
- Hit
POST /api/v1/fleet/hosts/:id/lock - Observe successful request, even though MDM is required to lock Mac
🕯️ More info (optional)
N/A
🛠️ To fix
Product designer: @marko-lisica
The user shouldn't be able to send a lock request via API to Apple hosts that have MDM turned off.
Show error if the user tries to do so. Can't lock the host because it doesn't have MDM turned on.