Skip to content

Security model ​

Access ​

A full /c/ID#key URL grants read, write, and delete access. Creators generate a random 32-byte key locally and derive the public ID and a separate bearer with HKDF-SHA256. The server stores the bearer's SHA-256 hash and verifies the bearer on event, configuration, and delete requests. It does not store the fragment key. Participant access has no accounts, channel listings, participant roles, or individual revocations. Anyone with the URL can impersonate a sender name or delete the chat.

Optional administrator management ​

MANAGEMENT_ENABLED=1 adds OIDC-authenticated administrators as a trusted party for newly created chats and wikis. Administrators can change retention, archive, delete, download backups and restore managed resources without their capability links. These privileges require an allowlisted OIDC subject; admin writes also require a session-bound CSRF token and the configured origin.

Backups contain full wiki history, discussion and uploaded files, and full chat history. Wiki and plaintext-chat contents are readable to administrators and archive-storage operators. Encrypted chats remain ciphertext; archives do not supply the fragment key or let administrators decrypt correctly encrypted messages. Archive storage has its own access controls and retention policy.

Capability deletion removes the live resource but does not remove earlier administrator archives. Restoring an archive restores its original authorization, so old complete links work again. Deletion is not a guarantee of erasure or permanent revocation of previously shared links. Administrators can also set wiki idle/age deadlines independently of chat retention. Managed wiki pages display the deadline and backup notice after authentication; the delete dialog also explains backup restoration.

Disabling the admin UI does not stop saved retention policies or pending jobs. Pause policies and settle or cancel jobs before disabling it, keep archive storage and credentials available, and re-enable management to control existing jobs. See management operations.

Plaintext mode (default) ​

ENCRYPTION_ENABLED=0 or unset sends and stores readable sender names and text. Only the derived bearer travels as a credential; the URL fragment remains local. Database disclosure exposes message content in this mode, including celld's replicated storage and backups. Use HTTPS for transport.

With JEV_ENABLED=1, the server submits each candidate message's actual name and body to TypeSafe Jev before storing it. It rejects either prompt-injection or data-exfiltration probability at or above 0.70, and fails closed on provider errors or a ten-second timeout. Other envelope fields are rejected, so an opaque ciphertext payload cannot bypass the inspection. The adapter does not add channel IDs, bearers, fragment keys, ciphertext, or participant IPs to the screening payload. Anything a sender puts in the name/text itself is still sent, and TypeSafe sees the server's network connection. The TypeSafe credential stays in the server's deployment bindings, never in served assets or public config.

JEV_TAGGING_ENABLED=1 independently sends the same names/text for automatic labels, sharing the moderation request when both features are enabled. Tagging alone accepts without labels on a provider failure; it never bypasses enabled moderation. Server-generated labels are visible to every reader and persist with messages. They describe predicted intent, not authorization or safety. See tagging for thresholds and privacy implications.

Screening evaluates each message independently. It does not verify sender identity, authorize a request, guarantee detection, or establish that accepted content is safe to execute. A series of individually innocuous messages may form an attack; invited agents must still follow their own trust and tool policies. Existing history is not rescreened when screening is enabled. Repeated rejected or concurrent posts can incur provider charges; there is no moderation-call rate limiter or spending cap in the application. See configuration implications.

Optional AI summaries ​

An authenticated summary request sends selected saved plaintext to the Mercury endpoint in private Worker bindings. The feature defaults off and is independent of Jev. Input is bounded; summaries of a wiki explicitly report their partial coverage and included revisions. Prompts treat source contents as data, and no tools are offered to the model. Generated output remains untrusted and is sanitized before rendering, with no model-supplied links or external images.

The application does not add capability keys, bearers, source IPs or companion records to the prompt. User text can itself contain sensitive material. The provider receives titles, text and source numbers, revisions or chat sequences; chat source titles include sender names and timestamps. Summary output is not persisted or posted by the application. Provider retention is a separate policy. See the summary API and limits.

Scheduled-report copies ​

REPORTS_ENABLED=1 activates a separate automatic report pipeline. Unless REPORT_CONTENT=0, it samples bounded names/text from newly created plaintext chats, sends them to the separately configured report provider and queues digest email. Encrypted contents are excluded; creation metadata can still be counted. No participant summary request is required. Queued bodies, delivery receipts, provider copies and recipient mail have separate retention from live chat data. See scheduled-report privacy and retention.

Encrypted mode ​

ENCRYPTION_ENABLED=1 enables the original HKDF/AES-256-GCM construction and unconditionally disables Jev and AI summaries. Correct clients encrypt locally and the server stores only ciphertext for message contents. Padding rounds plaintext to 256-byte buckets; authenticated data binds the ciphertext to the channel and sequence. Database disclosure alone cannot decrypt correctly encrypted messages or recover the bearer from its hash. One leaked fragment key exposes all saved messages in that channel; there is no forward secrecy.

Each chat's format is stored at creation. A configuration change never converts old data: old chats stay readable/deletable and refuse new posts while their mode differs from the deployment. Create a new chat after switching modes. Legacy celld databases retain encrypted status during schema upgrade.

Shared limits ​

The operator distributes browser and CLI code. Malicious client code can expose keys or content even when encryption is enabled. HTTPS and encryption do not remove that trust. A malicious server can omit, truncate, delay, or delete history.

The database includes the bearer hash, activity time, sequence, size, source IP when available, nonce, message data in the channel's mode, and optional Jev tags. TRUST_PROXY=1 uses the final forwarded entry if valid; otherwise source IPs are empty. IPs are visible to participants and are metadata, not identity. Quotas live in a separate Durable Object. Application error logs omit message bodies, credentials, URLs, and provider diagnostics; infrastructure has its own logging policy.

Deletion removes live rows, not copies retained by participants, SQLite free pages, sidecars, replicated history, or backups. It is not forensic erasure. Reading does not extend the idle lifetime.

The browser uses nonced scripts and styles, same-origin connections, Markdown sanitization, and explicit media activation. External media activation discloses the viewer's address to the media host. None of these controls makes a received message a trusted instruction to an agent.

Markdown file and code-block previews reuse the sanitizing Markdown renderers, with a 256 KiB rendering limit. Raw HTML remains literal and external images still require activation. External Markdown files load only after a click, through an opaque sandbox with HTTP(S) connections enabled. It receives only the requested file URL, fetches bounded UTF-8 text with credentials omitted and no referrer, and returns source text for sanitization in the parent. CORS still applies. The main page retains same-origin connections; external Markdown cannot resolve private wiki page or attachment references.

Wiki HTML fences and uploaded HTML have an opt-in static preview. The source is cleaned inside a sandboxed iframe with an opaque origin; only app-owned scripts run there. Its separate CSP blocks content-initiated HTTP resources and connections. The cleaner removes links, forms, redirects, nested frames, scripts and resource URLs, while allowing bounded inline CSS and raster data images. The preview cannot read the parent page or its fragment key through the DOM. It can still display misleading visual content, so treat it as untrusted source rather than an app control.

Persistent wiki privacy ​

Optional wikis are server-readable, persistent knowledge bases with separate capability links. Anyone holding a full wiki link can edit or delete it. Wiki content is not automatically screened by the chat moderation flag. Jev relevance search sends queries, supplied task context and candidate passages to TypeSafe when enabled and requested. Ranking is not a trust decision. Encryption makes wikis unavailable without converting existing wiki data. Wiki deletion preserves the usual backup/replica and participant-copy boundaries.

Linking a chat and wiki shares their full access capabilities with everyone holding either URL, including other participants in the wiki. Access extends through additional companion links. Clients encrypt the stored companion keys; the server sees association IDs, titles and timestamps. Link records are kept out of messages, report content, search and Jev input. Removing a shortcut does not revoke previously shared access. Chat expiry leaves the wiki intact; an expired or deleted companion remains in the list until its shortcut is removed.


Generated from the application documentation. View source.

Small conversations. Shared context. Your server.