feat: add plugin-bun for Bun configuration - #241
Conversation
…-minimum-release-age security vulnerability Automated security fix generated by OrbisAI Security
|
What if some of dependencies would be updated, for example |
|
Yes — that's the core trade-off of With The intent is supply-chain hardening: because If an urgent update is needed before the window expires, Bun supports [install]
minimumReleaseAge = 604800
minimumReleaseAgeExcludes = ["supertape"]I've updated the PR description to make this trade-off explicit and removed the "exploit primitive" / "input handling" language, which overstated what this change does. This is better characterized as dependency supply-chain hardening rather than a fix for an exploitable vulnerability in putout. |
|
It looks like an idea for a new rule |
|
It can be something similar to |
|
All changes to configuration files made by 🐊plugins, because there is 1000s of repos, and edit this file manually every time not very productive. If you want to proceed, plead re-open. |
|
Yes, I think that's a better direction. I initially approached this as a repository-level hardening change, but I agree that the underlying check is more useful as a reusable rule. I'll rework this into a For the initial rule, I'll focus on I'll update this PR in that direction. |
What this changes
Adds
minimumReleaseAge = 604800tobunfig.toml, requiring Bun to refuse package versions published less than 7 days ago during dependency resolution.Why
This is a supply-chain hardening measure. Because
lockfile = falseis already set in this repository, dependencies are re-resolved from the registry on everybun install. Without a minimum release age, a newly published (potentially compromised) package version could be installed immediately. The 7-day window gives the community time to detect and respond to malicious or compromised releases before they land here.Trade-off
Newly released versions of any dependency (including
supertape,madrun, etc.) will not be eligible for installation until they are at least 7 days old — even ifpackage.jsonexplicitly requests them. If an urgent dependency update is needed before the age window expires, Bun supports per-package exemptions:This allows the protection to remain globally active while accommodating exceptional cases.
Severity note
This is preventative hardening, not a fix for an exploitable vulnerability in putout. Severity is low/informational — the risk is a future supply-chain attack, not a current exploit.