Can we compile the policy bundle into wasm at the OPA server end #362
Unanswered
dushyant7917
asked this question in
Wasm
Replies: 1 comment 1 reply
-
Hey there. That's certainly an interesting idea, and it would be possible to do with OPA's means. But it has never come up before that someone wanted to do that (to my knowledge). You could file an issue, as an enhancement request, I suppose. That said, what's the rationale behind this? Also, I think it should be possible to create some sort of JIT proxy that downloads rego bundles, compiles them to wasm bundles, and hands out the wasm bundles. 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If OPA server uses poll model, it fetches the policy bundles from a remote server. If the policy bundle doesn't contain the .wasm file the server compiles the policy at server end and uses rego. But if the policy bundle contains .wasm file the OPA server doesn't need to compile the policy as .wasm file is already a compiled file and it uses that to make the decision.
Is there a way of creating .wasm at the OPA server end after the policy bundle has been fetched from the remote server as usual?
Beta Was this translation helpful? Give feedback.
All reactions