1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Erik Marks cef95f8733
Stop storing request and response objects in the permission activity log (#14485)
We currently store the JSON-RPC request and response objects in the permission activity log. The utility of doing this was always rather dubious, but never problematic. Until now.

In Flask, as the restricted methods have expanded in number, user secrets may be included on JSON-RPC message objects. This PR removes these properties from the permission activity log, and adds a migration which does the same to existing log objects. We don't interact with the log objects anywhere in our codebase, but we don't want unexpected properties to cause errors in the future should any log objects be retained.

This PR also updates relevant tests and test data. It makes a minor functional change to how a request is designated as a success or failure, but this should not change any behavior in practice.
2022-04-21 08:44:15 -07:00
..
account-import-strategies Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
constants Add a new fiat onboarding option via MoonPay (#13934) 2022-03-21 10:26:52 +01:00
controllers Stop storing request and response objects in the permission activity log (#14485) 2022-04-21 08:44:15 -07:00
lib Update segment instantiation check. Only check if SEGMENT_WRITE_KEY exists (#14407) 2022-04-14 18:31:54 -03:00
migrations Stop storing request and response objects in the permission activity log (#14485) 2022-04-21 08:44:15 -07:00
platforms fix instance of browser.extension.getURL() (#14168) 2022-03-24 09:57:24 -05:00
background.js Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00
contentscript.js Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00
disable-console.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
first-time-state.js Ensure one and only one localhost option appears in network list (#12786) 2021-11-22 12:54:42 -03:30
inpage.js @metamask/providers@8.1.1 (#11078) 2021-05-12 19:51:14 -07:00
lockdown-more.js Update build system lockdown parameter (#12556) 2021-11-01 22:13:22 -10:00
lockdown-run.js lockdown - breakout making globalThis properties non-writable (#12258) 2021-10-01 08:53:12 -10:00
metamask-controller.js unblock ci: update vuln deps + fix npm registry for snaps firefox (#14437) 2022-04-13 17:28:03 -10:00
metamask-controller.test.js Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00
phishing-detect.js Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00
sentry-install.js Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
ui.js Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00