mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 21:48:48 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #35308 Changes file covered by merge for #35307 Changes Windows MDM enrollment and unenrollment logic to no longer send notifications to orbit and as such, require customers to enroll through Settings or Autopilot. When a new enrollment is detected, processes the enrollment type(auto=autopilot, manual=settings app) as specified and maps it to the user who performed the enrollment This is unfortunately all done in the query processing code which is where we currently process these enrollments. I didn't see a better way to do it without significant rework that was unclear in scope and the new logic is simple enough it didn't feel like the right time to do that. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes ## Testing - [x] Added/updated automated tests - [x] Where appropriate, [automated tests simulate multiple hosts and test for host isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing) (updates to one hosts's records do not affect another) - [x] QA'd all new/changed functionality manually |
||
|---|---|---|
| .. | ||
| mdmtest | ||
| constants.go | ||
| ota_enroll.go | ||