fleet/orbit/pkg/profiles
Magnus Jensen 4149c22ae4
check for DEP capable migration before showing automatic preview (#41274)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #39252

I couldn't find any other code path that would resolve to automatic
other than the device not being MDM enrolled, and we naively assumed 3
lines for manual migration, so I added the new IsDEPCapable method which
checks if the first line returned by profiles status is No or Yes, to
check if the device was enrolled via ABM/DEP, if not and not MDM
enrolled then show the manual.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

## fleetd/orbit/Fleet Desktop

- [x] Verified compatibility with the latest released version of Fleet
(see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md))
- [x] If the change applies to only one platform, confirmed that
`runtime.GOOS` is used as needed to isolate changes
- [x] Verified that fleetd runs on macOS, Linux and Windows
- [x] Verified auto-update works from the released version of component
to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))
2026-03-10 14:51:29 -05:00
..
profiles.go Read enroll-secret and fleet-url from config profile on macOS (#10134) 2023-02-28 15:54:06 -03:00
profiles_darwin.go check for DEP capable migration before showing automatic preview (#41274) 2026-03-10 14:51:29 -05:00
profiles_darwin_test.go check for DEP capable migration before showing automatic preview (#41274) 2026-03-10 14:51:29 -05:00
profiles_notdarwin.go Update fleetd for macOS hosts to look for custom end user email field in Fleet MDM enrollment profile (#15761) 2024-01-02 17:45:11 -03:00
profiles_notdarwin_test.go fix issues when MDM info is empty during migration (#13320) 2023-08-14 19:21:06 -03:00