Skip to content
New issue

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

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

Already on GitHub? # to your account

Redact userToken in diagnostics and fatal error output #859

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Nov 17, 2023

Redacts secret tokens in both diagnostics and fatal error output. We already had a redact function for this, I just moved it to utils for reuse and added userToken to the list of redacted fields.

📦 Published PR as canary version: 9.0.1--canary.859.6904794945.0

✨ Test out this PR locally via:

npm install chromatic@9.0.1--canary.859.6904794945.0
# or 
yarn add chromatic@9.0.1--canary.859.6904794945.0

@ghengeveld ghengeveld added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels Nov 17, 2023
Copy link
Member

@thafryer thafryer left a comment

Choose a reason for hiding this comment

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

Looks good! Can we add a test?

@ghengeveld
Copy link
Member Author

Done!

Copy link
Member

@thafryer thafryer left a comment

Choose a reason for hiding this comment

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

LGTM!

@ghengeveld ghengeveld added this pull request to the merge queue Nov 17, 2023
@ghengeveld ghengeveld removed this pull request from the merge queue due to a manual request Nov 17, 2023
@ghengeveld ghengeveld added skip-release Auto: Preserve the current version when merged and removed release Auto: Create a `latest` release when merged labels Nov 17, 2023
@ghengeveld ghengeveld added this pull request to the merge queue Nov 17, 2023
Merged via the queue into main with commit c7172a9 Nov 17, 2023
@ghengeveld ghengeveld deleted the redact-fatal-error branch November 17, 2023 14:30
@ghengeveld
Copy link
Member Author

🚀 PR was released in v9.1.0 🚀

@ghengeveld ghengeveld added the released Verdict: This issue/pull request has been released label Nov 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
patch Auto: Increment the patch version when merged released Verdict: This issue/pull request has been released skip-release Auto: Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants