Repository navigation
Verify signed release checksums before self-updates - #48
Open
compnew2006 wants to merge 2 commits into
Open
compnew2006 wants to merge 2 commits into
compnew2006 wants to merge 2 commits into
Conversation
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem and impact
The in-app updater downloaded GitHub Release assets and handed them to the system installer without authenticating the package bytes. HTTPS protects the connection in transit, while control of the release assets could still affect the privileged installation path.
Solution
SHA256SUMSfor the four release package formats and a detached OpenPGP signature,SHA256SUMS.sig. Reuse the existing signing secret, verify against the repository's public keyring before publishing, and fail the release job if signing or self-verification fails.gpgvdependency with the installers. Reject missing or invalid metadata, an untrusted signature, and a package that does not match its signed checksum.User and release impact
Authorized updates continue through the dashboard and auto-update paths. A release that cannot be authenticated is refused before the package manager or tarball installer runs. The protection takes effect after installing a build containing this change through the signed APT repository or another trusted install path. The first signed release requires the existing
APT_REPO_GPG_KEYsecret to matchquota-manager.gpg.Verification
pyflakes api core quota tests run.py, Bash syntax checks for changed scripts, andgit diff --checkpassed.Local macOS full-suite note: four tests reported failures or timeouts in one run. The four passed when rerun in isolation on both the PR branch and its base:
test_stop_new_falls_back_to_registered_block_when_fragment_unwritable,test_per_device_admin_block_reaches_the_kernel,test_check_failure_preserves_last_known, andtest_maybe_check_gated_by_interval_and_enabled.