Skip to content

API Design ​

Endpoints ​

MethodPathAuthServiceFeature
—/v1/objects—safekeys/control-planecontrol-plane-api
—/v1/tokens—safekeys/control-planecontrol-plane-api
—/v1/tokens/—safekeys/control-planecontrol-plane-api
—/v1/audit—safekeys/control-planecontrol-plane-api
—/v1/policies—safekeys/control-planecontrol-plane-api
—/healthz—safekeys/control-planecontrol-plane-api

Authentication ​

Scheme IDTypeDescription
control-plane-api-keyapi-keyClient credential used by the sidecar and CLI to authenticate to the control plane in the MVP.
sidecar-mtlsoauth2Mutual TLS device identity between sidecar and control plane, introduced alongside hardware binding.
local-sidecar-socketnoneLocal authenticated channel (Unix domain socket) between an agent/CLI and the sidecar on the same host.

Authorization ​

Control Plane API ​

Two client classes in the MVP. Human operators hold admin credentials (create/revoke policy, read audit). Sidecars hold narrow credentials scoped to their environment and may only request unwrap and report resolves.

RoleLevelHelper
operatoradmin—
sidecarresolve-only—
auditorread-only—

Service Security Configuration ​

ServiceAuth MethodSecrets Reference
Safekeys CLILocal sidecar socket plus control-plane API keydocs/help/security-model.md
Control Plane DatabasePostgres role per component; sidecar holds no direct DB accessdocs/help/security-model.md
Control Plane APIAPI key (MVP), mutual TLS for sidecars (later)docs/help/control-plane-auth.md
Safekeys MCP ServerLocal sidecar socket; the MCP client is trusted as an agent hostdocs/help/security-model.md
Python SDKLocal sidecar socketdocs/help/security-model.md
Safekeys.ai Sitenone (public marketing site)—
Sidecar / ResolverLocal authenticated channel; control-plane API key; device identity via mTLS laterdocs/help/security-model.md
TypeScript SDKLocal sidecar socketdocs/help/security-model.md