Security
Updated 19 November 2026
This page is for people evaluating Diurna Team. It describes controls that are in the product and in the infrastructure code. Diurna does not claim SOC 2, ISO 27001, HIPAA, PCI DSS, or any other certification. Diurna is not legal advice and is not a law firm.
Encryption
The sign-in cookie is httpOnly. In production it is also marked Secure, so the browser sends it on HTTPS. The database stores a SHA-256 hash of the session token, not the token. The sign-in code is stored as a SHA-256 hash of a server pepper, the email, and the code. API keys are stored as SHA-256 hashes. The secret is shown once. You can limit a key to read requests, watch endpoints, billing endpoints, specific paths, and an optional address list. A key left on full access, including a key created before that limit, works from every address. An optional authenticator stores its shared secret as AES-256-GCM ciphertext under a dedicated server key. Recovery codes are stored as a SHA-256 hash and each code works once. A passkey stores the public key and a signature counter. The private key stays on the device. A team owner can require an authenticator for that team. An account API key still opens that team. Failed authenticator attempts slow down and do not disable the account. Wrong sign-in codes slow the next attempt for that email and, when a client address is known, for that address. The wait grows up to 15 minutes. Ten failed attempts for one email in 15 minutes, or 25 from one known address, stop further attempts until that 15 minutes ends. Asking for a code counts toward the address limit. A successful sign-in clears those counts. When the client address is unknown, it is not counted toward the address limit. The wait does not disable the account.
Webhook signing secrets and unsubscribe tokens are encrypted with AES-256-GCM before they are written. The key lives in the server environment. It is not in the repository. Webhook delivery is HTTPS only. Diurna refuses private, loopback, and metadata addresses, connects to the DNS answers it just checked, and does not follow redirects. RDS is configured with encrypted storage and with SSL required. Automated backups and the final snapshot use that same encryption. SES is configured to require TLS. The source-file bucket uses AES-256 and denies requests that are not TLS. The site and the data API send HSTS.
Card numbers are entered on Stripe. Diurna does not store them. That is not a statement that Diurna is a PCI-certified merchant. These controls are encryption in transit and at rest for the systems named here. They are not end-to-end encryption. Diurna can read customer content in the database in order to run the product.
Tenant isolation
Team organizations, members, invitations, lists, list items, positions, and notes use forced row-level security. A transaction sees those rows only when it sets the database user id to a member of that organization.
Private client matters are not readable through ordinary table access. The functions that read and write them require a live session token hash, an active or trialing Team subscription, and membership in that organization. Those calls run only when client matters are enabled and the private database transport is ready. Otherwise they are refused. An API key does not authorize them. The key-based MCP connection, including a Grok connection, does not send the account session.
A saved search is deleted only when the session hash belongs to the owner. On a production runtime, the server refuses the fixture flag that would impersonate a plan. These checks bind the application role. They do not hide rows from a database administrator.
Logging and redaction
Sign-in, failed sign-in, sign-out, session revoke, API key creation, API key access changes, API key revocation, team membership changes, billing changes, exports, and webhook create, disable, and rotate each append an audit row. The row stores ids and a redacted metadata object. Emails, tokens, and free text that are not ids are removed before the insert. The same redactor runs on application logs and on the MCP bridge log.
Each API request writes one line through that redactor: a request id, a hash of the account id when the caller is signed in, the route template, the method, the status, the latency, and whether zero data retention applied. The query string is not on that line. When a log pepper is set, the account hash is an HMAC. Otherwise it is a SHA-256 prefix. A server error also stores a group with a redacted message of up to 500 characters. When zero data retention already applies to that request, the sample message is the word omitted. A later server error with the same fingerprint that is not under zero data retention replaces that sample with its own redacted message. The application can update the count. It cannot delete the group. The trust page states how an account, a team, or the header X-Diurna-Zero-Retention turns that mode on.
Audit rows cannot be updated or deleted. Application CloudWatch logs default to 30 days in the infrastructure code. Job logs default to 14 days. Vercel may keep its own request logs. This repository does not set Vercel's retention. A search string can appear in a request URL. The redactor strips secrets and email addresses. It does not strip ordinary search words.
Data location
The database, SES client, and source bucket are configured for AWS us-east-1. That database configuration is not multi-AZ. The site and API run on Vercel, which can handle a request outside that region while the database stays in us-east-1. Stripe holds payment data on Stripe's infrastructure.
When issue briefs are enabled and an xAI key is set, Diurna sends the brief query and official passage text to api.x.ai. Email addresses, the account id, and a long enough display name are removed first. A shorter display name is not removed. The prompt is not stored. Monthly spend for the account, and one global total, are stored. The default caps are 5 dollars and 50 dollars. A log line is written when global spend reaches 80 percent of that cap. If the key is unset, Diurna does not call xAI for that brief, and the brief quotes stored passages. Ask Diurna, when a supported AWS runtime role is configured, sends the question and those official excerpts to Amazon Bedrock in us-east-1 with the runtime role using temporary credentials. The default model id is deepseek.v3.2. No long-lived access key is used. The prompt is not stored, and the xAI spend rows are not used for that call. A teammate who connects Grok to the MCP server receives the tool result for that call. Private matter tools still require the account session.
Deletion
A member can sign out of the current browser, sign out of all other browsers at once from Account settings, or sign out everywhere. Saved searches, notes, and court watches can be removed as the privacy page describes. API keys are revoked, not erased. A disabled webhook keeps the row and drops the encrypted secret. A saved-search, alert, team-list, or invitation POST that sends an Idempotency-Key keeps the response for 24 hours. An invitation response in that copy does not include the invitation token. Expired receipts are removed by a bounded sweep of up to 32 rows when a receipt is claimed, completed, or released, not by a separate job. A permanent bounce or a complaint is kept as the address and the reason. The application does not delete that row. The application role cannot delete failed-payment dunning rows, operator billing adjustments, or job dead letters. It can update a dunning row once to record the email result. Account deletion removes the dunning rows for that Stripe customer. Billing adjustments and dead letters stay. A dead letter stores the job name, the attempt count, an error code, and a redacted detail. Deleting a row in the primary database does not erase the RDS backup until the 7-day backup retention passes. Deleting the database instance does not delete those automated backups. Audit history is kept.
Settings has a control that deletes the signed-in account after you type DELETE or your email. It cancels the Stripe subscription, then removes or anonymizes that account. Boards in an organization where that person is the only member are hidden immediately and permanently deleted after 30 days. A client matter on that board keeps its profile and drops the board link so the board can be deleted. Organizations with other members keep their boards and matters. The owner role can delete an organization through the workspace API. Client-matter rows reference that organization without cascade, so a matter blocks the delete. The API returns an error that says the organization still has client matters. Email hello@trydiurna.com to ask what a backup, an audit row, or Stripe still holds. A signed data-processing addendum is not generated by the product. Ask for one at the same address.
Vulnerability disclosure
This section is for security researchers. It describes what is in scope, how to report an issue, and what you can expect from us. Diurna does not run a paid bug bounty program and does not promise rewards for reports.
Scope. In scope: the Diurna web application and HTTP API served from our production site origin, including signed-in features, public pages, and documented API routes. Out of scope: third-party services you reach through links or embedded checkout (for example Stripe-hosted payment pages), social engineering, physical attacks, denial-of-service tests, and issues in your browser or extensions unless they show a flaw unique to Diurna.
Safe harbor. If you follow this policy and act in good faith, we will not pursue legal action against you for the research itself. Do not access another person's data, modify or delete data that is not yours, or degrade the service for others. Use only accounts you own or explicit test accounts we give you. Stop when you have enough evidence to report the issue.
How to report. Email support@trydiurna.com with a short description, steps to reproduce, the affected URLs or API routes, and the impact you believe the issue has. You may also point to /.well-known/security.txt for machine-readable contact and policy links.
Response expectations. We aim to acknowledge receipt within five business days. We may ask for clarification or a retest on a fix. We cannot guarantee a public fix timeline for every report. Please allow us a reasonable time to investigate and remediate before you disclose the issue publicly. We may credit you in release notes if you ask and if the report helped, but we do not offer cash bounties.
Subprocessors
Diurna uses the subprocessors below to run the product. The list is the same on this page and on the privacy page.
| Provider | Role | Data sent | Region / notes |
|---|---|---|---|
| Vercel | Website and API hosting, edge and serverless request routing | HTTP requests, including URL, method, headers, and client address when the platform forwards it | Global edge; application data stays in configured AWS regions |
| Amazon Web Services | PostgreSQL 16 database, S3 source storage, background jobs, CloudWatch logs, Amazon SES email delivery, and Amazon Bedrock in us-east-1 for Ask Diurna when enabled | Account data, product content, operational logs, outbound email, and model prompts for Ask Diurna when that feature is on | us-east-1 |
| Stripe | Subscription billing, hosted checkout, and payment card storage | Billing contact, subscription status, and card data you enter on Stripe-hosted pages | Stripe infrastructure |
| xAI | Issue-brief generation when enabled and configured, with search disabled and PII redaction applied | Brief query and official passage text sent to api.x.ai when issue briefs are on; email addresses, account id, and long display names are removed first | xAI infrastructure |
| Sentry | Application error reporting when configured; browser reporting only after analytics or error consent and blocked by Do Not Track or Global Privacy Control; tracing, session replay, and profiling off | Redacted error events without account email, cookies, authorization headers, or request bodies | Sentry cloud |
| PostHog | Product analytics and masked session replay in US or EU cloud via this site’s /ingest proxy when configured; opted out by default until consent is granted and hidden under Do Not Track or Global Privacy Control | Page views and product actions after consent; cookies and authorization headers are stripped at the proxy | US or EU PostHog Cloud |
What this page does not say
It does not say Diurna has passed an independent audit. It does not say customer content is invisible to the people who operate the database. It does not say a backup, an audit row, or a Stripe record disappears the moment you click delete.
Privacy · Terms · Security · Trust · hello@trydiurna.com