Skip to content

fix(apps): drop revoked previous and candidate releases so backups keep working #649

Done

Description

@RentnerKev

Problem

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.

Found in the app platform audit of 2026-11-30.

Activity

  1. added
    bug
    area: runtime
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions