[proposal] Configurable dependency supply-chain policies (cooldowns)

Aperta
#8,330 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, security

Direzione di ricerca

The proposal names pulpcore and the npm, Python, and NuGet plugins, but does not identify specific files or tests. Start by reviewing the existing content guard and package metadata paths in those components. Done would require maintainer agreement on the shared policy and adapter design, including timestamp handling, cached downloads, and exceptions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature Triage-Needed

Is your feature request related to a problem? Please describe.

I’d like to use Pulp to apply a consistent dependency cooldown across npm, Python and NuGet: withholding newly published packages for a configurable period before developers and CI can download them.

Describe the solution you'd like

Opt-in policies per distribution, initially supporting:

  • Configurable minimum publication age (and possibly maximum publication age)
  • Consistent filtering of package metadata and enforcement on direct downloads, including cached packages.
  • Explicit handling of missing publication timestamps.
  • Manual package blocklist and scoped, audited exceptions for urgent updates.

I think a shared policy plugin with integrations into specific ecosystem plugins should work. Existing content guards could provide the initial download gate, while metadata filtering would need plugin-specific handling.

I’d welcome maintainer feedback on that approach before implementation, particularly whether independent admission hooks in pulpcore would be useful. Full verification or scanning before delivery could follow as a separate milestone.

Describe alternatives you've considered

Using package-manager controls directly, for example:

The obvious alternative option is manually promoting packages into approved repositories. That offers stronger control, but adds operational work compared with an automatic age-based policy.

Additional context

I’ve done an initial source review of pulpcore and the npm, python and nuget plugins. The main considerations appear to be preserving upstream timestamps, covering metadata and direct-download paths, and ensuring caches cannot bypass policy changes.

Is this something the project would be interested in supporting, and would a shared plugin with ecosystem adapters be the preferred direction?

Lingua principale
Python
Stelle
641
Fork
178
Merge medio
17h 36m
PR unite (30g)
76

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pulp/pulpcore

Tutte le issue di pulp/pulpcore

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.