fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.02k stars 419 forks source link

Finalize CLI commands to remotely wipe a host #10494

Closed lukeheath closed 7 months ago

lukeheath commented 1 year ago

Premium feature only

CLI usage

Add a fleetctl mdm wipe command

$ fleetctl mdm wipe --host=Alexs-MacBook-Pro.local

Copy and run this command to see results:

fleetctl get mdm-command-results --id=1

Errors

If --host isn't specified, display this error:

Error: No host targeted. Please provide --host.

If the --host doesn't exist, display this error:

Error: The host doesn't exist. Please provide a valid hostname.

If the --host isn't connected to Fleet's MDM server, display this error:

Error: Can't wipe the host because it doesn't have MDM turned on. You can't turn on MDM remotely because Apple requires that the end user turns on MDM.

If the the user doesn't have permissions to wipe the host, display this error:

Error: Permission denied. You don't have permission to wipe this host.

Error if MDM features aren't turned on in Fleet: Display this error message:

Error: MDM features aren't turned on. Use fleetctl generate mdm-apple and then f`leet serve with mdm configuration to turn on MDM features.

Help pages

fleetctl mdm wipe

$ fleetctl mdm wipe -h
NAME:
   fleetctl mdm wipe -h -  Wipe a host when it's been lost or stolen. You will have to reinstall macOS before the Mac can be used.

OPTIONS:
   --host                                          The host, specified by hostname, that you want to wipe remotely.
lukeheath commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @gillespi314 @mna @roperzh

zhumo commented 1 year ago

Hi @lukeheath , this story did not make it into the current sprint, so I'm de-prioritizing it. Please bring it back to FF if necessary.

fleet-release commented 7 months ago

I couldn't think of a haiku this time. (See fleetdm.com logs for more information.)