OPA Wasm Compilation - Automatic Entrypoint Detection #448
Replies: 2 comments 3 replies
-
Hi there! I'm not sure how it would be able to do that 😅 Any rule or package is potentially an entrypoint, and while OPA maybe could guess the "main" entrypoint by... I don't know, count the number of dependencies to other rules or something like that, you're specifically saying that you have a bunch of them. Could you expand on why you need so many entrypoints? Can't you just have a single one that routes to the rules needed for evaluation? Dynamic policy composition is a nice pattern to work with for that purpose. |
Beta Was this translation helpful? Give feedback.
-
Would using |
Beta Was this translation helpful? Give feedback.
-
I'm working on a project that involves compiling a bunch of Rego policies into Wasm bundles. The thing is, I've got loads of policy files in nested directories and specifying the entrypoint for each one is a real headache.
Any chance there's a feature or trick that lets OPA auto-detect the entrypoints?
Beta Was this translation helpful? Give feedback.
All reactions