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
Data scrubbing should filter sensitive headers such as Set-Cookie #1501
We're trying to use the request property for all the merged headers (request, response), but since there's this limitation plus a few other ones, I will reconsider that.
I'll leave that up to you if you still wanna run scrubbing or not, there's also the inconsistency of Cookie being removed instead of filtered.
We're trying to use the request property for all the merged headers (request, response), but since there's this limitation plus a few other ones, I will reconsider that.
I would definitely not do that. Which RFC are we talking about?
@untitaker I'm going to write an RFC that adds Event.response or Event.contexts.response, data structure similar to event.request but with additional fields such as status_code, etc...
Data scrubbing would need to give a pass in the headers field, etc.
@marandaneto sounds good. there is potential for a lot of pii there so i think we should think about designing new default scrubbing rules in the same vein.
@marandaneto sounds good. there is potential for a lot of pii there so i think we should think about designing new default scrubbing rules in the same vein.
Closing in favor of getsentry/rfcs#22 Request #headers[Cookie] is removed from the list because it's set to the high-level field cookies if found. Set-Cookie isn't scrubbed because it's a response header and it should not be set in the first place.
Response headers go to the Response interface -> getsentry/rfcs#22
Activity
untitaker commentedon Sep 27, 2022
the request interface of an event is for http request headers, set-cookie is a response header. generally we are filtering header names iirc
marandaneto commentedon Sep 28, 2022
We're trying to use the
requestproperty for all the merged headers (request, response), but since there's this limitation plus a few other ones, I will reconsider that.I'll leave that up to you if you still wanna run scrubbing or not, there's also the inconsistency of
Cookiebeing removed instead of filtered.jjbayer commentedon Sep 29, 2022
I suggest we put this hold until we've completed the RFC on where to put response data in the event payload.
untitaker commentedon Sep 29, 2022
I would definitely not do that. Which RFC are we talking about?
marandaneto commentedon Sep 29, 2022
@untitaker I'm going to write an RFC that adds
Event.responseorEvent.contexts.response, data structure similar toevent.requestbut with additional fields such asstatus_code, etc...Data scrubbing would need to give a pass in the
headersfield, etc.untitaker commentedon Sep 29, 2022
@marandaneto sounds good. there is potential for a lot of pii there so i think we should think about designing new default scrubbing rules in the same vein.
marandaneto commentedon Oct 3, 2022
getsentry/rfcs#22
marandaneto commentedon Oct 7, 2022
Closing in favor of getsentry/rfcs#22
Request #headers[Cookie]is removed from the list because it's set to the high-level fieldcookiesif found.Set-Cookieisn't scrubbed because it's a response header and it should not be set in the first place.Response headers go to the Response interface -> getsentry/rfcs#22