Python包索引(PyPI)正式推出重新设计的项目页面,旨在通过更清晰的安全信号辅助开发者评估软件包的安全性 1。此次更新引入了新的“安全”标签页,详细展示了发布文件的来源状态(Provenance States)及每个文件的数字证明(Attestations) 1。
在来源状态分类上,系统区分了“完全来源”(Full Provenance),即100%的文件拥有数字证明;以及“无来源”(No Provenance),意味着没有任何文件具备加密验证的证明,但这并不一定代表恶意行为 1。此外,新界面引入了五种“来源警告”以提示潜在风险,包括不完整(Incomplete)、不一致(Inconsistent)、变更(Change of)、丢失(Loss of),以及针对上传延迟超过14天的文件发出的警告 1。
在项目详情页的整体布局优化方面,警告横幅被置于页面顶部,侧边栏增加了显示来源状态的链接,同时元数据根据实用性进行排序,并明确标记为“PyPI数据”或“由PyPI验证的数据” 1。该项目由开源安全基金会(OpenSSF)资助,Kabu Creative负责实施,开发过程基于用户研究展开 1。
The Python Package Index (PyPI) has officially released a redesigned project page interface aimed at helping developers better assess the security of software packages through clearer visual signals 1. The update introduces a dedicated "Security" tab that displays detailed provenance states and digital attestations for release files, allowing users to verify the origin and integrity of the code they are downloading 1. This initiative was funded by the Open Source Security Foundation (OpenSSF) and implemented by Kabu Creative, based on findings from user research 1.
A key component of the new interface is the classification of provenance states into "Full Provenance," where 100% of files have attestations, and "No Provenance," indicating that while files may not be malicious, they lack cryptographic verification 1. The system also incorporates five specific "Provenance Warnings"—Incomplete, Inconsistent, Change of, Loss of, and warnings for files uploaded with a delay exceeding 14 days—to alert users to potential issues with file origins 1. Additionally, the project detail pages have been optimized with top-pinned warning banners, sidebar links for provenance status, and metadata sorted by utility, clearly labeled as either "PyPI data" or "Data verified by PyPI" 1.
评论
还没有评论,欢迎留下第一条。