coolify/app/Actions
Andras Bacsai cd10796612 Fix: Version downgrade prevention - validate cache and add running version checks
## Changes
- **CheckForUpdatesJob**: Add triple version comparison (CDN vs cache vs running)
  - Never allows version downgrade from currently running version
  - Uses data_set() for safer nested array mutation
  - Prevents incorrect new_version_available flag setting

- **UpdateCoolify**: Add cache validation before fallback
  - Validates cache against running version on CDN failure
  - Throws exception if cache is corrupted/older than running
  - Applies to both manual and automated updates

- **Tests**: Add comprehensive test coverage
  - tests/Unit/CheckForUpdatesJobTest.php (5 tests)
  - tests/Unit/UpdateCoolifyTest.php (3 tests)

## Impact
- Prevents all downgrade scenarios (CDN rollback, corrupted cache, etc.)
- Maintains backward compatibility
- Provides clear logging for debugging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 16:05:41 +01:00
..
Application Changed docker --time command to -t since --time is deprecated on v28 2025-10-09 13:26:10 +05:30
CoolifyTask refactor(proxy-status): refactored how the proxy status is handled on the UI and on the backend 2025-06-06 14:47:54 +02:00
Database Merge branch 'next' into fix-docker-time-database-v2 2025-11-28 13:12:00 +01:00
Docker fix: don't show health status for exited containers 2025-11-24 09:09:37 +01:00
Fortify fix(user): ensure email attributes are stored in lowercase for consistency and prevent case-related issues 2025-09-05 17:44:34 +02:00
Proxy Merge branch 'next' into shadow/fix-docker-time-command 2025-11-28 10:25:42 +01:00
Server Fix: Version downgrade prevention - validate cache and add running version checks 2025-11-28 16:05:41 +01:00
Service Merge branch 'next' into shadow/fix-docker-time-command 2025-11-28 10:25:42 +01:00
Shared fix: don't show health status for exited containers 2025-11-24 09:09:37 +01:00
Stripe Changes auto-committed by Conductor 2025-10-16 17:13:47 +02:00
User Changes auto-committed by Conductor 2025-10-16 17:13:47 +02:00