# Security

Source: https://mroffice.ai/en/developers/trust/security

How MR Office is built and operated: hosting, encryption in transit and at rest, the isolation of embed apps, key and token handling, signed callbacks, monitoring and responsible disclosure.

## Architecture and hosting

- Application servers and the PostgreSQL database run on OVHcloud dedicated servers in Beauharnois, Québec, Canada.
- Files are stored in OVHcloud Object Storage, US East (Virginia). Encrypted database backups are stored in OVHcloud Object Storage, US West (Oregon), a separate region from the files.
- Visitors reach the website and API through Cloudflare, which terminates TLS and forwards traffic to the origin over a Cloudflare Tunnel; web and API traffic does not reach the origin any other way. The file host (files.mr-note.com) is served directly over HTTPS, behind a host firewall.
- Production hosts are reachable for administration by SSH keys only; password logins are disabled. Access is limited to the people who operate the service.
- Releases go through a gated merge queue (type checks and tests) and deploy container images pinned by digest.

## Encryption

| Where | How |
| --- | --- |
| In transit (browser, SDK, API) | HTTPS only. TLS 1.3 is negotiated at the Cloudflare edge; HSTS with a one-year max-age. |
| Edge to origin | Cloudflare Tunnel (encrypted). |
| File host (files.mr-note.com) | HTTPS with a publicly trusted certificate. |
| Files at rest | OVHcloud Object Storage with server-side encryption by default (AES-256) and versioning on. |
| Database backups | pgBackRest, encrypted with AES-256-CBC under a repository passphrase, compressed with zstd, stored in a separate bucket that is also encrypted at rest (AES-256). |
| Embed app secrets | Sealed with AES-256-GCM, the app's ID bound as associated data. Shown in plain text once, when made. |
| Session secrets and key lookups | Stored only as hashes. |
| Account passwords | Hashed with PBKDF2-SHA256; never stored in plain text. |

## Tenant isolation of embed apps

- Each embed app has a workspace and a service account of its own. Its documents are separate from every other app's and from the partner's own MR Office account.
- A session reaches its own document and nothing else. View sessions cannot write.
- A second wall, fail-closed, refuses every route outside what an editor needs for its own file: AI, billing, workspace administration, member directories, other notebooks and account settings.
- Embedded editor sessions never send document content to AI model providers: the AI routes are refused for embed sessions.
- The editor page sends Content-Security-Policy frame-ancestors with exactly your app's allowed origins, so no other site can frame it. The rest of the site sends a strict CSP and X-Frame-Options: DENY.

## Keys and session tokens

- Secret keys (mro_sk_) and webhook keys (mro_whsec_) are shown once and never again; keep them on your server.
- Session tokens are signed by your server (HS256), start one session once, and expire within an hour at most.
- Tokens are handed to the editor by postMessage and sent in a request body, never in a URL, so they never appear in logs or Referer headers.
- Sessions last at most 10 hours. Pictures inside a document load through short-lived, signed, read-only links, never the session secret.
- The editor works without third-party cookies.
- Revocation takes effect within seconds: switch an app off, end its sessions, or rotate a key in the developer console.

## Signed callbacks and file fetching

- Save callbacks are signed with HMAC-SHA256 over a timestamp and the body, carry an idempotency key, and are retried for about 11 hours.
- Your callback URL must be public https.
- When MR Office fetches your files, it uses https and public addresses only, checked after DNS resolution and pinned for the connection. Redirects are checked again and sizes are capped.

## Monitoring and operations

- Host health checks run every 5 minutes and email the operator when something changes and when it recovers.
- A provider canary checks the AI models and relays on a schedule, so a provider's silent change is seen the day it happens.
- A synthetic monitor checks the public services every 5 minutes; results and incidents are published on the status page with 90 days of uptime.
- Uploads to the main product are scanned for malware (ClamAV).

- [Status](https://mroffice.ai/en/status): Current health and 90-day uptime of each service.

## What we do not offer yet

We prefer to say plainly what is missing. MR Office accounts do not have multi-factor authentication yet, and there is no SAML single sign-on or SCIM provisioning. No independent penetration test has been performed yet. These are on the roadmap on the Compliance page.

## Responsible disclosure policy

Report vulnerabilities to security@mr-note.com. Please do not open a public issue.

- In scope: mroffice.ai, mr-note.com, files.mr-note.com, mcp.mroffice.ai, the embed SDK, the MCP server and the open-source editors.
- Test only against accounts and embed apps you own, and never access, change or delete other people's data.
- Out of scope: denial of service and load testing, social engineering, physical attacks, and automated scanner output without a demonstrated impact.
- Give us reasonable time to remediate before public disclosure.

We aim to acknowledge a report within 3 business days. Good-faith research that follows this policy is treated as authorized, and we will not pursue legal action against you for it. Contact details are also published at https://mroffice.ai/.well-known/security.txt.
