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

Fetch upstream properties (IP,port) WASM C++ #18198

Closed
M4tteoP opened this issue Sep 21, 2021 · 3 comments
Closed

Fetch upstream properties (IP,port) WASM C++ #18198

M4tteoP opened this issue Sep 21, 2021 · 3 comments
Labels
area/wasm question Questions that are neither investigations, bugs, nor enhancements

Comments

@M4tteoP
Copy link

M4tteoP commented Sep 21, 2021

Hi all, I need to find out as much information as possible (IP, port, request uri) about the client that sends the request (I'm still actively working on implementing a wasm WAF). I found this issue regarding RUST SDK that shows the upstream properties, but I can't find out where these properties are with the C++ SDK.
Thanks a lot for any help

@M4tteoP M4tteoP added the triage Issue requires triage label Sep 21, 2021
@mathetake mathetake added area/wasm and removed triage Issue requires triage labels Sep 22, 2021
@mathetake
Copy link
Member

@M4tteoP You can use getValue API to retrieve properties in C++ SDK. Here's an example usage in Istio: https://github.com/istio/proxy/blob/master/extensions/common/context.cc#L142-L145

@mathetake mathetake added the question Questions that are neither investigations, bugs, nor enhancements label Sep 22, 2021
@mathetake
Copy link
Member

and JFYI you can ask Wasm questions like this in #envoy-wasm channel in Envoy slack.

@M4tteoP
Copy link
Author

M4tteoP commented Sep 22, 2021

Thanks a lot @mathetake. I joined #envoy-wasm channel, see you there!

@M4tteoP M4tteoP closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/wasm question Questions that are neither investigations, bugs, nor enhancements
Projects
None yet
Development

No branches or pull requests

2 participants