-
v1.1.17 Stable
released this
2026-05-27 22:01:19 -05:00 | 34 commits to master since this releasev1.1.17 - Package Cache Refresh
Fixes issue #2 - Agent must run package cache update before upgrade and on regular interval.
Changes
- Mandatory pre-apply cache refresh: Every patch_apply job now runs refresh_package_cache() before applying patches
- Health check cache refresh: Cache is refreshed when stale (>4 hours) during health checks
- Cache status reporting: Health response now includes last_cache_update (RFC3339) and cache_status (fresh/stale/unknown/failed)
- Degraded health on cache failure: Returns HTTP 200 with degraded status when cache refresh fails
- 404/fetch error retry: Automatic retry with cache refresh on fetch errors (1 retry, hardcoded)
- State persistence: last_cache_update persisted to /var/lib/linux_patch_api/state/cache.json; in-memory otherwise
- New src/packages/cache.rs module: PackageCacheState, stale detection, state persistence, 404 retry logic
- Packaging fixes: Version verification for all packages, Ubuntu 24.04 package suffix, Alpine build path fix
Backend Refresh Commands
Backend Command APT apt-get update DNF dnf check-update --refresh YUM yum makecache APK apk update Pacman pacman -Sy Downloads