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

未关闭
#8,330 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
backend, security

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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?

主要语言
Python
星标
641
派生
178
平均合并
17 小时 36 分钟
30 天内合并 PR
76

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pulp/pulpcore 的其他 Issue

查看 pulp/pulpcore 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。