Skip to content

fix(apps): carry the catalog checkpoint across a bundled root rotation #650

Backlog

Description

@RentnerKev

Problem

Shipping a new bundled catalog root in a platform image would break app catalog operations on every existing appliance.

  • core/src/app_install/catalog.rs:81-86 rejects the stored catalog-checkpoint.json when checkpoint.pin_sha256 differs from the digest of the bundled docker/production/apps/catalog/root.json.
  • refresh and refresh_in_background read the checkpoint first (:123-137), so they cannot replace it either. Staging, browsing, target checks and recovery fail (core/src/app_install.rs:204,229, core/src/app_install/recovery.rs:42,78, core/src/app_install/target.rs:122).
  • Key rotation inside the TUF chain is unaffected; only replacing the bundled root triggers this. The only recovery is deleting the checkpoint by hand, which also drops the rollback floor.
  • RentnerProxy/app-catalog metadata/1.root.json expires on 2027-11-21, so a root rotation is due before then.

Proposal

  • When the bundled root changes, accept it if it is a verified successor in the stored TUF root chain, and re-anchor the checkpoint while keeping its revision and revocation floor.
  • Refuse an unrelated root with a clear status instead of failing every catalog operation.

Acceptance

  • Test: create a checkpoint with root v1, start with a signed successor v2 as the bundled root; refresh, stage and backup succeed.
  • Test: an unrelated bundled root is refused with a clear error.

This must ship in a platform image before the first root rotation.

Decision (2026-12-01)

The next root rotation moves to three offline root keys with a threshold of two.


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