Credentials and security
Understand credential encryption, workspace isolation, agent permissions, and outbound connection controls.
Overview
Datum stores source credentials and personal community data. This page describes the controls that protect both.
Some controls require the instance operator. The OCMGR team operates hosted instances. Self-hosted operators manage their own configuration.
Stored credentials
The vault
The vault encrypts source tokens, API keys, and webhook secrets before storage. Each workspace has a data key. Instance master keys in OCMGR_MASTER_KEYS encrypt those workspace keys.
AES-256-GCM binds each encrypted value to its workspace and row. Copying a value to another workspace does not make it readable there.
Connection details never return credential values. When Datum stores a credential, the source page shows credential stored. Changing a connection’s credentials through the CLI, MCP, or REST API returns the names of the stored credentials, never the values.
Rotate the keys
Master-key rotation encrypts workspace keys with a new master key. Workspace-key rotation encrypts that workspace’s stored credentials with a new data key.
Neither operation revokes provider tokens. Revoke exposed tokens with their provider. Reconnect the affected source afterward.
To rotate a self-hosted master key:
Add the new key
- Generate a 32-byte key with a new ID.
- Place it first in
OCMGR_MASTER_KEYS, retaining older entries:k2:<new>,k1:<old>. - Restart every process with the complete list.
Rotate workspace key protection
- Run
ocmgr keys rotate-master --json. - Run
ocmgr keys status --json.
- Run
Verify the rotation
- Run
ocmgr doctor --json. - Confirm that the
vaultcheck passes. - Confirm that every workspace uses the new key ID.
- Remove the old key from running processes only after these checks pass.
Retain the old key securely while older backups require it.
- Run
Preview workspace-key rotation with admin scope:
ocmgr keys rotate-workspace <workspaceId> --dry-run --json{ "name": "rotate_workspace_key", "arguments": { "dry_run": true } }curl -X POST "$OCMGR_URL/v1/admin/keys/rotate-workspace" -H "Authorization: Bearer $OCMGR_API_KEY" \
-H 'content-type: application/json' -d '{"dry_run":true}'The preview checks readability and returns the encrypted value count and current master key ID. It writes nothing. Review the result, then omit dry_run or --dry-run to rotate. REST selects the workspace from the credential; send {} for the confirmed rotation.
See rotate_workspace_key for the response fields.
How Datum separates workspaces
Community tables identify each row’s workspace. Postgres row-level security restricts requests to their workspace. The app’s database role cannot bypass this restriction.
A separate role protects sign-in tables, which determine workspace access. That role cannot access community tables.
ocmgr doctor checks app_role, rls, and auth_role on each run. See Doctor.
People and agents
People sign in with single-use email links or configured GitHub and Slack providers. Datum uses no passwords. Team and roles describes owner and member permissions.
Hosted MCP agents use their connecting person’s role. Datum checks current membership on every request. Removing a user stops access before token expiry. Disconnecting an agent under Settings → Access → Agents & connectors also stops access immediately.
Agent restrictions include these controls:
- Hosted MCP cannot create API keys.
- Search omits email addresses. Member reads require explicit email fields, and review results mask addresses by default.
- Tools cannot return message text from the graph because the graph does not store it.
- Undoing pinned merges requires admin scope and a reason. Local agents cannot undo pinned merges.
- No tool opens checkout or the billing portal.
- Local MCP connections cannot write unless the operator sets
OCMGR_MCP_WRITE=1.
Hosted backups
The OCMGR team operates hosted backups. The status report describes Datum-created database dumps across the instance, not a separate backup for your workspace.
encrypted: false means the dump lacks Datum backup encryption. offMachine: false means Datum did not copy it to external storage. These flags do not report provider disk encryption or provider snapshots. Local dumps alone do not protect against server loss.
See Hosted backup status to read the report. Ask the hosted operator about external retention and recovery coverage; the report cannot verify provider-managed backups.
Outbound connections
OCMGR_EGRESS_PRIVATE controls access to private network destinations for source, enrichment, and outbound connections.
| Policy | Effect |
|---|---|
deny |
Rejects private, loopback, link-local, and cloud metadata addresses. Checks each request and rejects redirects. Hosted instances use this default. |
allow |
Permits private destinations, such as internal forums and warehouses. Self-hosted instances use this default. |
Under deny, Datum rejects Postgres and S3 sink pieces. Their drivers open connections outside the HTTP checks. Snowflake uses the SQL API through Datum’s HTTP checks and supports public Snowflake endpoints.
The events profile uses a separate egress proxy. It rejects private destinations on every delivery hop.
Only the operator can change the policy. See TLS and event delivery.
FAQ
Does Datum store message text?
The graph stores titles and metadata, never message text. Raw webhook payloads can contain text in the intake log for up to 30 days. Erasure clears attributable payloads sooner. See Erasure and retention.
Is there SSO or a SOC 2 report?
No. Datum has not built SSO and claims no certification.
How do I report a vulnerability?
The repository’s SECURITY.md remains a draft without a monitored contact address. Do not put credentials, community data, or exploit details in public issues.
Can I rotate the sign-in secret like the others?
OCMGR_AUTH_SECRET also encrypts the agent-token signing key. No procedure re-encrypts that key with a replacement secret. A new secret cannot read the existing signing key.
Recovery requires new user sign-ins and agent connections. API keys continue to work. Treat secret changes as planned maintenance.