cloudstack/api
Abhishek Kumar 03a4b9f4fd
server,utils: improve js interpretation functionality
Make JS interpretation functionalities configurable via a hidden config
- js.interpretation.enabled
Default value is false, making such functionalities disabled, ie, new
heuristic rules cannot be added or updated.

For JsInterpretor, use --no-java --no-syntax-extensions args and a deny-all ClassFilter.
Replace string-spliced vars with ENGINE_SCOPE Bindings, use a fresh ScriptContext per run, and compile before eval.
Use a named daemon worker with hard timeouts and capture stdout.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-10-16 09:49:36 +02:00
..
src server,utils: improve js interpretation functionality 2025-10-16 09:49:36 +02:00
test/integration/api Enable flake8 rule W292 No newline at end of file (#6274) 2022-06-30 12:08:27 +05:30
pom.xml Updating pom.xml version numbers for release 4.19.4.0-SNAPSHOT 2025-06-06 18:00:09 +05:30