Skip to content

[v5.x] chore(deps): harden bun install settings#9361

Draft
peaklabs-dev wants to merge 2 commits intov5.xfrom
v5.x-chore/harden-bun-install
Draft

[v5.x] chore(deps): harden bun install settings#9361
peaklabs-dev wants to merge 2 commits intov5.xfrom
v5.x-chore/harden-bun-install

Conversation

@peaklabs-dev
Copy link
Copy Markdown
Member

@peaklabs-dev peaklabs-dev commented Mar 31, 2026

Harden Bun to protect against supply chain attacks (e.g. Axios compromised) and ensure reproducible installs.

Changes

  • Set linker to isolated to eliminate phantom dependencies (packages accessible without being declared in package.json)
    • Explicitly install @inertiajs/core, previously resolved as a transitive dependency of @inertiajs/svelte
  • Enable frozenLockfile to ensure each developer and also production Docker image builds (in the future) install the exact dependency versions from the lockfile
  • Require a minimum package release age of 7 days to avoid installing freshly published or potentially hijacked packages and prevent supply chain attacks
  • Disable telemetry
  • Disable automatic .env file loading

TODO

  • Possibly remove frozenLockfile, as it seems broken - it also prevents the installation of new packages (bun add) because it runs all the time, not only during a bun install?

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.

1 participant