Labels based on host vitals
- @noahtalerman: Build this in way such that any new host vital "just works". For example, these Android stories:
- https://github.com/fleetdm/fleet/issues/56095
customer-molfino:Specifically, I want to be able to add labels to hosts based on their OS version (so iPhone A gets label "iOS 27", and iPhone B gets label "iOS 26"). We can have differing CIS baselines per-OS, and some platform stuff (such as declarations for specific domains) is gated behind different iOS versions.
Goal
| User story 1 |
|---|
| As an IT admin rolling out a new configuration profile or app, |
| I want to create a label based on iOS/iPadOS host vitals |
| so that I can scope this new profile/app to a subset of my hosts before rolling out to everyone. |
| User story 2 |
|---|
| As an IT admin following Fleet's best practice teams, |
| I want to create a label based on Fleet's "MDM status" host vital |
| so that I can scope a configuration profile only to "company-owned". |
Changes
Product
- [ ] UI changes: Figma
- [ ] CLI (fleetctl) usage changes: No changes
- [ ] YAML changes: PR
- [ ] REST API changes: PR
- TODO: check for any vitals only available in Premium and mark them as such in the table.
- [ ] Fleet's agent (fleetd) changes: No changes
- [ ] Fleet server configuration changes: No changes
- [ ] Exposed, public API endpoint changes: No changes
- [ ] fleetdm.com changes: No changes
- [ ] GitOps mode UI changes: No changes
- [ ] GitOps generation changes: No changes
- [ ] Activity changes: No changes
- [ ] Permissions changes: No changes
- [ ] Changes to paid features or tiers: Fleet Free (some vitals only available in Premium though)
- [ ] My device and fleetdm.com/better changes: No changes
- [ ] Usage statistics: No changes
- [ ] Other reference documentation changes: No changes
- [ ] First draft of test plan added
- [ ] Once shipped, requester has been notified
- [ ] Once shipped, dogfooding issue has been filed
Engineering
- [ ] Test plan is finalized
- [ ] Contributor API changes: TODO
- [ ] Feature guide changes: TODO
- [ ] Database schema migrations: TODO
- [ ] Load testing: TODO
- [ ] Pre-QA load test: TODO
- [ ] Load testing/osquery-perf improvements: TODO
- [ ] This is a premium only feature: Yes / No
ℹ️ Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".
QA
Risk assessment
- Requires testing in a hosted environment: TODO
- Requires load testing: TODO
- Risk level: Low / High TODO
- Risk description: TODO
Test plan
Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.
- TODO
- TODO
- TODO
Testing notes
Confirmation
- [ ] Engineer: Added comment to user story confirming successful completion of test plan.
- [ ] QA: Added comment to user story confirming successful completion of test plan.
Sounds like this might be like 'builtin labels' we have today but we add some more?
I think the logic of some predefined builtins that we eval at enroll time can be a S.
If it's configurable then I would say this is more like a M or even a L depending on what we will support in the config and defining how they are configured.
Putting M as a middle ground until we know more
Remember to take new host vitals from https://github.com/fleetdm/fleet/issues/49791 into account as well
Here are the notes/TODOs from the initial design reviews for this story:
- The current plan: this will be a curated list of built-in host vitals that make sense to use in an “is equal to” label, rather than supporting literally any host vital as a label. Make it easy to contribute more if users find gaps.
- Draft PR with first draft: https://github.com/fleetdm/fleet/pull/51171
- FUTURE: Would be more helpful with a like operator:
- OS version
- Hardware model
- FUTURE: Would be more useful as a dropdown w/ what’s available in your fleet:
- CPU architecture
- Hardware vendor
- FUTURE: Would be more helpful with a like operator:
- TODO: file story for supporting like operator and add to a future sprint
- TODO: Look up docs to see what wording people expect
- TODO: What word does Jamf use in their advanced search criteria builder?
- TODO: Update story template to include “New host vital labels” checkbox. If we decide to track the labels available via a YAML file, add a note to update that file. Otherwise, add a note to include a subtask updating host vitals support
- TODO: Add missing vitals to the Host details page
cc @noahtalerman @spalmesano0
@andreasn-work @kc9wwh Do y'all know if there was an original request or Gong snippet from figali or veeder for this?
@andreasn-work @kc9wwh Do y'all know if there was an original request or Gong snippet from
figaliorveederfor this?
@spalmesano0, recorded one today for veeder - https://us-65885.app.gong.io/call?id=5059584693010740077&highlights=%5B%7B%22type%22%3A%22SHARE%22%2C%22from%22%3A178%2C%22to%22%3A248%7D%5D
customer-molfino: Specifically, I want to be able to add labels to hosts based on their OS version (so iPhone A gets label "iOS 27", and iPhone B gets label "iOS 26"). We can have differing CIS baselines per-OS, and some platform stuff (such as declarations for specific domains) is gated behind different iOS versions.
I want to create a label based on iOS/iPadOS host vitals
Will this work for Android host vitals as well?