You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(apps): drop revoked previous and candidate releases so backups keep working #649
Revoking an old release breaks backups on appliances that already updated past it.
core/src/app_manager/portable_backup.rs:74-96 verifies slot.active, slot.previous and slot.candidate through signed_package (core/src/app_install.rs:289-305), which rejects revoked releases. Restore uses the same check (core/src/app_install/recovery.rs:244-263).
Scenario: the Owner updates 1.0.0 → 1.1.0, then the catalog revokes 1.0.0 because of a vulnerability. 1.0.0 is still previous, so every backup capture and restore fails although the active release is fine.
core/tests/private/app_manager/lifecycle.rs:1561-1590 expects this and recovers with discard ID previous through the root control CLI. The Owner lifecycle (core/src/app_manager/lifecycle.rs:28-39) has no Discard, so recovery needs a root shell in the container.
Proposal
On catalog refresh, drop previous and candidate entries whose release is revoked or gone from the catalog. Keep the strict check for active.
Backups and restores skip such entries instead of failing.
Acceptance
Test: update 1.0.0 → 1.1.0, revoke 1.0.0; capture and restore succeed and previous is gone.
Activity