-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support for WebSockets #62
Comments
I noticed that go-1.12 will add WebSocket support to httputil.ReverseProxy (which oauth2_proxy uses) |
Thanks for the response @ploxiln. I have built the oauth2_proxy image using |
@andresmgot Do you have time to try merging the changes from bitly/oauth2_proxy#554 into a branch and testing this with your setup? |
Hi, I tried using bitly/oauth2_proxy#554 and got oauth2-proxy websockets working with a basic nodejs websocket connection successfully. Works great. But when I try with Jupyterlab (Tornado Server) I get "Error during WebSocket handshake: Unexpected response code: 500". Any ideas why tornado server in jupyter would have issue? |
this feature was completed (a bit differently I think) and merged in #92 |
Thank you all. Yes, this should be fixed now. I will reopen the issue if I find any other problem with that. |
I am not sure wether this is fixed or not. i was trying to proxy octant using latest 6.1.1 version oauth_proxy, and i ended up with the same error: create websocket client {"err": "websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"} Is it really solved, or am i missing some config
|
I am using oauth2_proxy and one of the connections open a WebSocket but I am not sure if that's supported. So far I have tried to disable the proxy for the specific URL that opens the websocket (
-skip-auth-regex=/api/kube/.*
) but with that I receive an error 403.Expected Behavior
The server should receive the header
Sec-WebSocket-Protocol
with the bearer token and returns a101
Connection upgrade
response:Current Behavior
With the set of flags I am using I am not receiving any response, the connection just hangs. These are the flags I am using:
Then if I skip the auth for the URL of the websoket I receive a 403:
Possible Solution
I see that there are some PRs in the previous project to add support for WebSockets, like:
bitly/oauth2_proxy#554
They didn't got merged though.
Steps to Reproduce (for bugs)
Your Environment
I am using Keycloak as Identity Provider in a Kubernetes cluster (minikube).
Thanks in advance!
The text was updated successfully, but these errors were encountered: