We should use repository rulesets to prevent the deletion or modification of released tags and critical release branches
- Lingua principale
- Java
- Stelle
- 3.1k
- Fork
- 1.4k
- Merge medio
- 6g 19h
- PR unite (30g)
- 32
Descrizione
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
---
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia esaminando le regole del repository collegate nell’issue e l’esempio di protezione dei tag in .asf.yaml di Apache Flume. Conferma quali tag pubblicati e quali branch di release critici devono essere protetti, quindi configura ruleset attivi che blocchino l’eliminazione e la modifica, limitando al contempo l’accesso di bypass. Il lavoro è completato quando le regole corrispondenti e i ruoli di bypass autorizzati sono documentati e verificati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github
- Ambito
- release, security
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100