While these IP addresses are meant to be scrubbed, the regression in Relay prevented this.
For SaaS customers, the patch was deployed on Dec 11, 2024 and no further action is required. Affected SaaS customers have already been contacted by email.
Self-Hosted users can also run the following script on local clickhouse instances to scrub any unintentionally stored IP addresses.
Please note, the script will have a significant impact on performance and may degrade read performance during execution.
ALTER TABLE spans_local
UPDATE
`sentry_tags.value` = arrayMap(
(k, v) -> if(
k = 'user.ip',
'scrubbed',
if(
k = 'user' AND startsWith(v, 'ip:'),
concat(
'ip:',
if(
isIPv4String(substring(v, 4)) OR isIPv6String(substring(v, 4)),
'scrubbed',
substring(v, 4)
)
),
v
)
),
`sentry_tags.key`,
`sentry_tags.value`
),
`user` = if(
startsWith(user, 'ip:'),
concat(
'ip:',
if(
isIPv4String(substring(user, 4)) OR isIPv6String(substring(user, 4)),
'scrubbed',
substring(user, 4)
)
),
user
)
WHERE has(`sentry_tags.key`, 'user.ip') OR has(`sentry_tags.key`, 'user')
No other workarounds are available.
Impact
End user IP addresses were unintentionally stored in spans even when the Prevent Storage of IP Address was explicitly enabled by customers at the project or organization level. The issue was introduced in PR #3122 on Feb 19, 2024, and was released with Relay version 24.3.0 on March 15, 2024
Customers are impacted under the following conditions:
sendDefaultPII
orsend_default_pii
was set to true (default:false
).{{ auto }}
.While these IP addresses are meant to be scrubbed, the regression in Relay prevented this.
Patches
The patch, PR #4364, was merged on Dec 11, 2024.
For SaaS customers, the patch was deployed on Dec 11, 2024 and no further action is required. Affected SaaS customers have already been contacted by email.
SaaS customers running their own Relays with an affected version (24.3.0 to 24.11.1) should upgrade and deploy Relay 24.11.2.
Self-Hosted users who are running 24.2.0 or older versions are not affected. Self-Hosted users who are running an affected version (24.3.0 to 24.11.1) should upgrade to 24.11.2.
Self-Hosted users can also run the following script on local clickhouse instances to scrub any unintentionally stored IP addresses.
Please note, the script will have a significant impact on performance and may degrade read performance during execution.
Workarounds
No other workarounds are available.
References