Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redact secrets in bunfig.toml and npmrc logs #14919

Merged
merged 15 commits into from
Nov 1, 2024
Merged

Conversation

dylan-conway
Copy link
Member

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

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
Copy link

robobun commented Oct 31, 2024

@dylan-conway dylan-conway requested a review from nektro October 31, 2024 20:28
src/string_immutable.zig Outdated Show resolved Hide resolved
src/string_immutable.zig Outdated Show resolved Hide resolved
@dylan-conway dylan-conway merged commit 62881ee into main Nov 1, 2024
4 of 6 checks passed
@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