-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: adding support for data uri sanitisation #31721
feat: adding support for data uri sanitisation #31721
Conversation
@rarkins should we go ahead with this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These Regex seem too aggressive and will match some unintentional/irrelevant data messages too
@rarkins Good point, but do you have any examples that you can think of, which might match to the new regex but should not ideally? |
No, because there are infinite examples possible, so you should provide some examples of where data uri's need redacting and we make the Regex tighter. For example should it occur only at the start of a field? |
Here are some data URI examples which I aimed to redact with this change:
Also, upon a quick check with an AI assistant, the regex doesn't seem to match unnecessary strings apart from URLs or data URI like fields. |
Yes, it can. It might be safer to redact the whole string after WDYT? |
Please provide a full log example from today (you can redact parts of it yourself). Eg where does this appear today? |
Great, so can we start with the case where we match against |
@rarkins I'm not sure If I got you this time, could you please elaborate on the suggestion? |
@rarkins just following up on above message, |
Yes, the regex should be strict to match only where the log content starts and ends with a data URI |
we can even more tighten the regex to also require the content-type after
|
It's better if you revert your changes to |
@rarkins I've reverted the change to |
Co-authored-by: Michael Kriese <[email protected]>
Co-authored-by: Michael Kriese <[email protected]>
Co-authored-by: Michael Kriese <[email protected]>
Co-authored-by: Michael Kriese <[email protected]>
please run prettier to fix linter |
@viceice done! |
🎉 This PR is included in version 38.111.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
##### [`v38.111.0](https://github.com/renovatebot/renovate/releases/tag/38.111.0) ##### Features - adding support for data uri sanitisation ([#31721](renovatebot/renovate#31721)) ([dbd69e9](renovatebot/renovate@dbd69e9)) ##### Miscellaneous Chores - **deps:** update linters to v8.8.0 ([#31849](renovatebot/renovate#31849)) ([05accc8](renovatebot/renovate@05accc8))
##### [`v38.111.0](https://github.com/renovatebot/renovate/releases/tag/38.111.0) ##### Features - adding support for data uri sanitisation ([#31721](renovatebot/renovate#31721)) ([dbd69e9](renovatebot/renovate@dbd69e9)) ##### Miscellaneous Chores - **deps:** update linters to v8.8.0 ([#31849](renovatebot/renovate#31849)) ([05accc8](renovatebot/renovate@05accc8))
Changes
This PR aims to address this feature request #31719 where we can now sanitise possible data uris coming in the logs.
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: