Skip to content

Add Flatcar Container Linux and CoreOS to recognized Linux platforms#42186

Open
salgattll wants to merge 1 commit intofleetdm:mainfrom
salgattll:add-flatcar-coreos-linux-platforms
Open

Add Flatcar Container Linux and CoreOS to recognized Linux platforms#42186
salgattll wants to merge 1 commit intofleetdm:mainfrom
salgattll:add-flatcar-coreos-linux-platforms

Conversation

@salgattll
Copy link

Resolves #42185

Summary

  • Added flatcar and coreos to HostLinuxOSs in server/fleet/hosts.go
  • Added both to HostNeitherDebNorRpmPackageOSs (neither distro uses deb or rpm)
  • Added both to HOST_LINUX_PLATFORMS in frontend/interfaces/platform.ts
  • Added test cases in server/fleet/hosts_test.go
  • Updated platform lists in docs/Contributing/product-groups/orchestration/understanding-host-vitals.md
  • Added changelog entry

Problem

Flatcar Container Linux reports platform=flatcar and platform_like=coreos via osquery's os_version table. Neither value is in HostLinuxOSs, so PlatformFromHost("flatcar") returns "" and RunsForPlatform skips 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 file added in changes/

Checklist

  • Added/updated automated tests
  • Manual QA: Verified on Flatcar Container Linux 4459.2.4 with osquery 5.21.0 and Orbit 1.53.0 — confirmed detail queries work after patching HostLinuxOSs locally
  • No database migrations needed
  • No endpoint changes
  • No backward compatibility concerns (additive change only)

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
@salgattll salgattll requested review from a team, sgress454 and sharon-fdm as code owners March 20, 2026 19:26
Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

Copy link
Member

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks for the contribution!

@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.47%. Comparing base (4be1974) to head (705e355).
⚠️ Report is 9 commits behind head on main.

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     
Flag Coverage Δ
backend 68.27% <ø> (-0.01%) ⬇️
frontend 54.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flatcar Container Linux and CoreOS not recognized as Linux platforms

2 participants