Check updates before unpacking them and sign the update feed, once a release carries the EdDSA key

Đang mở
#537 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
macos, swift
Lĩnh vực
desktop, release

Hướng nghiên cứu

Read #335 and the signing section of CONTRIBUTING, then inspect Resources/Info.plist and scripts/package.sh. First confirm that a stable release carrying SUPublicEDKey has shipped and that the rolling appcast release signs appcast.xml and release notes as described. Enable the Sparkle settings at the stated release milestones, update CONTRIBUTING, and verify the published feed signatures.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Problem

#335 adds an EdDSA key to the app (SUPublicEDKey) and signs every new update in the feed with it. Two Sparkle settings that need that key stay off:

  • Sparkle unpacks the download before checking it. SUVerifyUpdateBeforeExtraction (Sparkle 2.7.3+) checks the archive's EdDSA signature first.
  • The appcast and its release notes aren't signed. SURequireSignedFeed (Sparkle 2.9+) makes the app refuse a feed that isn't signed with the key.

#335 left both for later on purpose: they should wait until a release with the key has shipped and signed updates have been seen working from the feed. StableBar is on Sparkle 2.10.0, which supports both.

Proposal

  1. Once a stable release with SUPublicEDKey has shipped, add SUVerifyUpdateBeforeExtraction to Resources/Info.plist. Changing the key later still works: when the old key doesn't match, Sparkle then checks the archive's Developer ID team instead, and scripts/package.sh signs the DMG with the Developer ID.
  2. Add SURequireSignedFeed if generate_appcast signs appcast.xml from the rolling appcast release. Its help says it signs the appcast and release notes when an update in it requires a signed feed, so a beta with the setting should show the signature in the published feed before a stable release carries it. From then on, every published feed must be signed.
  3. Update the signing section of CONTRIBUTING.

Possible today

No. Sparkle checks the archive only after unpacking it, and the feed has no signature.

Related

  • #335 adds the key and the per-update signatures; its proposal lists this as step 4.
  • #100 shipped updates trusted through the Developer ID alone, and #22 had planned the EdDSA key.

Triaged by Claude Code (Claude Opus 5.5).

Ngôn ngữ chính
Swift
Star
184
Fork
12
Merge trung bình
3 giờ 50 phút
Pull request đã merge (30 ngày)
387

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Seb-GRAF/StableBar

Tất cả issue của Seb-GRAF/StableBar

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.