Configuring Script sandbox property
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Xanadu
- Now Platform Security
Enable the script sandbox property (glide.script.use.sandbox) to run client-generated scripts inside a sandbox that has restricted rights.
There are two cases within the system that allow the client to send scripts to the server for evaluation.
- Filters or queries: It’s legal to send a filter to the server such as:
assigned_to=javascript:getMyGroups()
. - System API: The API call AJAXEvaluate allows the client to run arbitrary scripts on the server and receive a response.
- Only those business rules marked Client callable are available within the sandbox.
- Only script includes marked Sandbox enabled are available within the sandbox.
- Certain API calls (largely but not entirely limited to those dealing with direct DB access) aren’t allowed.
- Data can’t be inserted, updated, or deleted from within the sandbox. Any calls to current.update(), for example, are ignored.
Property | Description |
---|---|
glide.script.use.sandbox | Run client-generated scripts (AJAXEvaluate and query conditions) inside a reduced-rights "sandbox." If true, only those business rules with the Client callable option selected and script includes with the Sandbox enabled option selected are available and certain back-end API calls are disallowed.
|
Restricted methods with sandbox enabled
These methods aren’t supported in client-generated scripts when script sandboxing is enabled.
If you run the system without script sandboxing enabled, then none of these restrictions apply.