-
Notifications
You must be signed in to change notification settings - Fork 1.2k
OAuth 2 proxy redirects POST request which have // in path #179
Comments
@pawanrawal hmm... This certainly sounds like path normalization, but i'm not sure where that would be happening. Can you share some logs that might show this happening? |
I'm also experiencing this issue. Somehow double slashes causes redirects instead of just proxying to upstream BTW found this that might be related https://groups.google.com/forum/#!topic/golang-nuts/zWPOOJjCgNQ |
This is a problem. The proxy should not "normalize" urls. The POST request gets 301 redirected and then a GET request is issued with no payload. This breaks Grafana and potentially other apps where there is "improper" urls generated with double slashes. |
The good news is, Grafana has fixed this problem for the next release. |
This affects anyone using Oauth2_proxy in front of Mesos/Marathon also.. :( |
RabbitMQ Management plugin is also affected :( :( |
I have OAuth 2 proxy which has Grafana as an upstream.
Grafana web makes a POST call to a url like this
localhost:4180/api/datasources/proxy/2//_msearch?search_type=count
. Since the path has a//
before_msearch
, oauth2_proxy immediately returns a 301 and sends a GET request to the same url which fails my request. Any reason why this might be happening ?The text was updated successfully, but these errors were encountered: