Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verify and account options for signing updates #2074

Merged
merged 2 commits into from
Jan 23, 2022

Conversation

zorgiepoo
Copy link
Member

Accounts are intended to be used for when working on products that belong to different organizations. This way multiple keys related to Sparkle can be stored in the keychain.

We also add a --verify option to sign_update which allows verifying that updates are signed correctly.

Fixes #1969, #896

Misc Checklist:

  • My change requires a documentation update on Sparkle's website repository
  • My change requires changes to generate_appcast, generate_keys, or sign_update

Only bug fixes to regressions or security fixes are being backported to the 1.x (master) branch now. If you believe your change is significant enough to backport, please also create a separate pull request against the master branch.

Testing

I tested and verified my change by using one or multiple of these methods:

  • Sparkle Test App
  • Unit Tests
  • My own app
  • Other (please specify)

Tested that keys can be generated and signed under a new account name (differing from default ed25519 one). Tested that generate_appcast can use different accounts and verified the results with sign_update --verify. Tested sign_update --verify on several update files, using different accounts, truncating the base64 provided signature (results in an error), or using a different signature (results in failing to pass verification).

macOS version tested: 12.1 (21C52)

Accounts are intended to be used for when working on products that belong to different organizations. This way multiple keys related to Sparkle can be stored in the keychain.

We also add a --verify option to sign_update which allows verifying that updates are signed correctly.
@zorgiepoo zorgiepoo merged commit 92d8b2b into 2.x Jan 23, 2022
@zorgiepoo zorgiepoo deleted the accounts-and-sign-verification branch January 23, 2022 02:48
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.

Supporting EdDSA signatures for multiple projects
1 participant