Skip to content

Business Architecture (TOGAF Phase B) ​

Auto-generated from USM features and system.usm.

Features by Service ​

safekeys/control-plane ​

FeatureSummaryStatusFlowsContracts
safekeys/audit-loggingEvery resolution is recorded — who, what scope, which jti, which host — withoutbuilt24
safekeys/control-plane-apiThe Control Plane API is the authority service: it allocates object ids, issuesbuilt34
safekeys/policy-engineThe policy engine decides which sidecar, principal, and process may resolve whicbuilt24
safekeys/token-revocationRevocation invalidates a capability token immediately, without waiting for its Tbuilt23
safekeys/capability-tokenThe capability token is the only secret-bearing artefact an agent reasons about.built24

safekeys/system ​

FeatureSummaryStatusFlowsContracts
safekeys/deployment-packagingReproducible, hardened packaging so Safekeys can run on a real host: container ibuilt56
safekeys/distributionName reservation and release pipeline for the 0.1.0 publish: npm under @smithgrabuilt35

safekeys/site ​

FeatureSummaryStatusFlowsContracts
safekeys/docs-hostingPublish the generated specification docs to Cloudflare Pages at docs.safekeys.aibuilt46

safekeys/sidecar ​

FeatureSummaryStatusFlowsContracts
safekeys/hardware-rootPhase 1 hardening moves the long-term key share out of ordinary RAM and into a hplanned34
safekeys/threshold-cryptoPhase 2 hardening splits key knowledge between the secure element and the authorplanned34
safekeys/secret-creationCreating a secret is the one flow that touches plaintext, and it deliberately bybuilt23
safekeys/secret-transportTransport is how a secret gets from where it was created to where it is used — abuilt23
safekeys/encrypted-folderA Safekeys folder is the transport unit: an ordinary directory (or object prefixbuilt23
safekeys/envelope-encryptionEnvelope encryption separates the key that protects a secret from the key that pbuilt24
safekeys/dev-key-custodyDevelopment-stack key custody: no key material the coding agent's OS user can rebuilt43
safekeys/output-controlOutput control for model-facing resolution: the sidecar redacts the resolved valbuilt46
safekeys/secret-injectionInjection is how a resolved secret reaches a consumer without passing through mobuilt43
safekeys/sidecar-resolutionToken resolution is the act that turns a capability token into a plaintext valuebuilt15

safekeys/mcp-server ​

FeatureSummaryStatusFlowsContracts
safekeys/integration-mcp-serverThe Safekeys MCP server exposes secret tooling to every MCP-capable agent runtimbuilt24

safekeys/python-sdk ​

FeatureSummaryStatusFlowsContracts
safekeys/integration-python-sdkThe Python Agent SDK is a token-only client for teams building agents, shippingbuilt24

safekeys/cli ​

FeatureSummaryStatusFlowsContracts
safekeys/exec-wrappersafekeys exec --token … -- <command> runs a command with secrets injected intobuilt13

User Flows ​

safekeys/audit-logging ​

  • Record a resolution attempt (4 steps) — The sidecar reports each attempt to the audit log, successful or denied.

  • Query the audit log (3 steps) — An operator or auditor reviews resolution history.

safekeys/control-plane-api ​

  • Allocate an object id and wrapping policy (4 steps) — The sidecar asks the control plane to register a new secret object.

  • Issue a capability token (5 steps) — The control plane mints a signed token for an object, scope, and audience.

  • Revoke a token (3 steps) — The control plane adds a jti to the denylist.

safekeys/policy-engine ​

  • Evaluate policy at issuance (4 steps) — The control plane decides whether to mint the requested token at all.

  • Evaluate local policy at resolve (4 steps) — The sidecar applies host-local policy before injecting.

safekeys/deployment-packaging ​

  • Build the service images (4 steps) — Multi-stage Dockerfiles produce minimal, non-root images for the control plane and the sidecar.

  • Publish images by digest (4 steps) — CI builds and pushes the images so a host runs exactly what was tested.

  • Deploy to a single hardened VM (5 steps) — A reference install on one host — users, directories, secrets, and start order.

  • Provision a production key store (4 steps) — OpenBao runs as a persistent, sealed-at-rest server — not the in-memory dev server.

  • Provision the token signing key (4 steps) — The Ed25519 signing seed is a root-only credential until HSM custody lands in Phase 1.

safekeys/distribution ​

  • Tag-triggered release pipeline (4 steps)

  • Reserve the defensive names (3 steps)

  • Verify your install (3 steps)

safekeys/docs-hosting ​

  • Publish the contributor docs (5 steps) — Build the developer-audience docs and deploy them to dev-docs.safekeys.ai.

  • Publish the help docs (4 steps) — Build the filtered public-audience docs and deploy them to docs.safekeys.ai.

  • Provision the hosting (4 steps) — The one-time Cloudflare and repository setup a new maintainer must perform.

  • Preview the docs locally (3 steps) — A maintainer reads both audiences on localhost before publishing.

safekeys/hardware-root ​

  • Bind a hardware root to an environment (4 steps) — A device is provisioned and bound to customer policy on first plug-in.

  • Unwrap through the hardware boundary (4 steps) — The device performs or gates the unwrap so key material never enters host RAM.

  • Revoke a lost device (3 steps) — A lost or stolen device is revoked by serial.

safekeys/threshold-crypto ​

  • Split key knowledge across holders (3 steps) — One share lives in the secure element; complementary shares live at the authority.

  • Reconstruct ephemerally inside the element (4 steps) — The key exists only inside the secure element for the duration of one operation.

  • Hybrid post-quantum session ratchet (3 steps) — Control-plane sessions use a classical plus PQ ratchet.

safekeys/integration-mcp-server ​

  • Expose Safekeys tools over MCP (3 steps) — The MCP server registers token-only tools with the host runtime.

  • Call a Safekeys tool from an agent (4 steps) — The agent invokes a tool and receives a token or status, never a value.

safekeys/integration-python-sdk ​

  • Create a secret via the SDK tool (4 steps) — The agent creates a secret and receives a token.

  • Resolve a secret for a tool call (4 steps) — The agent requests use of a secret without receiving the value.

safekeys/secret-creation ​

  • Create a secret from the CLI (6 steps) — A human supplies a value out-of-band and receives a token.

  • Create a secret from an agent SDK (4 steps) — An agent creates a secret and receives only a token — it never supplies a value it read from context.

safekeys/secret-transport ​

  • Transport a secret between agents (5 steps) — Agent A creates a secret; Agent B uses it, with neither transcript containing plaintext.

  • Transport a secret across environments (4 steps) — A folder is synced or copied to another environment and used there under a new token.

safekeys/token-revocation ​

  • Revoke a capability token (4 steps) — An operator invalidates a specific token by its unique id.

  • Revoke a device-bound token (later phase) (3 steps) — A lost hardware token is revoked by serial.

safekeys/capability-token ​

  • Mint a capability token (5 steps) — The control plane issues a signed token for a specific object, scope, and audience.

  • Verify a token at the sidecar (6 steps) — The sidecar is the only component that validates a token before resolving.

safekeys/encrypted-folder ​

  • Build an encrypted folder (4 steps) — Ciphertext objects plus a manifest are written to a directory or object prefix.

  • Transport a folder (3 steps) — A folder is moved between environments or agents with no unwrap occurring.

safekeys/envelope-encryption ​

  • Wrap a data encryption key (4 steps) — A new DEK is generated locally and wrapped by the KEK without leaving the key store's trust boundary.

  • Unwrap a DEK for a resolve (4 steps) — The sidecar requests unwrap only after a token has passed every verification step.

safekeys/dev-key-custody ​

  • Dev KEK lives in the macOS Keychain (4 steps)

  • Dev KEK lives in the dev OpenBao instance (3 steps)

  • Plaintext key file is an explicit, loud opt-in (4 steps)

  • Separate-user local mode with peer-credential checks (3 steps)

safekeys/exec-wrapper ​

  • Execute a wrapped command (5 steps) — The CLI resolves the token and runs the command with injected env.

safekeys/output-control ​

  • Redact the resolved value out of relayed output (4 steps)

  • Return status-only output by default (4 steps)

  • Require an allowlist for MCP-initiated resolves (3 steps)

  • Refuse known dumpers for CLI and SDK resolves without an allowlist (4 steps)

safekeys/secret-injection ​

  • Inject as an environment variable (4 steps) — For a child process that already reads env — CLIs and SDKs.

  • Inject as a 0600 temp file (4 steps) — For tools that require a file — kubeconfig, certificates.

  • Inject over a Unix socket or pipe (3 steps) — For long-running local services.

  • Inject via the exec wrapper (4 steps) — Run a command with secrets injected and the environment scrubbed.

safekeys/sidecar-resolution ​

  • Resolve a token and inject the secret (8 steps) — The sidecar takes a token from a local caller and injects the secret into a non-LLM consumer.

Actors ​

ActorType
Control Plane APIPackage
Sidecar / ResolverPackage
Safekeys CLIPackage
Safekeys.ai SitePackage
Safekeys MCP ServerPackage
Python SDKPackage
TypeScript SDKPackage
Key Store (OpenBao / Vault)Package
Control Plane DatabasePackage

Business Capability Map ​

mermaid
graph TD
    subgraph "safekeys/control-plane"
        safekeys_control_plane_audit_logging["audit-logging"]
        safekeys_control_plane_control_plane_api["control-plane-api"]
        safekeys_control_plane_policy_engine["policy-engine"]
        safekeys_control_plane_token_revocation["token-revocation"]
        safekeys_control_plane_capability_token["capability-token"]
    end
    subgraph "safekeys/system"
        safekeys_system_deployment_packaging["deployment-packaging"]
        safekeys_system_distribution["distribution"]
    end
    subgraph "safekeys/site"
        safekeys_site_docs_hosting["docs-hosting"]
    end
    subgraph "safekeys/sidecar"
        safekeys_sidecar_hardware_root["hardware-root"]
        safekeys_sidecar_threshold_crypto["threshold-crypto"]
        safekeys_sidecar_secret_creation["secret-creation"]
        safekeys_sidecar_secret_transport["secret-transport"]
        safekeys_sidecar_encrypted_folder["encrypted-folder"]
        safekeys_sidecar_envelope_encryption["envelope-encryption"]
        safekeys_sidecar_dev_key_custody["dev-key-custody"]
        safekeys_sidecar_output_control["output-control"]
        safekeys_sidecar_more["+2 more"]
    end
    subgraph "safekeys/mcp-server"
        safekeys_mcp_server_integration_mcp_server["integration-mcp-server"]
    end
    subgraph "safekeys/python-sdk"
        safekeys_python_sdk_integration_python_sdk["integration-python-sdk"]
    end
    subgraph "safekeys/cli"
        safekeys_cli_exec_wrapper["exec-wrapper"]
    end