Security Guarantees and Limits
Safekeys is designed so that language models never receive secret values through Safekeys itself. Agents handle capability tokens only; the sidecar injects plaintext outside the model and redacts anything it relays back. This page states what is guaranteed, and what is not — the marketing site quotes it verbatim.
Guarantees
- Agents see only capability tokens, folder paths, and status. Tokens contain zero secret material and are short-lived, scoped, and audience-bound.
- Plaintext exists only inside the sidecar's injection path, for the consuming process, and is zeroised immediately after use.
- Output relayed through the sidecar's API is redacted: the resolved value cannot be read back out of command stdout/stderr in raw, base64, base64url, hex, percent-encoded, or JSON-escaped form — including partial echoes of 8+ characters and values split across output boundaries. Matches are replaced with [REDACTED:safekeys].
- Secret values never travel on a command line; injection is environment-variable or 0600-file only.
- Default development storage keeps key material — the key-encryption key and the token signing seed — out of plaintext files the agent's OS user can read (macOS Keychain, or a containerised OpenBao on Linux). A plaintext dev key file exists only behind an explicit opt-in that refuses loose file permissions. The Keychain is a storage improvement, not an access boundary; for a same-host access boundary, run the sidecar as a dedicated user (scripts/separate-user-mode.sh).
- Policy is deny by default and can bind which commands a token may run; MCP-initiated resolves require a command allowlist outright, and known secret-dumping commands are refused for CLI and SDK resolves when no allowlist exists.
- Every resolve, denial, and redaction is appended to an audit log containing identifiers and outcomes only — stealing the whole log yields no secrets.
Verify your install
- Container images: cosign verify --certificate-identity-regexp '^https://github.com/Smith-Gray-Pty-Ltd/safekeys/\.github/workflows/release\.yml@refs/tags/v.*' --certificate-oidc-issuer https://token.actions.githubusercontent.com ghcr.io/smith-gray-pty-ltd/safekeys-sidecar@sha256:<digest> (the same command verifies the Docker Hub mirror with its image name).
- npm packages — run npm audit signatures in any project that installed @smithgray/* packages; it confirms provenance from this repository's release workflow.
- Release binaries — download SHA256SUMS from the GitHub Release and run sha256sum --check --ignore-missing SHA256SUMS.
Limits
- Redaction covers the relay channel only. An allowed command can still exfiltrate data over the network under its own protocols, or write the secret to a file the agent can later read; neither passes back through the relay. Use tight command allowlists for high-value secrets.
- A rooted host can observe anything its processes can, including the sidecar. Phase 1 moves long-term key custody into hardware; plaintext materialised for a running consumer is observable to root regardless of phase.
- A human who pastes a secret into a chat has defeated the purpose; no tool can detect that.