-
Notifications
You must be signed in to change notification settings - Fork 7
when expression in unknown, connection hangs #139
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
Comments
That's sort of an expected behavior tho... what would you rather see? We (currently) have no way of reporting this back up to the user (or policy author). |
well, certainly, it should not panic and block the request. Maybe return 500 Internal Server Error. Maybe, if it's in a predicate, evaluate to Too many Maybe's, I known. Wasm module can only evaluate at request time. But it is not downstream client's fault if the expression is incorrect. It is policy owner's fault. My take? |
What's the plan for this issue? |
This has been addressed as part of #169. This currently follows the existing failure mode and returns an internal server error 500 in the case of failure. Perhaps we should look to provide different error codes, or provide a means to configure different error codes as part of the larger error configuration discussion. |
When expression is something like:
The wasm panics. Envoy's logs show
And the curl triggering the request hangs and never returns.
The text was updated successfully, but these errors were encountered: