Skip to content

chore: add minimum release age protection#21

Merged
gregnr merged 1 commit into
mainfrom
chore/min-release-age
May 13, 2026
Merged

chore: add minimum release age protection#21
gregnr merged 1 commit into
mainfrom
chore/min-release-age

Conversation

@saltcod
Copy link
Copy Markdown
Member

@saltcod saltcod commented May 12, 2026

What

Adds a minimum-release-age guard so this repo will not install npm packages
newer than 3 days old at install time.

  • File added/updated: .npmrc
  • Value: 3 (days — npm's min-release-age unit is days)

Why

Recent npm supply-chain attacks (malicious versions of chalk, debug,
color-name, the Shai-Hulud self-propagating worm, etc.) were typically
caught and yanked within hours of publish. Holding new versions for 3 days
before installing them dramatically reduces exposure to 0-day malicious
publishes without meaningfully slowing day-to-day development.

References:

Risk / rollout

  • No functional change to application code.
  • Only affects fresh installs of versions less than 3 days old.
  • Reversible by removing the setting.

Part of an org-wide supply-chain hardening pass.

@saltcod saltcod force-pushed the chore/min-release-age branch from 293cd10 to 76d6e5e Compare May 12, 2026 23:43
@gregnr gregnr merged commit cd5b5e4 into main May 13, 2026
4 checks passed
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.

3 participants