Skip to content

chore: enforce 3-day minimum release age for dependencies (supply-chain hardening)#4679

Open
vikyw89 wants to merge 1 commit into
Dokploy:canaryfrom
vikyw89:harden/minimum-release-age
Open

chore: enforce 3-day minimum release age for dependencies (supply-chain hardening)#4679
vikyw89 wants to merge 1 commit into
Dokploy:canaryfrom
vikyw89:harden/minimum-release-age

Conversation

@vikyw89

@vikyw89 vikyw89 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What

Adds minimumReleaseAge: 4320 to pnpm-workspace.yaml — pnpm refuses to resolve any dependency version published less than 3 days ago.

Why

Newly published npm versions are the highest-risk window for supply-chain attacks. Most malicious releases are detected and yanked within a day or two; a 3-day cooldown means a compromised version gets caught before it lands in CI or dev machines.

Notes

  • Uses pnpm's native minimumReleaseAge (10.16+); repo is on pnpm 10.22, so no new dependency.
  • Workspace-wide — covers root, all apps/*, and packages/server.
  • Only gates new resolutions; versions already pinned in pnpm-lock.yaml are unaffected, so installs from the committed lockfile keep working.
  • If an urgent bump is ever needed inside the window, minimumReleaseAgeExclude can allowlist specific packages.

Closes #4678

🤖 Generated with Claude Code

Supply-chain hardening. pnpm 10.16+ native minimumReleaseAge refuses to
resolve any dependency version published less than 3 days ago (4320 min),
so newly-published malicious versions get caught/yanked before we install.
Workspace-wide, so it covers root, apps/* and packages/server. Only gates
new resolutions; versions already pinned in the lockfile are unaffected.

Closes Dokploy#4678

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vikyw89 vikyw89 requested a review from Siumauricio as a code owner June 22, 2026 14:54
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supply-chain hardening: enforce a minimum release age for dependencies

1 participant