-
Notifications
You must be signed in to change notification settings - Fork 113
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
Variable validation errors leak entire variable in statusMessage telemetry. #1182
Comments
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. |
Hey @Sam-tesouro we've discussed this internally. In general, our idea is that we can run the Router in "default" mode with a less verbose error message for compliance reasons, but still have an option to run the router in "dev mode" which is more verbose. If you check the configuration (https://cosmo-docs.wundergraph.com/router/configuration), we've already got DEV_MODE, so we could apply it in this case. Let me know what you think? |
Good day @jensneuse, that sounds ideal to me. I will go ahead and work on an implementation for your review and touch base as necessary. Thank you! |
sounds fantastic, looking forward to it! |
…tor error messages (#934) per discussion at wundergraph/cosmo#1182 --------- Co-authored-by: Sergiy 🇺🇦 <[email protected]> Co-authored-by: spetrunin <[email protected]>
Component(s)
router, studio, otelcollector
Is your feature request related to a problem? Please describe.
When a request to a federated Supergraph doesn't match spec and an $variable is used for input the entire $variable is leaked on the statusMessage via telemetry, potentially leaking sensitive information.
https://github.com/wundergraph/graphql-go-tools/blob/master/v2/pkg/variablesvalidation/variablesvalidation.go
The response will also contain sensitive information if the $variable has sensitive information included.
Describe the solution you'd like
It would be amazing to have a config item where I could globally enable/disable said $variable being included in statusMessage on telemetry and/or the Error message on the response.
Even better would be some way to define types containing PII that would then be automatically masked, either via router config or schema annotation, whilst still providing the additional benefit of returning the input $variable context.
Describe alternatives you've considered
It's possible to resolve the tracing leaks with an OTEL collector filter processor, but that unfortunately doesn't resolve the response also potentially including sensitive data.
Additional context
variableContent on the message leaks.
Really appreciate the work y'all are doing!
The text was updated successfully, but these errors were encountered: