Repository navigation
[No QA] Redact cardNumber and cardCVV in client logs - #103289
Merged
Merged
Conversation
Contributor
Author
|
I dont think we need C+ here cc @robertjchen |
dukenv0307
marked this pull request as ready for review
October 7, 2026 07:40
melvin-bot
Bot
requested review from
JmillsExpensify and
Ollyws
and removed request for
a team and
JmillsExpensify
October 7, 2026 07:40
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
robertjchen
approved these changes
Oct 8, 2026
Contributor
|
🚧 robertjchen has triggered a test Expensify/App build. You can view the workflow run here. |
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
90 tasks done
Contributor
|
🚀 Deployed to staging by https://github.com/robertjchen in version: 9.5.6-0 🚀
|
Contributor
|
No help site update is needed. This PR only redacts card numbers and CVVs from client-side logs, which is an internal change that users can't see. |
Contributor
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.5.6-6 🚀
Bundle Size Analysis (Sentry): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
The logging middleware sends every API request through sanitizeLogParams, but cardNumber and cardCVV were missing from SENSITIVE_KEYS. Add both keys to SENSITIVE_KEYS
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/685710
PROPOSAL:
Tests
App/src/libs/Middleware/Logging.ts
Line 78 in 6512c3d
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari