You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
If the user ip address contains an invalid IP address, it will get leaked in the redaction error message #1740
#[test]fn test_ip_stripped(){letmut data = Event::from_value(
serde_json::json!({"user":{"username":"73.133.27.120",// should be stripped despite not being "known ip field""ip_address":"is this an ip address? 73.133.27.120",// <--------"data": sensitive_vars()},"breadcrumbs":{"values":[{"message":"73.133.27.120","data":{"test_data":"73.133.27.120"// test deep wildcard stripping}},],},"sdk":{"client_ip":"should also be stripped"}}).into(),);
this turns into:
{
"user": {
"ip_address": {
"": {
"err": [
[
"invalid_data",
{
"reason": "expected an ip address"
}
]
],
"val": "is this an ip address? 73.133.27.120"// <--------
}
},
"username": {
"": {
"rem": [
[
"@ip:replace",
"s",
0,
4
]
],
"len": 13
}
}
}
}
notice the ip address is leaked in the error message
Activity
jan-auer commentedon Jan 23, 2023
Can you please provide a repro for this case?
jjbayer commentedon Jan 30, 2023
@TBS1996 please add a second repro case with an actual IP address.
TBS1996 commentedon Feb 3, 2023
this turns into:
{ "user": { "ip_address": { "": { "err": [ [ "invalid_data", { "reason": "expected an ip address" } ] ], "val": "is this an ip address? 73.133.27.120" // <-------- } }, "username": { "": { "rem": [ [ "@ip:replace", "s", 0, 4 ] ], "len": 13 } } } }notice the ip address is leaked in the error message
olksdr commentedon Feb 13, 2023
Ideas:
valin meta for the scrubbed fieldclient_ipfieldfeat(general): Fix leaked ip address (#1892)