-
Notifications
You must be signed in to change notification settings - Fork 15
Implements http.send
builtin
#218
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
base: main
Are you sure you want to change the base?
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Spec
Implemented:
The rest of the parameters are about TLS and cache behavior control and are not implemented.
serde_yaml
has been replaced byserde_yml
since the former is unmaintained.