Conversation
3ba0c9c to
b8ba15b
Compare
b8ba15b to
ed5b169
Compare
|
Would be awesome to be able to provide custom implementation for actual HTTP client when initializing the policy evaluator or probably runtime. As WASM OPA backend does not support custom built-ins unlike Golang interpreted version, custom HTTP client could be used to call back into the host application from the policy to perform some actions which are not convenient to express via OPA (do some DB request, or actually perform HTTP request or a set of HTTP requests which are a single logical operation from policy perspective). |
|
@Lupus I think what you want to do is already possible with this PR: you can provide your own implementation of It can be the use of another HTTP lib than |
This is largely a derived work on top of [matrix-org/rust-opa-wasm!218](matrix-org#218) which was authored by [@MatMaul](https://github.com/MatMaul).
This is largely a derived work on top of [matrix-org/rust-opa-wasm!218](matrix-org#218) which was authored by [@MatMaul](https://github.com/MatMaul). Signed-off-by: Konstantin A. Olkhovskiy <lupus@oxnull.net>
This is largely a derived work on top of [matrix-org/rust-opa-wasm!218](matrix-org#218) which was authored by [@MatMaul](https://github.com/MatMaul). Signed-off-by: Konstantin A. Olkhovskiy <lupus@oxnull.net>
This is largely a derived work on top of [matrix-org/rust-opa-wasm!218](matrix-org#218) which was authored by [@MatMaul](https://github.com/MatMaul). Signed-off-by: Konstantin A. Olkhovskiy <lupus@oxnull.net>
Spec
Implemented:
The rest of the parameters are about TLS and cache behavior control and are not implemented.
serde_yamlhas been replaced byserde_ymlsince the former is unmaintained.