Skip to content

Android host certificate templates not cleared when device is re-enrolled #42600

@dantecatalfamo

Description

@dantecatalfamo

Fleet versions Fleet orbit-v1.53.0-945-g66b5947b48-dirty • Go go1.26.1

  • Discovered: Fleet orbit-v1.53.0-945-g66b5947b48-dirty • Go go1.26.1
  • Reproduced: Fleet orbit-v1.53.0-945-g66b5947b48-dirty • Go go1.26.1

💥  Actual behavior

Unenrolling and re-enrolling a device without deleting it from fleet doesn't clear the host certificates templates rows associated with it, meaning all install success/failures are still tracked on the server even if they're not on the device any longer.

🛠️ To fix

Clear the records for in the host_certificate_templates associated with a host either when it gets un-enrolled, or enrolled to a pre-existing host

🧑‍💻  Steps to reproduce

These steps:

  • Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
  • Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
  1. TODO
  2. TODO

🕯️ More info (optional)

N/A

Metadata

Metadata

Assignees

Labels

#g-power-to-pcPower to the PC working group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documented~assisting qaThis issue can be QA'd by anyone outside the QA team when capacity allows~released bugThis bug was found in a stable release.

Type

No type

Projects

Status

✔️Awaiting QA

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions