sop

Scalable Objects Persistence


Project maintained by SharedCode Hosted on GitHub Pages — Theme by mattgraham

Running Modes & Security

The SOP Data Manager is designed to be flexible, serving as both a lightweight internal tool and a secure public API.

1. Internal / WebUI Mode (Default)

This is the default mode, optimized for running inside a secure network (e.g., local development, VPN, or behind a corporate firewall).

2. Public / Edge Mode (Secure)

Use this mode when deploying the server to a public environment (e.g., Kubernetes Ingress, Edge locations) where it is exposed to the internet.

Configuration Flags

| 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. |

Example: Running in Secure Mode

export SOP_ROOT_PASSWORD="my-secret-token"
export SOP_ENABLE_REST_AUTH="true"
./sop_server --port 8080

Example: Calling the Secure API

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"}}'