fix: redact SDK related URLs#26690
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes:
The SDKConnectV2 module handles SDK deeplink connections (MWP protocol), but the E2E smoke tests focus on browser-based dApp connections rather than SDK deeplink flows. There are no Detox E2E tests that specifically test SDK deeplink functionality. Since no functional behavior is changed and the unit tests are updated, no E2E tests are required to validate these logging-only changes. Performance Test Selection: |
| payload && typeof payload === 'object' && 'data' in payload | ||
| ? (payload.data as Record<string, unknown>) | ||
| : undefined; | ||
| logger.debug('Received message:', this.id, { |
There was a problem hiding this comment.
we could obfuscate parameter values here (in case they exist) instead of omitting them, which might facilitate debugging. thoughts?
There was a problem hiding this comment.
I'm more akin to omitting. Less code to manage, and one less layer of possible exposure if someone forgets to properly obfuscate a newly passed param for some reason.
Description
redactUrlutility to strip query/fragment params from deeplink URLs before loggingChangelog
CHANGELOG entry:
Related issues
Fixes: WAPI-1117
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: changes are limited to logging/error messages in SDKConnectV2, with minimal behavioral impact aside from altered log output and one test expectation.
Overview
Prevents sensitive SDKConnectV2/MWP connection parameters from being written to logs by introducing
redactUrl()and using it when throwing/logging deeplink handling errors.Reduces verbosity of connection message logging by logging only JSON-RPC
methodandid(instead of full payloads), and adjusts connect-deeplink success logging to avoid dumping fullConnectionInfo. Updates thehandleMwpDeeplinknon-string URL test to expect the new redacted/invalid URL message.Written by Cursor Bugbot for commit dd3a3d0. This will update automatically on new commits. Configure here.