Skip to content

Redact secrets in bunfig.toml and npmrc logs - #14919

Merged
dylan-conway merged 15 commits into
mainfrom
dylan/redacted-config
Nov 1, 2024
Merged

dylan-conway merged 15 commits into
mainfrom
dylan/redacted-config

Conversation

@dylan-conway

@dylan-conway dylan-conway commented Oct 31, 2024 •

Copy link
Copy Markdown
Member

What does this PR do?

Replaces secrets with * when logging errors and warnings for bunfig.toml and npmrc files.

Special keywords searched for: _auth, _authToken, email, _password, token. Additionally UUIDs, npm_ prefixed tokens, and passwords in urls are replaced.

Screenshot 2024-10-30 at 5 25 02 PM

closes #14867
closes #14444

How did you verify your code works?

Added tests for keywords and edgecases

@robobun

robobun commented Oct 31, 2024 •

Copy link
Copy Markdown
Collaborator

@dylan-conway
dylan-conway requested a review from nektro October 31, 2024 20:28
Comment thread src/string_immutable.zig Outdated
Comment thread src/string_immutable.zig Outdated
@dylan-conway
dylan-conway merged commit 62881ee into main Nov 1, 2024
@dylan-conway
dylan-conway deleted the dylan/redacted-config branch November 1, 2024 01:44
190n pushed a commit that referenced this pull request Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants