Add data and api_target fields to ResponseContext and scrub graphql bodies.#2141
Merged
Conversation
Member
Only if we allow SDKs to send multiple formats that have to be normalized into one. When in doubt, I would say no.
This would be the function to hook into. It already takes care of normalizing cookies: relay/relay-general/src/store/normalize/contexts.rs Lines 180 to 200 in 5d764fc
Default scrubbing runs automatically because of
Use cargo install cargo-insta
cargo insta test
cargo insta review |
marandaneto
commented
May 31, 2023
marandaneto
commented
May 31, 2023
marandaneto
commented
May 31, 2023
marandaneto
commented
May 31, 2023
marandaneto
commented
May 31, 2023
marandaneto
commented
May 31, 2023
jjbayer
reviewed
May 31, 2023
Contributor
Author
|
@jjbayer this PR should be good to go, I've updated the PR description. |
marandaneto
marked this pull request as ready for review
June 1, 2023 08:48
data and api_target fields to Response Context and scrub graphql bodies
data and api_target fields to Response Context and scrub graphql bodiesdata and api_target fields to ResponseContext and scrub graphql bodies.
jjbayer
requested changes
Jun 1, 2023
jjbayer
approved these changes
Jun 1, 2023
olksdr
reviewed
Jun 2, 2023
…into chore/add-response-data
marandaneto
enabled auto-merge (squash)
June 6, 2023 12:22
7 tasks
malwilley
added a commit
to getsentry/sentry
that referenced
this pull request
Jun 8, 2023
`api_target` was added in getsentry/relay#2141, this ensures that it gets picked up by the event serializer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR for https://github.com/getsentry/rfcs/blob/choregraphql-errors/text/0087-graphql-errors.md
Request#api_targetwhich is the API target used for advanced data scrubbing, a marker of the type of the request.Response#datais similar toRequest#data.Response#inferred_content_typeis similar toRequest#inferred_content_type.process_eventfor the PII processor scrubbing variables from a GraphQL error based on theRequest#api_target.