Release integrity: sign SHA256SUMS; checksums today come from the same release

Đang mở
#279 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
42/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ệ
github-actions, rust, shell
Lĩnh vực
release, security

Hướng nghiên cứu

Start by reading crates/atlas-cli/src/commands/release.rs (lines 15-45) to see how the .sha256 asset is fetched and trusted, then the checksum-only check at desktop_linux.rs:150 and the unsigned SHA256SUMS/manifest.json writes in release.yml (710-716). The public-key embedding also touches install.sh, and docs/release.md needs the rotation section. Done means the two acceptance bullets pass: a tampered asset with a matching .sha256 is rejected by atlas update, atlas desktop and install.sh, and the workflow signs. Note this is a design decision (minisign vs cosign keyless) that should be agreed with maintainers before coding.

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

Mô tả

area: ci area: installer priority: 2 normal status: confirmed type: feature

Linux roadmap item (tracking: #289). Evidence is from reading code at main (9c32731) and a hand test on Omarchy (Arch, Hyprland Wayland, AMD 680M, Mesa 26.2.5, AppImage 1.5.0-alpha.25). [INFERENCE] marks anything not observed directly.

Problem

crates/atlas-cli/src/commands/release.rs:15-45 downloads <asset>.sha256 from the same GitHub release it verifies; release.yml:710-716 writes unsigned SHA256SUMS/manifest.json; desktop_linux.rs:150 checks ELF magic only. A swapped release or compromised account passes every check (CLI update, install.sh, AppImage sync).

Proposal

Sign SHA256SUMS with minisign (or cosign keyless); embed the public key in the CLI and install.sh; verify before trusting any checksum. GitHub attestations are a complement, not a replacement (install.sh must not need gh). Document rotation.

Acceptance

  • A tampered asset with a matching .sha256 is rejected by atlas update, atlas desktop and install.sh.
  • Release workflow signs; key rotation documented in docs/release.md.
Ngôn ngữ chính
Rust
Star
3
Fork
1
Merge trung bình
9 giờ 51 phút
Pull request đã merge (30 ngày)
310

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 codeatlasdev/atlas

Tất cả issue của codeatlasdev/atlas

Issue tương tự

Thêm issue về Rust

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.