fleet/changes
Dante Catalfamo 3a2a689796
Don't expire iOS devices prematurely (#25436)
#25406 

The `last_seen_times` table is only updates when osquery hits one of its
authenticated endpoints, meaning it isn't updated when devices without
osquery, like iphones, are enrolled. I've left a
[comment](https://github.com/fleetdm/fleet/issues/25406#issuecomment-2590637318)
on the original issue explaining how this happens. Originally, if there
was no `last_seen_time`, the fallback value would be the `created_at`
value on the `hosts` table, so ios devices would always get deleted once
they were added X number of days ago.

In its place, I've added the `detail_updated_at` column on the `hosts`
table as the fallback value, and only use `created_at` if that is also
empty. `detail_updated_at` is updated every time a full detail refetch
completes. In the case of ios/ipados, [this is done using
MDM](cd5c0e8aed/server/service/apple_mdm.go (L3101)).
`detail_updated_at` is updated less frequently than `last_seen_times`,
only once every hour or so instead of every 30 seconds, but since
expiration policies are set on the scale of days instead of hours, this
should be fine.

The way I've QA'd this is by adding an iOS device to my fleet instance,
waited 24 hours, and set the expiration policy to 24 hours.
2025-01-16 10:13:22 -05:00
..
.keep Issue 1009 calculate diff software (#1305) 2021-07-08 13:57:43 -03:00
21827-edit-vpp-teams Fleet UI: Clarify VPP app teams (#25111) 2025-01-03 09:31:25 -05:00
22364-vuln-cron Optimize vulnerability host counts (#24914) 2025-01-13 15:44:02 -07:00
23115-vpp-policy Add VPP policy automation support to backend (#25154) 2025-01-13 15:53:24 -06:00
23302-fma-click-bug Fleet UI: Fix app id link not row id (#25113) 2025-01-03 09:30:59 -05:00
23512-clarify-expected-behavior-of-host-counts UI – Clarify expected behavior of policy host counts, dashboard controls software count, and controls os updates versions count (#25150) 2025-01-06 10:55:28 -08:00
23528-install-software-policy-filter Fleet UI: VPP auto install software on failed policies, filter software compatible to policy's target platform, etc (#25202) 2025-01-13 16:45:16 -08:00
23811-empty-cell-for-no-uuid UI – Render default empty cell when host has no UUID (#25362) 2025-01-10 16:07:21 -08:00
23823-cloudfront-cdn Cloudfront URL config changes (#25145) 2025-01-06 11:33:24 -06:00
23971-persist-hosts-column-settings-across-sessions UI - use new db user settings to persist user's host table column preferences (#25185) 2025-01-09 10:53:43 -08:00
24038-agent-options-key-error Display correct key path to user for agent options (#25199) 2025-01-10 13:13:28 -05:00
24148-re-install-fma fix: update install script for FMAs to improve re-install process (#25238) 2025-01-09 14:22:21 -05:00
24335-dropdown-styling-bug Fleet UI: Fix software actions dropdown styling bug (#25102) 2025-01-03 09:32:31 -05:00
24366-success-email-message Never include sender address in update email success message (#25178) 2025-01-06 15:16:54 -08:00
24418-bad-links Fleet UI: Update bad links in setup experience (#25110) 2025-01-03 09:29:38 -05:00
24421-fix-my-device-paths UI – Exclude self-service URL path from DUP when not a valid option for the host (#25383) 2025-01-13 14:48:39 -08:00
24618-make-email-logo-dark-mode-compatible Replace email logo with one that looks good in both light and dark mode (#25192) 2025-01-10 10:42:44 -08:00
24629-ui-os-updates-table Hide updated time when loading OS versions table data (#25200) 2025-01-07 12:29:13 -06:00
24653-live-query-from-edit-affects-performance-stats UI: only setEditingExistingQuery in the edit query form if the query has been modified (#25115) 2025-01-03 10:46:03 -08:00
24660-team-admins-cant-set-sso-mfa UI - Ungate user form SSO field for non-admins, handle subtle UX bug (#25351) 2025-01-14 09:54:02 -08:00
24720-msi-large-interned-strings Handle long interned strings in MSI parsing (#25079) 2025-01-02 10:41:08 -06:00
24795-host-count Fleet UI: Add timestamps to host count on software detail pages (#25143) 2025-01-07 09:22:41 -05:00
24804-deleted-profiles Fixing issue where deleted profiles were being sent to devices. (#25095) 2025-01-06 13:16:34 -06:00
24816-fix-double-mdm-commands Fix issue when identical MDM commands are sent twice to the same device when replica DB is being used. (#25355) 2025-01-10 16:50:22 -06:00
24873-pkg-name fix: use a new strategy for finding the app name in case the title is wrong (#25297) 2025-01-10 16:42:06 -05:00
24958-gitops-webhooks-disable Use webhooks settings from gitops even when empty (#25347) 2025-01-15 11:31:48 -05:00
24959-ui-my-device-software-filter Hide dropdown filter in software card on "My device" page (#25371) 2025-01-14 10:45:00 -06:00
24962-ui-dashboard-mdm-solutions-table Remove arrow icon from MDM solution table (#25211) 2025-01-08 17:41:26 -06:00
25004-fleetctl-packge-cli-instructions Add instructions for command line installation on pkg gen (#25166) 2025-01-06 13:04:12 -05:00
25009-smtp-page-validation UI - Improve validation of SMTP settings form (#25051) 2025-01-02 10:30:41 -08:00
25072-25073-software-name-overflow Fleet UI: Fix overflow of software title in 2 more modals (#25294) 2025-01-09 13:42:58 -05:00
25075-false-positive Ignore CVE-2024-10327 since it's iOS-only (#25083) 2025-01-02 13:07:02 -06:00
25114-include-team-queries-in-host-details-query-modal UI – Include team-level queries in Select query modal, only call for queries when needed (#25286) 2025-01-09 10:08:46 -08:00
25144-uninstall-after-mdm-action Fix detection of uninstall scripts when recording script results after a host has had MDM actions taken (#25157) 2025-01-06 07:57:17 -06:00
25194-vpp-app-clear fix: do not remove VPP apps from team if not strictly necessary (#25411) 2025-01-14 12:31:04 -05:00
25244-batch-set-declarations Fixed issue with incorrect batch DDM update activity. (#25372) 2025-01-14 11:24:36 -06:00
25264-sso-form-validation UI - Update validation pattern on SSO settings form (#25387) 2025-01-13 14:47:02 -08:00
25265-boostrap-package-not-found Downgraded expected/common "BootstrapPackage not found" server error to a debug message. (#25266) 2025-01-08 17:14:10 -06:00
25406-premature-ios-deletion Don't expire iOS devices prematurely (#25436) 2025-01-16 10:13:22 -05:00
osquery-constant-prerelease Include pre-releases when building osquery version list constant (#25089) 2025-01-02 11:38:15 -06:00