From d146cdf6dde2775d14ffb5d57017b66038f29a22 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Tue, 22 Oct 2024 22:57:23 +0000 Subject: [PATCH] chore: update lavamoat policies --- lavamoat/browserify/beta/policy.json | 85 ++++++++++++++++++++++----- lavamoat/browserify/flask/policy.json | 85 ++++++++++++++++++++++----- lavamoat/browserify/main/policy.json | 85 ++++++++++++++++++++++----- lavamoat/browserify/mmi/policy.json | 85 ++++++++++++++++++++++----- 4 files changed, 280 insertions(+), 60 deletions(-) diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 86597b9a15fa..a99bc5a7a0d9 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -370,9 +370,9 @@ "@ethereumjs/tx": true, "@keystonehq/bc-ur-registry-eth": true, "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true, - "@keystonehq/metamask-airgapped-keyring>rlp": true, - "@metamask/obs-store": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true, "browserify>buffer": true, + "ethereumjs-util>rlp": true, "uuid": true, "webpack>events": true } @@ -382,18 +382,65 @@ "@ethereumjs/tx": true, "@ethereumjs/tx>@ethereumjs/util": true, "@keystonehq/bc-ur-registry-eth": true, + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true, "@metamask/eth-trezor-keyring>hdkey": true, "browserify>buffer": true, - "eth-lattice-keyring>rlp": true, "uuid": true } }, - "@keystonehq/metamask-airgapped-keyring>rlp": { + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": { + "globals": { + "TextEncoder": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, + "stream-browserify": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": true, + "browserify>util": true, + "process": true, + "watchify>xtend": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>isarray": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": true, + "browserify>browser-resolve": true, + "browserify>timers-browserify": true, + "process": true, + "pumpify>inherits": true, + "readable-stream-2>core-util-is": true, + "readable-stream-2>process-nextick-args": true, + "readable-stream>util-deprecate": true, + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": { "packages": { - "bn.js": true, "browserify>buffer": true } }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true + } + }, "@lavamoat/lavadome-react": { "globals": { "Document.prototype": true, @@ -1362,18 +1409,12 @@ "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util": { "packages": { "@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": true, "bn.js": true, "browserify>assert": true, "browserify>buffer": true, "browserify>insert-module-globals>is-buffer": true, - "ethereumjs-util>create-hash": true - } - }, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": { - "packages": { - "bn.js": true, - "browserify>buffer": true + "ethereumjs-util>create-hash": true, + "ethereumjs-util>rlp": true } }, "@metamask/logging-controller": { @@ -1713,7 +1754,6 @@ "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, - "@metamask/utils": true, "bignumber.js": true, "loglevel": true, "uuid": true @@ -4046,9 +4086,9 @@ "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, "eth-lattice-keyring>gridplus-sdk>borc": true, + "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, - "eth-lattice-keyring>rlp": true, "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethers>@ethersproject/sha2>hash.js": true, "lodash": true @@ -4102,6 +4142,11 @@ "location": true } }, + "eth-lattice-keyring>gridplus-sdk>rlp": { + "globals": { + "TextEncoder": true + } + }, "eth-lattice-keyring>gridplus-sdk>secp256k1": { "packages": { "@metamask/ppom-validator>elliptic": true @@ -5316,6 +5361,16 @@ "webpack>events": true } }, + "readable-stream-2>core-util-is": { + "packages": { + "browserify>insert-module-globals>is-buffer": true + } + }, + "readable-stream-2>process-nextick-args": { + "packages": { + "process": true + } + }, "readable-stream>util-deprecate": { "globals": { "console.trace": true, diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 86597b9a15fa..a99bc5a7a0d9 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -370,9 +370,9 @@ "@ethereumjs/tx": true, "@keystonehq/bc-ur-registry-eth": true, "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true, - "@keystonehq/metamask-airgapped-keyring>rlp": true, - "@metamask/obs-store": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true, "browserify>buffer": true, + "ethereumjs-util>rlp": true, "uuid": true, "webpack>events": true } @@ -382,18 +382,65 @@ "@ethereumjs/tx": true, "@ethereumjs/tx>@ethereumjs/util": true, "@keystonehq/bc-ur-registry-eth": true, + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true, "@metamask/eth-trezor-keyring>hdkey": true, "browserify>buffer": true, - "eth-lattice-keyring>rlp": true, "uuid": true } }, - "@keystonehq/metamask-airgapped-keyring>rlp": { + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": { + "globals": { + "TextEncoder": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, + "stream-browserify": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": true, + "browserify>util": true, + "process": true, + "watchify>xtend": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>isarray": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": true, + "browserify>browser-resolve": true, + "browserify>timers-browserify": true, + "process": true, + "pumpify>inherits": true, + "readable-stream-2>core-util-is": true, + "readable-stream-2>process-nextick-args": true, + "readable-stream>util-deprecate": true, + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": { "packages": { - "bn.js": true, "browserify>buffer": true } }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true + } + }, "@lavamoat/lavadome-react": { "globals": { "Document.prototype": true, @@ -1362,18 +1409,12 @@ "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util": { "packages": { "@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": true, "bn.js": true, "browserify>assert": true, "browserify>buffer": true, "browserify>insert-module-globals>is-buffer": true, - "ethereumjs-util>create-hash": true - } - }, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": { - "packages": { - "bn.js": true, - "browserify>buffer": true + "ethereumjs-util>create-hash": true, + "ethereumjs-util>rlp": true } }, "@metamask/logging-controller": { @@ -1713,7 +1754,6 @@ "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, - "@metamask/utils": true, "bignumber.js": true, "loglevel": true, "uuid": true @@ -4046,9 +4086,9 @@ "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, "eth-lattice-keyring>gridplus-sdk>borc": true, + "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, - "eth-lattice-keyring>rlp": true, "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethers>@ethersproject/sha2>hash.js": true, "lodash": true @@ -4102,6 +4142,11 @@ "location": true } }, + "eth-lattice-keyring>gridplus-sdk>rlp": { + "globals": { + "TextEncoder": true + } + }, "eth-lattice-keyring>gridplus-sdk>secp256k1": { "packages": { "@metamask/ppom-validator>elliptic": true @@ -5316,6 +5361,16 @@ "webpack>events": true } }, + "readable-stream-2>core-util-is": { + "packages": { + "browserify>insert-module-globals>is-buffer": true + } + }, + "readable-stream-2>process-nextick-args": { + "packages": { + "process": true + } + }, "readable-stream>util-deprecate": { "globals": { "console.trace": true, diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 86597b9a15fa..a99bc5a7a0d9 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -370,9 +370,9 @@ "@ethereumjs/tx": true, "@keystonehq/bc-ur-registry-eth": true, "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true, - "@keystonehq/metamask-airgapped-keyring>rlp": true, - "@metamask/obs-store": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true, "browserify>buffer": true, + "ethereumjs-util>rlp": true, "uuid": true, "webpack>events": true } @@ -382,18 +382,65 @@ "@ethereumjs/tx": true, "@ethereumjs/tx>@ethereumjs/util": true, "@keystonehq/bc-ur-registry-eth": true, + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true, "@metamask/eth-trezor-keyring>hdkey": true, "browserify>buffer": true, - "eth-lattice-keyring>rlp": true, "uuid": true } }, - "@keystonehq/metamask-airgapped-keyring>rlp": { + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": { + "globals": { + "TextEncoder": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, + "stream-browserify": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": true, + "browserify>util": true, + "process": true, + "watchify>xtend": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>isarray": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": true, + "browserify>browser-resolve": true, + "browserify>timers-browserify": true, + "process": true, + "pumpify>inherits": true, + "readable-stream-2>core-util-is": true, + "readable-stream-2>process-nextick-args": true, + "readable-stream>util-deprecate": true, + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": { "packages": { - "bn.js": true, "browserify>buffer": true } }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true + } + }, "@lavamoat/lavadome-react": { "globals": { "Document.prototype": true, @@ -1362,18 +1409,12 @@ "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util": { "packages": { "@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": true, "bn.js": true, "browserify>assert": true, "browserify>buffer": true, "browserify>insert-module-globals>is-buffer": true, - "ethereumjs-util>create-hash": true - } - }, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": { - "packages": { - "bn.js": true, - "browserify>buffer": true + "ethereumjs-util>create-hash": true, + "ethereumjs-util>rlp": true } }, "@metamask/logging-controller": { @@ -1713,7 +1754,6 @@ "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, - "@metamask/utils": true, "bignumber.js": true, "loglevel": true, "uuid": true @@ -4046,9 +4086,9 @@ "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, "eth-lattice-keyring>gridplus-sdk>borc": true, + "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, - "eth-lattice-keyring>rlp": true, "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethers>@ethersproject/sha2>hash.js": true, "lodash": true @@ -4102,6 +4142,11 @@ "location": true } }, + "eth-lattice-keyring>gridplus-sdk>rlp": { + "globals": { + "TextEncoder": true + } + }, "eth-lattice-keyring>gridplus-sdk>secp256k1": { "packages": { "@metamask/ppom-validator>elliptic": true @@ -5316,6 +5361,16 @@ "webpack>events": true } }, + "readable-stream-2>core-util-is": { + "packages": { + "browserify>insert-module-globals>is-buffer": true + } + }, + "readable-stream-2>process-nextick-args": { + "packages": { + "process": true + } + }, "readable-stream>util-deprecate": { "globals": { "console.trace": true, diff --git a/lavamoat/browserify/mmi/policy.json b/lavamoat/browserify/mmi/policy.json index db949049605f..5a3b2becb001 100644 --- a/lavamoat/browserify/mmi/policy.json +++ b/lavamoat/browserify/mmi/policy.json @@ -370,9 +370,9 @@ "@ethereumjs/tx": true, "@keystonehq/bc-ur-registry-eth": true, "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true, - "@keystonehq/metamask-airgapped-keyring>rlp": true, - "@metamask/obs-store": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true, "browserify>buffer": true, + "ethereumjs-util>rlp": true, "uuid": true, "webpack>events": true } @@ -382,18 +382,65 @@ "@ethereumjs/tx": true, "@ethereumjs/tx>@ethereumjs/util": true, "@keystonehq/bc-ur-registry-eth": true, + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true, "@metamask/eth-trezor-keyring>hdkey": true, "browserify>buffer": true, - "eth-lattice-keyring>rlp": true, "uuid": true } }, - "@keystonehq/metamask-airgapped-keyring>rlp": { + "@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": { + "globals": { + "TextEncoder": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, + "stream-browserify": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": true, + "browserify>util": true, + "process": true, + "watchify>xtend": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>isarray": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": true, + "browserify>browser-resolve": true, + "browserify>timers-browserify": true, + "process": true, + "pumpify>inherits": true, + "readable-stream-2>core-util-is": true, + "readable-stream-2>process-nextick-args": true, + "readable-stream>util-deprecate": true, + "webpack>events": true + } + }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": { "packages": { - "bn.js": true, "browserify>buffer": true } }, + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>string_decoder": { + "packages": { + "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2>readable-stream>safe-buffer": true + } + }, "@lavamoat/lavadome-react": { "globals": { "Document.prototype": true, @@ -1454,18 +1501,12 @@ "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util": { "packages": { "@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": true, "bn.js": true, "browserify>assert": true, "browserify>buffer": true, "browserify>insert-module-globals>is-buffer": true, - "ethereumjs-util>create-hash": true - } - }, - "@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": { - "packages": { - "bn.js": true, - "browserify>buffer": true + "ethereumjs-util>create-hash": true, + "ethereumjs-util>rlp": true } }, "@metamask/logging-controller": { @@ -1805,7 +1846,6 @@ "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, - "@metamask/utils": true, "bignumber.js": true, "loglevel": true, "uuid": true @@ -4138,9 +4178,9 @@ "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, "eth-lattice-keyring>gridplus-sdk>borc": true, + "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, - "eth-lattice-keyring>rlp": true, "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethers>@ethersproject/sha2>hash.js": true, "lodash": true @@ -4194,6 +4234,11 @@ "location": true } }, + "eth-lattice-keyring>gridplus-sdk>rlp": { + "globals": { + "TextEncoder": true + } + }, "eth-lattice-keyring>gridplus-sdk>secp256k1": { "packages": { "@metamask/ppom-validator>elliptic": true @@ -5384,6 +5429,16 @@ "webpack>events": true } }, + "readable-stream-2>core-util-is": { + "packages": { + "browserify>insert-module-globals>is-buffer": true + } + }, + "readable-stream-2>process-nextick-args": { + "packages": { + "process": true + } + }, "readable-stream>util-deprecate": { "globals": { "console.trace": true,