-
Notifications
You must be signed in to change notification settings - Fork 105
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
When forwarding all headers , websocket subscriptions break #1149
Comments
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. |
Please do the following:
After you have completed these steps, please do let us know whether you were successful or the problem persists. Thank you! The WunderGraph Team |
I just read that you're editing |
I originally saw the issue when testing on our own subgraphs. To simplify the problem I reverted back to using the subgraphs provided by the demo. It is the same either way - when I forward all headers subscriptions via websocket do not work. I didn't see this behavior documented in the router header config section so I wanted to bring it here to see if I was missing something, or it was expected. I have tried multiple versions of the router, and all have the same behavior. If I forward all headers then websocket subscriptions do not work. |
Hi @warrenisarobot, thank you! We've tracked the issue and will provide a resolution soon. We highly discourage forwarding all headers. This will destroy the deduplication cache and is a security risk as well. If possible, please try to forward only whitelisted headers. |
Hi everyone. The issue has been addressed in #1293. Thanks! |
Component(s)
router
Component version
0.106.0
wgc version
0.63.1
controlplane version
0.106.0
router version
0.106.0
What happened?
Edit the router config to forward all headers.
Use the cosmo demo with
make full-demo-up
Websocket subscriptions return an "Internal server error"
Environment information
Environment
OS: (e.g., "MacOS Sonoma 14.6")
Package Manager: npm
Router configuration
Router execution config
No response
Log output
No response
Additional context
When forwarding specific headers like "Authorization" this works correctly, but when using a wildcard it fails. In this specific setup there is an ingress controller ahead that is passing along only relevant headers which are then passed along to the subgraphs.
The text was updated successfully, but these errors were encountered: