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

(feat) add audit logging plugin #892

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

wrmedford
Copy link

This creates a method for audit logging with scrubbing. This is useful for highly controlled environments where any human interaction with a database needs to be logged for potential review.

Example config:

[pools.mypool.plugins.query_sanitizer]                                                                          
 enabled = true                                                                                                  
 patterns = [                                                                                                    
   "\\b\\d{4}[- ]?\\d{4}[- ]?\\d{4}[- ]?\\d{4}\\b", # Credit card numbers
   "^(?!666|000|9\\d{2})\\d{3}-(?!00)\\d{2}-(?!0{4})\\d{4}$", # Social Security Numbers
   "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b" # Email addresses                                     
 ] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant