Skip to content

Data at rest

Where Context stores data, which component accesses each store, and who decides its encryption and retention.

Where data is stored

flowchart LR
subgraph aws["AWS services you manage"]
rds["Amazon RDS for PostgreSQL<br/>users, roles and grants, tasks, agents, connections"]
drive["Amazon S3, drive bucket<br/>drive files, skills, task outputs and transcripts"]
logs["Amazon S3, logs and traces<br/>logs kept 7 days by default; traces"]
ch["Amazon S3, ClickHouse data<br/>traces of model calls, including their content"]
end
subgraph eks["Inside the Amazon EKS cluster"]
chv["ClickHouse volume<br/>metadata and cache"]
nats["NATS stream volume<br/>run event log for live output"]
eph["Sandbox ephemeral volume<br/>working files of one run; deleted with the Pod"]
sec["Kubernetes Secrets<br/>database password, signing keys, provider keys"]
end
app1["Application tier<br/>workers, Temporal, OnlyOffice"] --> rds
app2["Application tier<br/>drive gateway, presigned links"] --> drive
lt["Loki, Tempo"] --> logs
chs["ClickHouse"] --> ch
chs --> chv
st["Streaming service"] --> nats
sb["Agent sandbox<br/>one per task run"] --> eph
inst["Installer and application"] --> sec

Stores

StoreContentsAccessProtection at restRetention
Amazon RDS for PostgreSQLUsers, organizations, workspaces, roles, grants, tasks and run records, agent definitions, connector connections, sandbox identity recordsApplication tier and workers; Temporal; OnlyOfficeYour AWS configurationYour backups
Amazon S3, drive bucketDrive files, skills, task outputs and task transcriptsApplication tier; drive gateway; presigned links issued by the application tierYour AWS configurationUntil deleted by users; your backups
Amazon S3, log and trace storageApplication and sandbox logs; tracesLoki and Tempo through their own IAM rolesYour AWS configurationLogs: Loki retention period (default 168h, seven days); traces: your configuration
ClickHouseTraces of model calls, including their content; data in Amazon S3, metadata and cache on a cluster volumeApplication tier, through ClickHouseYour configuration for Amazon S3; cluster volume encryptionYour configuration
NATS streamRun event log for live outputStreaming serviceCluster volume encryptionYour configuration
Kubernetes Secrets and installer configurationApplication secrets (database password, signing keys, provider keys)Application components; installerEKS secret encryptionYour configuration
Sandbox ephemeral volumeWorking files of one task runThat sandbox onlyNode diskDeleted with the Pod

Logs can include prompt text and tool output. Isolation between organizations, workspaces and users is enforced by the application tier on every request (see the permissions reference). Stores are shared by the deployment; there are no per-organization encryption keys.

For the retention settings an admin controls in the product, see Data retention.