Open ddribeiro opened 1 week ago
Many organizations use an MDM solution to distribute certificates to their hosts. Keeping certificate issuance and delivery tied to an MDM solution provides an incentive for their end users to enroll their host in the MDM and keep it enrolled. If a host is not under management, it can’t access the corporate networks.
Today, Fleet can be used to generate and deliver certificates to Linux hosts via scripting solutions. However, the certificates generated with this method remain on the host if the end user unenrolls it from management. This could create a situation where a user enrolls their host only tool to receive the certificate, then unenrolls their host once they have it.
I tried looking for ways to run a script upon unenrollment, but did not find any option.
A potential solution could be to have a Fleet-managed directory that admins would install the certificates to. Since Fleet knows about this directory, it could remove the directory along with the contents inside it when the Fleet agent is removed from the computer.
customer-cisneros
: Slack thread: https://fleetdm.slack.com/archives/C072L58U878/p1731611409633929