Skip to content

Option to scrub ip addresses in forwarded logs #57

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

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

NBParis
Copy link

@NBParis NBParis commented Oct 4, 2018

IP addresses can be considered as sensitive data and we added an option to redact them.

@NBParis NBParis requested a review from a team October 4, 2018 15:04
#Scrub ip addresses if activated
if is_ipscrubbing:
try:
str_entry = re.sub('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}',"xxx.xxx.xxx.xx",str_entry)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you re.compile this regex like we do with cloudtrail?

Copy link
Author

Choose a reason for hiding this comment

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

@tmichelet done

@NBParis NBParis merged commit c11b12a into master Oct 8, 2018
@NBParis NBParis deleted the nils/lambda-forwarder-scrubbing branch October 8, 2018 15:17
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.

2 participants