Add Flatcar Container Linux and CoreOS to recognized Linux platforms#42186
Open
salgattll wants to merge 1 commit intofleetdm:mainfrom
Open
Add Flatcar Container Linux and CoreOS to recognized Linux platforms#42186salgattll wants to merge 1 commit intofleetdm:mainfrom
salgattll wants to merge 1 commit intofleetdm:mainfrom
Conversation
Flatcar reports platform=flatcar and platform_like=coreos via osquery's os_version table. Neither value is in HostLinuxOSs, causing PlatformFromHost to return "" and platform-filtered detail queries (network_interface_unix, disk space, etc.) to never be sent. Hosts enroll and respond to live queries correctly, but host details like IP address and disk space are never populated. Adds "flatcar" and "coreos" to HostLinuxOSs, HostNeitherDebNorRpmPackageOSs, HOST_LINUX_PLATFORMS, and the host vitals documentation. Resolves fleetdm#42185
lucasmrod
approved these changes
Mar 20, 2026
Member
lucasmrod
left a comment
There was a problem hiding this comment.
LGTM.
Thanks for the contribution!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #42186 +/- ##
==========================================
- Coverage 66.48% 66.47% -0.01%
==========================================
Files 2516 2516
Lines 202049 202049
Branches 9070 9071 +1
==========================================
- Hits 134333 134320 -13
- Misses 55580 55590 +10
- Partials 12136 12139 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #42185
Summary
flatcarandcoreostoHostLinuxOSsinserver/fleet/hosts.goHostNeitherDebNorRpmPackageOSs(neither distro uses deb or rpm)HOST_LINUX_PLATFORMSinfrontend/interfaces/platform.tsserver/fleet/hosts_test.godocs/Contributing/product-groups/orchestration/understanding-host-vitals.mdProblem
Flatcar Container Linux reports
platform=flatcarandplatform_like=coreosvia osquery'sos_versiontable. Neither value is inHostLinuxOSs, soPlatformFromHost("flatcar")returns""andRunsForPlatformskips all Linux-platform-filtered detail queries.Symptoms: Flatcar hosts enroll successfully, appear online, and respond to live queries. But host details (private IP, disk space, etc.) are never populated because the detail queries that collect this data are never sent to the host.
Context
Flatcar Container Linux is an immutable, container-optimized Linux distribution (successor to CoreOS Container Linux). We deploy Fleet's Orbit agent on Flatcar via systemd-sysext and have confirmed that all osquery tables work correctly — the only gap was this platform string not being recognized.
This follows the same pattern as prior platform additions: #19011 (tuxedo), #28977 (neon), #34357 (manjaro-arm).
Changes file
changes/Checklist
HostLinuxOSslocally