Add new fleetd table `apple_hardware_info` for getting the marketing name of macOS hosts
Goal
| User story |
|---|
| As a Fleet user, |
I want to write a query against a new fleetd table apple_hardware_info that retrieves the hardware marketing name for macOS hosts |
| so that I can create reports, labels, and policies that use the hardware marketing name. |
Changes
Product
- [X] UI changes: No changes
- [X] CLI (fleetctl) usage changes: No changes
- [X] YAML changes: No changes.
- [X] REST API changes: No changes
- [X] Fleet's agent (fleetd) changes: New fleetd table
apple_hardware_info, with one columnmarketing_name. See https://github.com/fleetdm/fleet/pull/46482/changes#diff-21755c11d6086ff0d4f75c66019974fa31cc298d54a620814d568f841499942c for a sample. The new table should just look for a fixed Go mapping of hardware model -> marketing name. The same Go mapping will be used by Fleet server (see parent story). That way we have one source of truth (accepting some deviations depending on timelines between Fleet server and fleetd agent releases). - [X] Fleet server configuration changes: No changes
- [X] Exposed, public API endpoint changes:No changes
- [X] fleetdm.com changes: No changes
- [X] GitOps mode UI changes: No changes
- [X] GitOps generation changes: No changes
- [X] Activity changes: No changes
- [X] Permissions changes: No changes
- [X] Changes to paid features or tiers: No changes
- [X] My device and fleetdm.com/better changes: No changes
- [X] Usage statistics: No changes
- [X] Other reference documentation changes: No changes
- [X] First draft of test plan added
- [ ] Once shipped, requester has been notified
- [ ] Once shipped, dogfooding issue has been filed
Engineering
- [X] Test plan is finalized
- [X] Contributor API changes: No changes.
- [X] Feature guide changes: No changes.
Risk assessment
- Risk level: Low
Test plan
- New table only supported for macOS.
Confirmation
- [ ] Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
- [ ] QA: Added comment to user story confirming successful completion of test plan.
- [ ] QA: Determined whether this story needs Playwright automation.
- Needs automation: Yes / No
- If yes, filed a follow-up issue in the :help-qa project with status "Needs automation":
Branch: rc-minor-fleetd-v1.60.0
Server: local dev server (https://fleetqa.ngrok.io → localhost:8080)
Validated: 2026-08-31, MacBookPro18,1 running macOS 26.5.2, fleetd 26.8.64410 built from this branch
Fix: orbit/pkg/table/apple_hardware_info/apple_hardware_info_darwin.go, mapping in server/fleet/apple_hardware_models.go, changes entry orbit/changes/20413-apple-hardware-marketing-names
Method: Code review + live osquery queries against an enrolled host + label/policy exercise + per-platform binary inspection
Verdict: Fixed
The apple_hardware_info table ships in fleetd with a single marketing_name column, returns the correct marketing name on macOS, is compiled out on all non-macOS platforms, and is usable in reports, labels, and policies as the user story requires.
Implementation review
| Check | Expected | Actual | Result |
|---|---|---|---|
| Table registered | apple_hardware_info in fleetd extension |
registered in extension_darwin.go |
Pass |
| Column set | one column, marketing_name |
one column, marketing_name |
Pass |
| Platform gating | macOS only | single _darwin.go file, //go:build darwin, referenced only by extension_darwin.go |
Pass |
| Data source | fixed Go model→name mapping | fleet.AppleHardwareModelsToMarketingNames (422 entries) |
Pass |
| Single source of truth with server | same mapping used by both | orbit table line 41 and server/fleet/hosts.go:1124 read the same map |
Pass |
| Unmapped model behavior | distinguishable from raw identifier | returns empty string, documented in a code comment | Pass |
| Schema documentation | table documented for query console | schema/tables/apple_hardware_info.yml, platform darwin, one column |
Pass |
| Changes entry | present | orbit/changes/20413-apple-hardware-marketing-names |
Pass |
Mapping provenance is SOFA's device_identifiers.json, recorded in a header comment with the pinned upstream commit.
Live end-to-end test
Agent under test is fleetd 26.8.64410, built from this branch and installed on the host (binary verified byte-identical to the TUF target).
| # | Step | Expected | Actual | Result |
|---|---|---|---|---|
| 1 | SELECT marketing_name FROM apple_hardware_info; |
marketing name for MacBookPro18,1 | MacBook Pro (16-inch, 2021) |
Pass |
| 2 | SELECT * FROM apple_hardware_info; |
exactly one column | ['marketing_name'] |
Pass |
| 3 | Mapping lookup for MacBookPro18,1 |
MacBook Pro (16-inch, 2021) |
matches table output | Pass |
| 4 | Documented join example with system_info |
model + marketing name in one row | MacBookPro18,1 / MacBook Pro (16-inch, 2021) |
Pass |
| 5 | Server-derived hardware_marketing_name |
agrees with agent table | MacBook Pro (16-inch, 2021) — identical |
Pass |
| 6 | Dynamic label on marketing_name LIKE 'MacBook Pro%' |
host becomes a member | 1 host matched | Pass |
| 7 | Policy on marketing_name LIKE 'MacBook Pro%' |
policy passes | pass |
Pass |
Machines speak their names Users build with clarity one source of truth shines