Skip to content

Commit

Permalink
Update LavaMoat policies
Browse files Browse the repository at this point in the history
  • Loading branch information
metamaskbot committed Oct 29, 2024
1 parent ae0c01c commit 4ab6bb4
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 156 deletions.
86 changes: 78 additions & 8 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,7 @@
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/snaps-controllers>@metamask/json-rpc-middleware-stream": true,
"@metamask/snaps-controllers>@metamask/permission-controller": true,
"@metamask/snaps-controllers>@metamask/snaps-utils": true,
"@metamask/snaps-controllers>@xstate/fsm": true,
"@metamask/snaps-controllers>concat-stream": true,
"@metamask/snaps-controllers>get-npm-tarball-url": true,
Expand All @@ -2440,7 +2441,6 @@
"@metamask/snaps-controllers>tar-stream": true,
"@metamask/snaps-rpc-methods": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-utils": true,
"@metamask/snaps-utils>@metamask/snaps-registry": true,
"@metamask/utils": true,
"browserify>browserify-zlib": true,
Expand Down Expand Up @@ -2495,6 +2495,41 @@
"immer": true
}
},
"@metamask/snaps-controllers>@metamask/snaps-utils": {
"globals": {
"File": true,
"FileReader": true,
"TextDecoder": true,
"TextEncoder": true,
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true,
"crypto": true,
"document.body.appendChild": true,
"document.createElement": true,
"fetch": true
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/permission-controller": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>fast-xml-parser": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@noble/hashes": true,
"chalk": true,
"semver": true
}
},
"@metamask/snaps-controllers>concat-stream": {
"packages": {
"browserify>buffer": true,
Expand Down Expand Up @@ -2554,9 +2589,9 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller": true,
"@metamask/snaps-rpc-methods>@metamask/snaps-utils": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true
Expand All @@ -2570,24 +2605,59 @@
"@metamask/controller-utils": true,
"@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": true,
"@metamask/snaps-rpc-methods>@metamask/snaps-utils>@metamask/base-controller": true,
"@metamask/utils": true,
"deep-freeze-strict": true,
"immer": true
}
},
"@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": {
"@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": {
"globals": {
"setTimeout": true
"crypto.getRandomValues": true
}
},
"@metamask/snaps-rpc-methods>@metamask/snaps-utils": {
"globals": {
"File": true,
"FileReader": true,
"TextDecoder": true,
"TextEncoder": true,
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true,
"crypto": true,
"document.body.appendChild": true,
"document.createElement": true,
"fetch": true
},
"packages": {
"immer": true
"@metamask/rpc-errors": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>fast-xml-parser": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@noble/hashes": true,
"chalk": true,
"semver": true
}
},
"@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": {
"@metamask/snaps-rpc-methods>@metamask/snaps-utils>@metamask/base-controller": {
"globals": {
"crypto.getRandomValues": true
"setTimeout": true
},
"packages": {
"immer": true
}
},
"@metamask/snaps-sdk": {
Expand Down
86 changes: 78 additions & 8 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,7 @@
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/snaps-controllers>@metamask/json-rpc-middleware-stream": true,
"@metamask/snaps-controllers>@metamask/permission-controller": true,
"@metamask/snaps-controllers>@metamask/snaps-utils": true,
"@metamask/snaps-controllers>@xstate/fsm": true,
"@metamask/snaps-controllers>concat-stream": true,
"@metamask/snaps-controllers>get-npm-tarball-url": true,
Expand All @@ -2440,7 +2441,6 @@
"@metamask/snaps-controllers>tar-stream": true,
"@metamask/snaps-rpc-methods": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-utils": true,
"@metamask/snaps-utils>@metamask/snaps-registry": true,
"@metamask/utils": true,
"browserify>browserify-zlib": true,
Expand Down Expand Up @@ -2495,6 +2495,41 @@
"immer": true
}
},
"@metamask/snaps-controllers>@metamask/snaps-utils": {
"globals": {
"File": true,
"FileReader": true,
"TextDecoder": true,
"TextEncoder": true,
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true,
"crypto": true,
"document.body.appendChild": true,
"document.createElement": true,
"fetch": true
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/permission-controller": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>fast-xml-parser": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@noble/hashes": true,
"chalk": true,
"semver": true
}
},
"@metamask/snaps-controllers>concat-stream": {
"packages": {
"browserify>buffer": true,
Expand Down Expand Up @@ -2554,9 +2589,9 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller": true,
"@metamask/snaps-rpc-methods>@metamask/snaps-utils": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true
Expand All @@ -2570,24 +2605,59 @@
"@metamask/controller-utils": true,
"@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": true,
"@metamask/snaps-rpc-methods>@metamask/snaps-utils>@metamask/base-controller": true,
"@metamask/utils": true,
"deep-freeze-strict": true,
"immer": true
}
},
"@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": {
"@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": {
"globals": {
"setTimeout": true
"crypto.getRandomValues": true
}
},
"@metamask/snaps-rpc-methods>@metamask/snaps-utils": {
"globals": {
"File": true,
"FileReader": true,
"TextDecoder": true,
"TextEncoder": true,
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true,
"crypto": true,
"document.body.appendChild": true,
"document.createElement": true,
"fetch": true
},
"packages": {
"immer": true
"@metamask/rpc-errors": true,
"@metamask/snaps-rpc-methods>@metamask/permission-controller": true,
"@metamask/snaps-sdk": true,
"@metamask/snaps-sdk>@metamask/key-tree": true,
"@metamask/snaps-utils>@metamask/slip44": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>fast-xml-parser": true,
"@metamask/snaps-utils>marked": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@noble/hashes": true,
"chalk": true,
"semver": true
}
},
"@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": {
"@metamask/snaps-rpc-methods>@metamask/snaps-utils>@metamask/base-controller": {
"globals": {
"crypto.getRandomValues": true
"setTimeout": true
},
"packages": {
"immer": true
}
},
"@metamask/snaps-sdk": {
Expand Down
Loading

0 comments on commit 4ab6bb4

Please sign in to comment.