Companion Agent
The Companion Agent is a lightweight background service that runs on each user's endpoint and acts as the local trust broker for OSDF document access. It is a core zero-trust component - not a convenience utility - comparable in posture to a Tailscale client, Cloudflare WARP, a CrowdStrike Falcon sensor, or Microsoft Entra device identity, but specialized for document-centric access control.
One sentence
Core roles
The Agent fills five roles that together make a document's protection travel with the endpoint:
| Role | What it does |
|---|---|
| Local Policy Enforcement Point (PEP) | Evaluates and enforces access decisions on-device for every request. |
| Device Identity Broker | Proves a hardware-backed, non-exportable device identity to the policy plane. |
| Secure Authentication Bridge | Holds the user's IdP session and brokers it to the viewer and browser. |
| Hardware Security Interface | Talks to the TPM, Secure Enclave, smart cards, and PKCS#11 tokens. |
| Offline Trust Enforcement Engine | Caches short-lived policy leases so decisions continue offline, fail-closed. |
Why a local agent
Centralized decryption endpoints concentrate risk: a single compromise can expose every document. OSDF takes the opposite approach. Plaintext is only ever released on a trusted device, by the Agent, under a short-lived lease - there is no bulk-decrypt endpoint and no master key.
- Decisions at the edge keep working when the network does not.
- Device binding ensures a stolen credential alone cannot open a document.
- Continuous verification re-checks session, device posture, and lease validity rather than trusting a one-time login.
- Least privilege is enforced per document, per action, per lease.
Where it fits
User ─▶ Companion Agent ─▶ Device Identity ─▶ OSDF Policy Engine ─▶ Protected Document │ (local PEP / trust anchor) └─▶ TPM · Secure Enclave · Smart Card · BrowserThe cloud control plane issues policy and wrapped keys; the Agent makes the final release decision locally and emits a signed audit event.
Next steps
- Architecture - components and trust boundaries.
- Local APIs - the loopback session broker.
- Device identity - TPM and Secure Enclave.
- Enterprise deployment - MDM rollout.
- Security model - origin allowlisting, device binding, audit.