You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a regular bundle I can contain there both data and policy.
I would like to request a similar option when creating a wasm file.
Sometimes the data is a json file that reading it, parsing it and set it by a loadData call is cumbersome and costly in terms of performance.
Also, it will be nice if the build -t wasmcommand will create a wasm directly rather a bundle file that you need to extract the wasm file from (Not the end of the work though but I think makes sense that this is like a "compilation" product).
The text was updated successfully, but these errors were encountered:
shkup
changed the title
Containing data inside the WASM
Containing data inside a WASMMar 28, 2024
That's a neat idea. But would setData() overwrite the data or error?
Also, this is a feature request for OPA, I think: it builds the wasm module, after all. It might even be doable without having to change the SDKs (like this one).
I'll transfer the issue 🔄
srenatus
transferred this issue from open-policy-agent/npm-opa-wasm
Jun 11, 2024
srenatus
changed the title
Containing data inside a WASM
opa build: Containing data inside a Wasm file
Jun 11, 2024
Also, it will be nice if the build -t wasmcommand will create a wasm directly rather a bundle file that you need to extract the wasm file from (Not the end of the work though but I think makes sense that this is like a "compilation" product).
Agreed, same for -t plan. If we can avoid users having to repeat extra steps in these flows, we should.
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue.
When I create a regular bundle I can contain there both data and policy.
I would like to request a similar option when creating a
wasm
file.Sometimes the data is a
json
file that reading it, parsing it and set it by aloadData
call is cumbersome and costly in terms of performance.Also, it will be nice if the
build -t wasm
command will create a wasm directly rather a bundle file that you need to extract thewasm
file from (Not the end of the work though but I think makes sense that this is like a "compilation" product).The text was updated successfully, but these errors were encountered: