Skip to content

Add 3-day install cooldown (supply-chain protection)#1292

Closed
vikyw89 wants to merge 2 commits into
dbos-inc:mainfrom
vikyw89:add-npm-cooldown
Closed

Add 3-day install cooldown (supply-chain protection)#1292
vikyw89 wants to merge 2 commits into
dbos-inc:mainfrom
vikyw89:add-npm-cooldown

Conversation

@vikyw89

@vikyw89 vikyw89 commented Jul 1, 2026

Copy link
Copy Markdown

Closes #1293

What

Adds .npmrc with min-release-age=3 — npm will not install a package version until it is at least 3 days old.

Why

Supply-chain protection. Most malicious npm releases are caught and yanked within hours to a day of publish. A short install cooldown means the repo never pulls a version fresh enough to be in that window.

Notes

  • Native npm feature (min-release-age), requires npm >= 11.10.0. Older npm silently ignores unknown .npmrc keys, so this can't break CI on older runners.
  • Bypass for an urgent fix: npm install --min-release-age=0.
  • 3 days chosen per request; bump the number to widen the window.

🤖 Generated with Claude Code

Set npm min-release-age=3 in .npmrc so newly published package
versions are not installed until they are at least 3 days old,
reducing exposure to malicious releases caught shortly after publish.
Requires npm >=11.10.0; silently ignored by older npm.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kraftp

kraftp commented Jul 6, 2026

Copy link
Copy Markdown
Member

This might be a good idea, I'll take a look

@kraftp

kraftp commented Jul 6, 2026

Copy link
Copy Markdown
Member

I think we'll go against this. We update our direct dependencies rarely and deliberately (we only have 6 of them and they haven't changed in a year) and use well-supported well-tested versions. None of our core package.json dependencies are close to being <3 days old, nor have they ever been.

@kraftp kraftp closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add install cooldown for supply-chain protection

2 participants