Skip to content
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

fixed issue with wesocket handshake and authz filter #1091

Merged
merged 2 commits into from
Jan 11, 2019

Conversation

gsagula
Copy link
Contributor

@gsagula gsagula commented Jan 9, 2019

Description:
This PR updates Ambassador with a new Envoy image that fixes #1026. The issue was in Authorization filter with send request data was enabled. The previous implementation relied on the headers end of stream signal to start the asynchronous authorization request. However when sending request data was enabled and end of the stream was true, the authorization call was supposed to be invoked during data decoding which, in the case of a WebSocket handshake for example, never happens. The issue was fixed by inspecting the request before initiating the authorization call, which could happen during header decoding or data decoding, depending on the request method and the send request data configuration.

Signed-off-by: Gabriel [email protected]

@gsagula gsagula requested a review from kflynn January 9, 2019 17:51
@gsagula
Copy link
Contributor Author

gsagula commented Jan 11, 2019

@kflynn Feel free to take a look. Thanks!

@kflynn kflynn merged commit e00913b into release/0.50.0 Jan 11, 2019
@kflynn kflynn deleted the websocket_fix branch January 11, 2019 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants