Skip to content

chore: harden npm and yarn config - #180

Closed
mikesposito wants to merge 1 commit into
mainfrom
me/hardened-config
Closed

chore: harden npm and yarn config#180
mikesposito wants to merge 1 commit into
mainfrom
me/hardened-config

Conversation

@mikesposito

Copy link
Copy Markdown
Member

Explanation

Hardening dev environment for this repo. See https://lavamoat.github.io/guides/hardening-dev/

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

@mikesposito
mikesposito requested review from a team as code owners August 20, 2026 18:26
@mikesposito
mikesposito deployed to default-branch August 20, 2026 18:26 — with GitHub Actions Active
@ulissesferreira

Copy link
Copy Markdown
Contributor

Hey @mikesposito, I saw Lavamoat's guide include some extra steps including the preferred use of the package @lavamoat/harden. What do you think we do that? https://lavamoat.github.io/guides/hardening-dev/

@Mrtenz Mrtenz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm working on a full integration of LavaMoat/harden in the core repository. This is a bit more involved than adding some config files, as the latest version of harden includes a Yarn plugin which limits permissions of package.json scripts. Still working through some bugs with Zb before we can use this in monorepos though.

Comment thread .npmrc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this should be unnecessary, since we use Yarn.

See the module template for reference: https://github.com/MetaMask/metamask-module-template/blob/f20b5e7c1ed6f4d4e2f1beb7eb06898aa66be0c0/.npmrc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikesposito

Copy link
Copy Markdown
Member Author

Closing this until this work is done on core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants