fleet/server
Dante Catalfamo bd3e775e67
Windows MDM Fix Manual Detection (#17721)
#15565 

Replace the use of the isFederated registry key with a keys that check
for AAD (Azure Active Directory, now Entra ID)

Federated enrollment (`isFederated`) seems to be when windows uses a
Discovery MDM endpoint to get its policy and management endpoint
configuration. This is always the case when a client is enrolled with
fleet, so installations always show up as automatic.

It's being replaced by a different key, `AADResourceID`, which appears
to identify the resource that controls the automated deployment. In my
tests it only appears to be populated when the computer is enrolled
through automated deployments. This key appears on both Windows 10 and
11.

There is a similar key, `AADTenantID`, which appears to identify the
client (tenant) to the Azure cloud. I haven't seen this ID in our
systems, so it is likely exclusively used in Azure. Both this key and
`AADResourceID` seem to always be set at the same time, so we only
check for the `AADResourceID`.

I've also added documentation on the registry keys I've analyzed for future reference.
2024-03-21 15:09:05 -04:00
..
authz For fleetctl gitops, when MDM configs are not explicitly defined in gitops yml file, they are now set to default values. (#17223) 2024-03-07 13:20:14 -06:00
bindata Allow users to be readded if they were ever removed (#1945) 2021-09-07 13:33:40 -03:00
config Added --server_frequent_cleanups_enabled (FLEET_SERVER_FREQUENT_CLEANUPS_ENABLED) flag (#17235) 2024-02-28 09:59:25 -06:00
contexts Merge branch 'main' into 15919-vulnerabilities-page 2024-02-22 16:27:15 -06:00
datastore Handle null case in datastore method to get host disk encryption status (#17541) 2024-03-14 10:01:20 -05:00
errorstore Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
fleet feat: script content cleanup and column removal (#17374) 2024-03-13 15:53:08 -04:00
goose Move external dependency goose to monorepo (#15859) 2024-01-02 17:52:00 -03:00
health Separate health checks for MySQL and Redis (#6468) 2022-07-01 08:08:03 -03:00
launcher Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
live_query Address multiple redis-related issues observed with live queries (#16855) 2024-02-27 19:35:27 -06:00
logging Move nanodep dependency in monorepo (#16984) 2024-02-26 10:26:00 -05:00
mail Dynamically set copyright year in email templates (#16092) 2024-01-15 15:28:49 -06:00
mdm fix unreleased bug with ADE profile assignment (#17509) 2024-03-08 16:45:18 -03:00
mock feat: script content cleanup and column removal (#17374) 2024-03-13 15:53:08 -04:00
policies Refactor webhooks cron to new schedule package (#7840) 2022-09-20 14:26:36 -05:00
ptr Add Description text to CVE Metadata (#13856) 2023-09-15 11:24:10 -06:00
pubsub Address multiple redis-related issues observed with live queries (#16855) 2024-02-27 19:35:27 -06:00
service Windows MDM Fix Manual Detection (#17721) 2024-03-21 15:09:05 -04:00
sso chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
test Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
version Move external dependency fleetdm/kolide-kit to monorepo (#15861) 2024-01-02 18:22:52 -03:00
vulnerabilities Fixing false negative vulnerabilities on macOS Homebrew python packages. (#17709) 2024-03-19 14:12:07 -05:00
webhooks Fixing unreleased spec bug in team host status webhook feature. (#17502) 2024-03-08 15:09:33 -06:00
websocket Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
worker Surface MDM devices where DEP assignment failed (#16973) 2024-03-01 10:52:19 -06:00
utils_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
utils.go fix: return bad request error during MDM migration when appropriate (#16551) 2024-03-06 15:38:44 -05:00