Scalable Objects Persistence
The SOP Data Manager is designed to be flexible, serving as both a lightweight internal tool and a secure public API.
This is the default mode, optimized for running inside a secure network (e.g., local development, VPN, or behind a corporate firewall).
EnableRestAuth = false (Default)/api/scripts/execute endpoint is open and does not require authentication.Use this mode when deploying the server to a public environment (e.g., Kubernetes Ingress, Edge locations) where it is exposed to the internet.
SOP_ENABLE_REST_AUTH=true (or use flag --enable-rest-auth).SOP_ROOT_PASSWORD to a strong secret./api/scripts/execute endpoint requires an Authorization: Bearer <SOP_ROOT_PASSWORD> header.| Flag | Env Variable | Description |
|——|————–|————-|
| --enable-rest-auth | SOP_ENABLE_REST_AUTH | Set to true to enforce Bearer token auth on REST endpoints. |
| (Config File) | SOP_ROOT_PASSWORD | The password used for Admin operations and REST API Bearer token. |
export SOP_ROOT_PASSWORD="my-secret-token"
export SOP_ENABLE_REST_AUTH="true"
./sop_server --port 8080
curl -X POST http://localhost:8080/api/scripts/execute \
-H "Authorization: Bearer my-secret-token" \
-H "Content-Type: application/json" \
-d '{"name": "my_script", "args": {"param": "value"}}'