proxy-wasm-cpp-host icon indicating copy to clipboard operation
proxy-wasm-cpp-host copied to clipboard

getProperty/setProperty: how to determine whether 'property' is proxy-independent or not?

Open antJack opened this issue 5 years ago • 4 comments

image

According to the comment, some properties likes "plugin_root_id" might be proxy-independent and some may not

but the function signature of getProperty and setProperty does not provide enough information to determine that

antJack avatar Nov 06 '20 08:11 antJack

Properties are mostly undefined right now, but I'm going to be working on finishing the ABI doc over the next week or two.

Why do you ask, though? Are you working on another SDK or proxy implementation?

PiotrSikora avatar Nov 06 '20 11:11 PiotrSikora

Thanks for reply. I am working on the MOSN project, another proxy for service mesh written in Golang. We are also trying to support the proxy-wasm ABI on MOSN.

antJack avatar Nov 09 '20 02:11 antJack

Nice! In that case, you might want to wait until the updated ABI is finalized (see: https://github.com/proxy-wasm/spec/pull/1), since it's undergoing a heavy rewrite.

PiotrSikora avatar Nov 10 '20 20:11 PiotrSikora

Properties are intentionally open-ended since we don't want to bump ABI every time we need something extra. The current list should be up to date https://github.com/envoyproxy/envoy/pull/13971.

kyessenov avatar Nov 11 '20 02:11 kyessenov