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

Scrub more IP addresses #1693

Closed
jjbayer opened this issue Dec 13, 2022 · 0 comments
Closed

Scrub more IP addresses #1693

jjbayer opened this issue Dec 13, 2022 · 0 comments
Assignees

Comments

@jjbayer
Copy link
Member

jjbayer commented Dec 13, 2022

If the flag scrub_ip_addresses is enabled in legacy data scrubbing, we only scrub a handful of fields:

if datascrubbing_config.scrub_ip_addresses {
applications.insert(KNOWN_IP_FIELDS.clone(), vec!["@anything:remove".to_owned()]);
}

Should we instead (or in addition) apply the rule @ip:replace when this flag is enabled, such that any IP is caught?

"@ip:replace" => RuleSpec {
ty: RuleType::Ip,
redaction: Redaction::Replace(ReplaceRedaction {
text: "[ip]".into(),
}),
};

See also getsentry/sentry-docs#5916.

@TBS1996 TBS1996 self-assigned this Dec 28, 2022
TBS1996 added a commit that referenced this issue Jan 12, 2023
This change will scrub all fields containing an IP address, rather than
only scrubbing certain fields known to have them

referencing issue #1693

Co-authored-by: Oleksandr <1931331+olksdr@users.noreply.github.com>
Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
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

No branches or pull requests

3 participants