Comments (3)
Extra info: since my authorizer is looking at the client TLS principal, it has to happen in proxy_on_downstream_data
handler now since the proxy_on_new_connection
one fires when the TCP connection is made before the TLS handshake (which makes sense as you may want to intercept the handshake too). Both of these handlers are limited to only returning Continue
or Pause/StopIterarion
currently though so it would seem there is no option to RST the connection from a filter currently?
from spec.
I am also trying to understand how to read this. I see proxy_on_http_request_body
returns i32 (proxy_action_t) next_action
.
I suspect the actions are the enumerations defined in https://github.com/envoyproxy/envoy/blob/master/include/envoy/http/filter.h . Including the enumerations in the spec would help.
I suspect functions must abide by the same contract as Envoy extensions, e.g. the rules mentioned in https://www.envoyproxy.io/docs/envoy/latest/faq/extensions/contract.html#is-there-a-contract-my-http-filter-must-adhere-to . This is also not spelled out.
I have looked at native Envoy filter source code but never written one. The spec should incorporate, by value or by reference, sufficient information on enumerations and on state management.
from spec.
I believe this will be resolved by our project overhaul. Please refer to #39 (comment) for the context. Thanks!
from spec.
Related Issues (20)
- Add documentation about exported WASI functions
- Can the same sandbox instance be shared with the same extension (such as Filter) ? HOT 10
- Reading host's env variables from Wasm VMs HOT 8
- chore: support to fetch the remote ip address in WASM
- Contribute the host implementation of Golang HOT 4
- How can a module signal unexpected failure? HOT 2
- The spec should define semantics and values for proxy_result_t HOT 4
- Is it suitable to add a link to our wasm-nginx-module? HOT 4
- Is the num_headers argument in used?
- Are there any plans to use c# to write plug-ins? HOT 4
- Is the reading host env function workable with istio-proxy? HOT 2
- Support for writing for WASM for UDP
- Add the host function for removing shared data HOT 1
- Link to ATS proxy-wasm plugin
- Offline validation for config passed to proxy wasm HOT 5
- Inconsistency between the spec and implementation. HOT 2
- How to start a proxy-wasm-XXLang-sdk from scratch? HOT 1
- Properly document v0.2.1 ABI HOT 16
- where is the spec? HOT 1
- Create TextReadout metrics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spec.