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
test(apps): verify approved packages through the signed catalog - #524
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.
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.
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
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