Post by @jaseg@chaos.social
I'm honestly not a fan at all of PyPI's introduction of a "file provenance" feature under a page labelled "security", branding projects that don't use github, google, or gitlab as insecure.
The way PyPI nudges users to view packages not built at e.g. github or google but on your on infrastructure as "insecure" IMHO runs counter to where we should be going as an open-source ecosystem. Discriminating against e.g. self-hosted #forgejo or platforms like #codeberg in favor of github and google is a bad look in 2026.
@jaseg@chaos.social Can you please tell me what you're seeing that makes you think that? My impression is that it's the inverse.
Packages built using the Trusted Publishing Pipeline are marked as secure. Others aren't. Think about the trade-offs inherent in creating infrastructure like this.
When I look at a package we build with our Concourse pipeline at MIT, this is what I see:
It says "No provenance found". How is that "insecure" ? Or are you looking at something else?
@feoh if you know what you’re looking for that looks harmless. However, if you’re not well-versed in this stuff you see one project page with lots of important-looking stats and a checkmark on the security page, and one with a scary disclaimer and a callout saying “no provenance found”, and you choose the first, github-hosted project over the second. It’s a nudge. It’s not an in your face warning, but a subtle signal.
@feoh The subtleness is what makes this insidious. If you’d measure this at scale, I’m sure you’re going to see this nudge working, especially once LLMs are involved in making decisions on the potential package user’s side.
@feoh Contrast this design with one where you can simply turn off the “security” tab for your project, or one where you can just set your own signing keys at the project level. There is no reason that wouldn’t work technically, it’s a pure policy decision and a question of priorities.