Replies: 3 comments 3 replies
-
All three of these would be huge improvements. We have created scripts to parse |
Beta Was this translation helpful? Give feedback.
-
Isn't |
Beta Was this translation helpful? Give feedback.
-
|
I don't see a mention of
I'm looking for a configuration that BLOCKS all scripts from (transitive) dependencies, but ALLOWS my own |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have asked this on Twitter (https://x.com/pnpmjs/status/2054276951641129054) and this is a summery of the replies.
🛡️ Security & Configuration Defaults
minimumReleaseAgeto >1 day (or make the current setting stricter/more prominent).savePrefixdefault to""(removing^or~) sopackage.jsonpins exact versions by default.allowBuilds(or equivalent) more rigorous—e.g., require a specific version or a detailed explanation for the allowance.pnpm installwithout--frozen-lockfile) as a security event, specifically within CI environments.🔍 Dependency Review & Scanning Tools
node_modules(similar tonpm diff).--dry-runmode that generates full diffs, formatted for easy pasting into an LLM with a security prompt.package.jsonchanges to an LLM during CI to analyze what the new code actually requests or does.📦 Lockfile & Reproducibility
installin CI.--frozen-lockfile; pnpm could warn or block standard installs in sensitive contexts.🏗️ Sandbox & Isolation
pnpm install --sandboxand/orpnpm run --sandbox.node_modulesor post-install scripts entirely from the host system.💡 Other Notable Suggestions
minimumReleaseAgethat installs the newest version older than the threshold rather than failing with an error.npm security best practicesrepository.Beta Was this translation helpful? Give feedback.
All reactions