-
Authentication Token Protection:
- Authentication secret is supplied via environment variable
SAREMBOK_AUTH_TOKEN. - Token comparisons use constant-time HMAC comparison (
hmac.compare_digest). - Tokens are stored in browser
sessionStorage(never in source files, HTML, logs, or image layers).
- Authentication secret is supplied via environment variable
-
Container Security & Privileges:
no-new-privileges:trueenabled on containers.cap_drop: ALLdrops Linux capabilities.- Read-only root filesystem enabled (
read_only: truewith ephemeral/tmptmpfs). - Process runs under dedicated unprivileged user
sarembok(UID 10001).
-
Edge Proxy Isolation:
- Runtime port
9000is bound strictly to127.0.0.1or container network. - Caddy edge container acts as the sole public gateway for ports
80and443. - Security headers enforced (
X-Content-Type-Options,X-Frame-Options,Referrer-Policy).
- Runtime port
-
Resource Limits:
- Max connection limit (
SAREMBOK_MAX_CONNECTIONS: 100). - Max request size (
SAREMBOK_MAX_REQUEST_BYTES: 1MB). - Max RPC method length (
SAREMBOK_MAX_METHOD_LENGTH: 128 chars).
- Max connection limit (