feat: set default min-release-age to 3 days#9173
feat: set default min-release-age to 3 days#9173sotanengel wants to merge 1 commit intonpm:latestfrom
Conversation
…rotection Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
a164633 to
0ed504a
Compare
booniepepper
left a comment
There was a problem hiding this comment.
LGTM, although for people/organizations with private repositories (or similar use cases), they'll need the ability to scope this value to specific registries
|
@booniepepper Could you share what direction you’re considering for handling registry scoping? If there’s something specific I can help evaluate or test, I’d be happy to support. |
|
I'm most familiar with private repositories in a corporate environment. Cloudsmith, GitHub packages, AWS CodeArtifact, etc Generally the pattern I've seen is to use these for internal-only packages, either libraries specific to some internal details, or CLI tools specific to an organization's internal auth and opinionated tool stacks |
|
@booniepepper Because of that, it might make sense to allow For example: registry=https://registry.npmjs.org/ @internal:registry=https://npm.company.local/ Would this approach align with what you had in mind? |
🛡️ Motivation: Recent Supply Chain Attacks
This change is motivated by a wave of confirmed supply chain attacks in 2025–2026:
Key finding: According to Andrew Nesbitt's research, 8 out of 10 recent supply chain attacks were detected and removed within 1 week of publication. A 3-day cooldown would have blocked most of them automatically.
🔧 What This PR Does
Sets the default value of
min-release-agefromnull(disabled) to3(days).min-release-age=0in.npmrcto restore the previous behavior📋 Compliance Alignment
🔗 References