apache / apache/cloudstack

We should use repository rulesets to prevent the deletion or modification of released tags and critical release branches

Đang mở
#14,134 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
type:improvement
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

We can setup rules for released tags and also other branches. See our rules:

https://github.com/apache/cloudstack/rules/

Not 100% sure but seems like anyone with write access can delete releases and checkout the pictures attached

See Apache Flume they have tag protection setup in their `.asf.yaml`:

https://github.com/apache/logging-flume/blob/7b41e071caf1566bf73add2f40b530875d61da10/.asf.yaml#L94

Image

---

Yes, an Apache Software Foundation (ASF) project should use repository rulesets to prevent the deletion or modification of released tags and critical release branches.

### Benefits of Using Rulesets for Releases
* **Supply Chain Security:** Restricting deletions and updates on tags prevents malicious or accidental tampering with published software artifacts.
* **Flexibility and Targeting:** Unlike legacy branch protection, [GitHub Rulesets](https://github.com) can target tags using naming patterns (e.g., `v*` or specific release tags) alongside branches.
* **Audit Transparency:** Anyone with read access can view active rulesets, helping project auditors verify compliance and governance without requiring admin privileges.
* **Preventing Force Pushes:** Rulesets allow projects to block force-pushes and restrict deletions to designated release managers or PMC members.

### Recommended Practices
* Set rulesets to **Active** enforcement for any matching patterns of released tags or stable maintenance branches.
* Restrict bypass permissions strictly to trusted release officers or infrastructure administrators.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các quy tắc repository được liên kết trong issue và ví dụ về bảo vệ tag trong .asf.yaml của Apache Flume. Xác nhận những tag đã phát hành và các nhánh release quan trọng nào cần được bảo vệ, sau đó cấu hình các ruleset đang hoạt động để chặn việc xóa và sửa đổi, đồng thời giới hạn quyền truy cập bypass. Công việc được xem là hoàn tất khi các quy tắc tương ứng và các vai trò bypass được phép đã được ghi lại và xác minh.

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

Đánh giá

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

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.