Skip to content

Sign updates with an EdDSA key as well as the Developer ID #335

Closed

Description

@M4n0x

Problem

StableBar's updates are trusted through the Developer ID signature alone. #100 chose this deliberately, so updates work and are safe today. The cost shows up later:

  • The signing team can't change. Sparkle accepts an update only when it is signed like the running app. If releases ever have to be signed by another team, for example an organization account instead of today's personal one, every installed copy rejects the update and users must reinstall by hand. Sparkle lets you rotate one key while the other still matches, but only when the app has both a Developer ID signature and an EdDSA key.
  • Sparkle unpacks the download before checking it. Without an EdDSA signature, Sparkle can verify the update only from the extracted app. SUVerifyUpdateBeforeExtraction (Sparkle 2.7.3+) checks the archive first, and SURequireSignedFeed (2.9+) signs the appcast and release notes too. Both need EdDSA. StableBar is on Sparkle 2.10.0, which supports both.

On main at bf68523:

Proposal

  1. The owner generates a key pair once with Sparkle's generate_keys, stores the private key as a repository secret and keeps a backup. Losing it stays recoverable as long as the Developer ID still matches.
  2. Add the public key to Resources/Info.plist as SUPublicEDKey.
  3. Pass the private key to generate_appcast in publish-appcast.sh (--ed-key-file), so every new beta and stable item gets an edSignature.
  4. Once a release with the key has shipped, turn on SUVerifyUpdateBeforeExtraction, and SURequireSignedFeed if feed signing works with the rolling appcast release.
  5. Document the key and the secret in CONTRIBUTING's signing section.

Installed releases have no public key, so they still accept the first build that has one on its Developer ID signature, and from then on Sparkle checks both. Ad-hoc and local builds stay without a feed, as prepare-app-info.sh does now.

Possible today

No. Updates are verified only through the Developer ID signature.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 26, 2026
  2. added
    P2
    on Nov 8, 2026
  3. stablebar-releases commented on Nov 11, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.13.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancementreleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions