You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set custom response return codes in AuthPolicy, I'm not sure why, but it can't send the response back now. Curl shows Unsupported HTTP/1 subversion in response as there is a wrong HTTP protocol version used. httpcore.RemoteProtocolError: illegal status line: bytearray(b'HTTP/1.1 0 Unknown') this is from the python library.
Seems like the issue remains only when specifying code that doesn't have any purpose by the standard (e.g. code 431 works, but 430 does not)
What is your expected behavior? Should the user be allowed to send custom status codes that out of spec as a response? Or is the issue we allow a user to define status codes that are out of spec?
What is your expected behavior? Should the user be allowed to send custom status codes that out of spec as a response? Or is the issue we allow a user to define status codes that are out of spec?
I expect it to return 333 and 444 instead of the error. I'm not sure what range should be there. I'd limit the values you can put there so it won't provoke unexpected behavior if you leave it as it is implemented now. But I like the option to define any code for the response better (from 100 to 600)
I know it worked before, and now it is an unexpected change. So I guess it became a bug
I was re-reading the spec and 2 things come to mind:
Envoy specify a closed set of supported HTTP codes and behaviour is not clear for codes described as "Unasigned". Authorino narrows the list even further by accepting only code within the 300-599 range.
There's now another layer in between Authorino and the setting of the response code, the wasm-shim. Somebody should look at that end too.
When I set custom response return codes in AuthPolicy, I'm not sure why, but it can't send the response back now. Curl shows
Unsupported HTTP/1 subversion in response
as there is a wrong HTTP protocol version used.httpcore.RemoteProtocolError: illegal status line: bytearray(b'HTTP/1.1 0 Unknown')
this is from the python library.Seems like the issue remains only when specifying code that doesn't have any purpose by the standard (e.g. code 431 works, but 430 does not)
AuthPolicy:
Gateway
HTTPRoute
The text was updated successfully, but these errors were encountered: