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
And the curl triggering the request hangs and never returns.
curl -v --resolve test.example.com:18000:127.0.0.1 "http://test.example.com:18000"
* Added test.example.com:18000:127.0.0.1 to DNS cache
* Hostname test.example.com was found in DNS cache
* Trying 127.0.0.1:18000...
* Connected to test.example.com (127.0.0.1) port 18000
> GET / HTTP/1.1
> Host: test.example.com:18000
> User-Agent: curl/8.5.0
> Accept: */*
>
The text was updated successfully, but these errors were encountered:
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).
Also, I don't think this should use the failureMode setting, as this isn't failure but a user error.
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 false. Maybe, if it's in a expression to generate a descriptor entry, just do not add the descriptor entry.
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.
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: