Skip to content

New flag to scrub IP addresses#1161

Draft
maxgolov wants to merge 7 commits into
mainfrom
maxgolov/scrub_ip_by_default
Draft

New flag to scrub IP addresses#1161
maxgolov wants to merge 7 commits into
mainfrom
maxgolov/scrub_ip_by_default

Conversation

@maxgolov

@maxgolov maxgolov commented Jun 6, 2023

Copy link
Copy Markdown
Contributor

Implement IP address scrub.

Scrub IP addresses by default.
@maxgolov maxgolov marked this pull request as draft June 6, 2023 05:10
@lalitb

lalitb commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

MacOS CI tests failure can be ignored for now.

@lalitb

lalitb commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

@maxgolov Do you have plan to mark it for review, or else close if this is not valid ?

@maxgolov

Copy link
Copy Markdown
Contributor Author

@lalitb - we need it, but we identified an extra scenario that's not covered by the patch. I'll do another iteration on it.

maxgolov and others added 5 commits January 18, 2024 12:58
The initial change set RECORD_FLAGS_EVENTTAG_SCRUB_IP unconditionally for
every event, forcing IP scrubbing on all SDK consumers in direct-upload
mode -- a breaking change for apps that need client IP (e.g. geo-location).

Make scrubbing the default but opt-out: the decorator sets the SCRUB_IP
record flag unless CFG_BOOL_ENABLE_IP_SCRUBBING is explicitly set to false.
record.flags is forwarded on the cross-platform/direct-upload path, so this
redacts client IP at the collector without relying on ext.metadata privacy
tags.

- ILogConfiguration.hpp: add CFG_BOOL_ENABLE_IP_SCRUBBING config key
- EventPropertiesDecorator.hpp: gate SCRUB_IP flag behind the config
- EventPropertiesDecoratorTests.cpp: add default-on, opt-out, explicit-enable
  tests with a per-instance ConfigurableLogManager helper

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 self-assigned this Jun 10, 2026
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.

3 participants