Skip to content

test(apps): verify approved packages through the signed catalog - #524

Merged
RentnerKev merged 1 commit into
mainfrom
rentner/test/signed-app-catalog-integration
Nov 20, 2026
Merged

RentnerKev merged 1 commit into
mainfrom
rentner/test/signed-app-catalog-integration

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Build Greeting 1.0.0 and 1.1.0 for both native Linux targets and validate, seal, and re-read their evidence with the Marketplace Rust pipeline.
  • Bind each release to its own fixture approval and sign sequential TUF snapshots with the Marketplace publisher code. Feed the approved assets from an isolated release tree into the Platform installer.
  • Exercise wrong-version approval, tampered candidate and release bytes, persistent catalog rollback protection, exact offline package recovery, and greeting data continuity across the update. Keep Chromium coverage for the staged UI bundle.

Verification

  • Linux AMD64 through Kiri with network access disabled at runtime. The two-version integration passed in 40 seconds.
  • GitHub App Runtime Reference runs the fixture on native AMD64 and ARM64, with browser evidence uploaded per architecture.

The fixture uses synthetic approval and artifact receipts, test signing keys, and a local distribution directory.

Refs #452 and #458
Refs RentnerProxy/marketplace#5

Summary by CodeRabbit

  • Tests
    • Expanded coverage for installing and updating signed app releases across multiple versions and supported Linux targets.
    • Added checks for approval matching, rejection of unapproved releases and corrupted downloads, catalog rollback protection, and recovery after reopening the installer.
    • Verified that app files persist through updates and that release evidence distinguishes the tested versions.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Greeting reference fixture now builds two versioned releases. New publication helpers prepare and publish approved packages. The installer integration test exercises staging, rejection of invalid or unapproved packages, catalog rollback protection, and recovery of both releases.

Changes: Greeting reference flow

Layer / File(s) Summary
Versioned package fixtures
.github/scripts/ci/fixtures/app-greeting-native.sh, .github/workflows/app-runtime-reference.yml, web/src/tests/fixtures/app-template/build.ts
The package builder accepts an optional three-part numeric version. The reference script builds versions 1.0.0 and 1.1.0 for both Linux targets, uses the 1.1.0 package for the browser reference, and validates release versions, catalog revisions, and distinct archive hashes.
Candidate sealing and publication
core/tests/private/app_install/greeting/publication.rs
The new Candidate helpers seal packages for both targets, verify handoff and approval data, publish versioned release assets and catalog updates, and locate assets for download.
Two-release installation and recovery
core/tests/private/app_install.rs, core/tests/private/app_install/greeting.rs
The integration test uses two published candidates to check staging, approval binding, corrupted and unapproved package rejection, catalog rollback rejection, offline recovery, and packaged files. Fixture compression helpers now return the compressed archive path for the caller to read.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Possibly related issues

  • Issue 460: The PR implements a two-version reference gate that is part of the broader tracked delivery gate.
  • Issue 458: The PR tests two-version signed-catalog installation, recovery, and rejection cases described by the reference-app gate.
  • Issue 452: The PR exercises package verification and recovery scenarios, but does not change the verifier implementation.

Possibly related PRs

Merge Risk: Minimal · up to a2df1

This PR adds integration coverage for approved Greeting packages across two versions, including tamper rejection, catalog rollback protection, and offline recovery. It changes only test and CI fixture code, with no production behavior change. No merge-blocking risk was identified.

Security architecture risk: Minimal · up to a2df1

The change extends isolated integration coverage without introducing or worsening a production security, rollback, ownership, or failure-containment risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(apps): verify approved packages through the signed catalog" matches the main change. The PR adds a two-version Greeting integration test that verifies approved packages (per-version ap…
Description check Passed The description follows the template's main sections: Summary, Verification (as testing details), and references to related issues. The Summary describes the change and its purpose. The 'Refs #452 and…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(apps): verify approved packages through the signed catalog" matches the main change. The PR adds a two-version Greeting integration test that verifies approved packages (per-version approvals) through a signed TUF catalog and installs them via the installer. The title is specific and uses a conventional commit prefix. It does not cover every detail, such as rollback protection or Chromium coverage, which is acceptable.

Full details: Description check

Explanation

The description follows the template's main sections: Summary, Verification (as testing details), and references to related issues. The Summary describes the change and its purpose. The 'Refs #452 and #458' line gives related issues, but the template asks for 'Fixes' or 'Closes' for feature and fix PRs, and the author did not state a 'Type of change' selection. The Checklist, Breaking changes, and Screenshots sections are missing. These are non-critical gaps, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1b61342 and a2df15e.

Files selected for processing: 6

  • .github/scripts/ci/fixtures/app-greeting-native.sh
  • .github/workflows/app-runtime-reference.yml
  • core/tests/private/app_install.rs
  • core/tests/private/app_install/greeting.rs
  • core/tests/private/app_install/greeting/publication.rs
  • web/src/tests/fixtures/app-template/build.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@RentnerKev
RentnerKev marked this pull request as ready for review November 20, 2026 23:24
@RentnerKev
RentnerKev merged commit de57bd5 into main Nov 20, 2026
51 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/signed-app-catalog-integration branch November 20, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant