Skip to content

Code Quality: Mask username and file paths from log file - #18846

Merged
yair100 merged 2 commits into
mainfrom
ya/log-privacy
Aug 20, 2026
Merged

Code Quality: Mask username and file paths from log file#18846
yair100 merged 2 commits into
mainfrom
ya/log-privacy

Conversation

@yair100

@yair100 yair100 commented Aug 19, 2026

Copy link
Copy Markdown
Member

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

  • Closes #

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Opened log file
  2. Confirmed no usernames were written

@yair100 yair100 added the ready for review Pull requests that are ready for review label Aug 19, 2026
@yair100
yair100 requested review from 0x5bfa and Josh65-2201 August 19, 2026 20:26

@Josh65-2201 Josh65-2201 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only have Google drive to test the user name filter. Seem it taking out the full path rather than just the user name

Adding cloud provider "Google Drive" mapped to C:\Users\Josh\Google Drive Streaming\My Drive
to
Adding cloud provider GoogleDrive mapped to [hash:d8dda600]

Would expected
C:\Users\[User name]\Google Drive Streaming\My Drive

@yair100

yair100 commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

@Josh65-2201 can you please check again?

  • Cloud drives now redact the username but keep everything else intact.
  • All other paths are fully redacted and only display the drive letter and file extension.

Josh65-2201
Josh65-2201 previously approved these changes Aug 20, 2026

@0x5bfa 0x5bfa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise, LGTM. but what about emails?

@yair100

yair100 commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

@0x5bfa where do emails come up?

@0x5bfa

0x5bfa commented Aug 20, 2026

Copy link
Copy Markdown
Member

I just remembered this reply #16702 (comment)

@yair100 yair100 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Aug 20, 2026
@yair100
yair100 merged commit 59efa44 into main Aug 20, 2026
8 checks passed
@yair100
yair100 deleted the ya/log-privacy branch August 20, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants