fleet
fleet copied to clipboard
Deleting a host from Fleet does not delete related IdP records
Fleet version: 4.78.0
Expected behavior
When a host is deleted from Fleet, any related IdP records should also be deleted so that when if the host re-enrolls (and end-user authentication is on), the user is forced to re-authenticate.
💥 Actual behavior
When a host is deleted from Fleet, they are able to re-enroll without re-authenticating even if end-user authentication is turned on.
🛠️ To fix
- Delete all
host_mdm_idp_accountsandmdm_idp_accountsrows related to the host.
🧑💻 Steps to reproduce
These steps:
- [X] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- Go to Controls -> Setup Experience and turn on End User Authentication on a team
- Enroll a Windows or Linux host to that team, logging in via SSO to complete the enrollment
- Delete the host from Fleet
- Uninstall Orbit from the host
- Re-enroll the host to Fleet
Notice that enrollment proceeds without the SSO window popping up.