-
Notifications
You must be signed in to change notification settings - Fork 17
Applying automatic sanitization to uploaded logs #326
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @Jany26, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the data privacy measures by introducing an automatic sanitization system for uploaded log files. It refines the existing sanitization logic by centralizing regular expression definitions and implementing a dual-strategy approach to handle both ASCII-escaped and direct Unicode characters in sensitive fields. The new sanitization pipeline is seamlessly integrated into the backend's data ingestion process, ensuring that all data is scrubbed of personal information before being stored, thereby improving compliance and data handling practices. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces automatic sanitization for uploaded logs, a valuable enhancement for user privacy. The refactoring to centralize regular expressions and create a sanitization pipeline is well-executed. My review includes suggestions to correct a new Unicode-aware regex, improve code clarity by addressing a leftover TODO and inconsistent parameter naming, and enhance maintainability by refactoring duplicated logic. Overall, this is a strong and important contribution.
e1a22df to
6b3544c
Compare
bbd0148 to
4808ebd
Compare
Signed-off-by: Jan Matufka <[email protected]>
4808ebd to
21bc666
Compare
This change required making a separate version of regular expressions that look for fullnames of people - one version uses escaped sequences for unicode characters, the other uses
\p{Lu}and\p{L}(special unicode letter regexes found in 3rd partyregexmodule) and applies them directly to the strings themselves beforejson.dumps()is called.