Skip to navigation

Security

This page says what Meadow does with your keys and your data in the hosted beta. It states only what the code and the deployment do today. Meadow holds no security certification, and no outside party has tested the beta.

Your provider keys

  • Meadow encrypts a provider key with AES-256-GCM before it writes it to the database. The database holds only ciphertext.
  • Each ciphertext is bound to your account and the provider name. A ciphertext copied into another account’s row does not decrypt.
  • The encryption keys live in Google Secret Manager, apart from the database. The Meadow service reads them when it starts. Administrators of Meadow’s cloud project can also read them.
  • The encryption key ring supports rotation: new values are encrypted with the newest key, and older keys stay available to decrypt older values.
  • The API never returns a stored credential. It returns the last four characters of the key or key ID so you can tell which one is stored.
  • Meadow decrypts a provider key in memory only to call that provider for you, or to check the key when you store it. A Modal token can stay in a server’s memory for up to 5 minutes after you replace or delete it.
  • When you store a key, Meadow sends it to that provider’s API once to check it. It is sent to no one else.
  • Deleting a provider key removes the ciphertext from the database. It does not revoke the key at the provider.

If Meadow’s encryption keys were ever exposed, rotating them would not be enough. You would need to replace your provider keys at the providers.

Your Meadow API keys

  • A Meadow API key is mdw_ followed by 32 random bytes.
  • Meadow stores a SHA-256 hash of the key, never the key. The secret is shown once, when the key is created.
  • Webhook secrets are encrypted in the same way as provider keys and shown once.
  • More than 20 failed authentications a minute from one address are throttled.

What passes through and what is stored

DataPasses throughStored by Meadow
Model request and response bodies (prompts, completions)Yes, to the provider and back, content unchangedNo
Token counts from the provider’s usageRead from the responseRunning totals per key, for limits, in tokens and US dollars. Also one usage record per model call: time, key, provider, model, status, token counts, cost, the provider’s request ID and the provider’s usage object, kept 90 days. No prompt or completion text
Sandbox timesOne usage record per sandbox: created, started, ended, provider and resources, kept 90 days after it ends
Commands you run in a sandboxYes, to the providerNo. For background commands, a hash of the request, the status, and the exit code
Command outputYesFor a background command: the last 256 KiB of each output stream, encrypted, for 24 hours. Nothing for a blocking or streamed command
Files you copy in or out of a sandboxYes, streamedNo
Sandbox settings: name, labels, resources, ports, timeouts, webhook URLYes, as plain text
Sandbox env and registry_authYes, to the providerEncrypted while the sandbox is being created
Dockerfile text of an imageYes, to the providerYes, as plain text
registry_auth of an imageYes, to the providerYes, encrypted
Build contextsYes, to the providerYes, in a private storage bucket, removed after 24 hours without use. The bucket keeps the removed bytes for 7 more days, out of reach of the API, then erases them
Webhook event payloads (sandbox status, labels, IDs)Yes, to your URLYes, for 7 days after delivery
Project names, routing, key names and limitsYes, as plain text
Changes to keys, projects, provider keys and budgetsOne audit log entry per change: the key that made it, the time, the request ID, the names of the fields set and the values that are safe to show. No secret and no address. Kept 400 days
Budgets and alert email addressesYes, as plain text, until you delete the budget
Answers to requests sent with Idempotency-KeyEncrypted, for 24 hours, so a retry gets the same answer

Because Dockerfile text, labels, and names are stored as plain text, do not put secrets in them. Pass secrets to a sandbox in env.

Meadow reads a few fields of a model request to route it: model, models, provider, stream, and the output token limit. It removes its own routing fields before forwarding and writes the provider’s model ID in model. On a streamed Chat Completions call it sets stream_options.include_usage to true, so that the provider reports tokens. On a call that goes to OpenRouter with a key that has allowed_models, it removes OpenRouter’s preset and route fields. It does not read or change message content.

Your data also goes to the providers you route to, under your own agreement with each provider. Sandboxes, images, and build context copies live in your Daytona or Modal account. Traffic to a sandbox port or over SSH goes straight from you to the provider and does not pass through Meadow.

Retention

DataKept
Prompts, completions, command text, file contentsNever stored
Usage records90 days, then daily sums only
Audit log entries400 days
Webhook events7 days after delivery
Saved answers for Idempotency-Key, output of background commands24 hours
Build contexts24 hours without use, then 7 days in storage out of reach of the API
Server logs30 days
Keys, projects, budgets, stored provider credentialsUntil you delete them

These periods are set for the whole hosted service. There is no setting per account yet.

What Meadow logs

Meadow writes one log line per request with: a request ID, the HTTP method, the route pattern (such as GET /v1/sandboxes/{sandbox_id}), the status, the duration, and the account, project, and key IDs. Other log lines carry IDs of the objects involved, provider names, and the kind of error.

Meadow’s own logs do not contain request or response bodies, headers, prompts, command text, file contents, Meadow API keys, or provider keys. Logs are kept for 30 days.

The cloud platform in front of Meadow keeps its own access log, which Meadow does not control. Treat URLs as logged: never put a secret in a path or a query string.

Tenant isolation

  • Every request is tied to the account of its key. Every database query for your data filters by that account.
  • Sandboxes, images, and build contexts are also tied to a project. A key reaches only those of its own project.
  • A provider key limited with project_ids cannot be used by other projects.
  • The admin scope is account-wide. An admin key in one project can manage every project, key, and provider key in the account. Projects separate workloads. They are not a wall between administrators.
  • Isolation is enforced by Meadow’s application code. All accounts share one database and one service.
  • An ID from another account or project returns 404, the same as an ID that does not exist.

Sandboxes run at Daytona or Modal, in your own provider account. Isolation between sandboxes is the provider’s.

Code in a sandbox can read everything in its environment. That is the env you passed, and variables the provider sets: on Daytona names such as DAYTONA_ORGANIZATION_ID, DAYTONA_SANDBOX_ID, and DAYTONA_REGION_ID, and on Modal names such as MODAL_SANDBOX_ID, MODAL_TASK_ID, and MODAL_REGION. We saw IDs there and no provider key. A Meadow API key you pass in env is readable by any code you run, so pass only a narrow one. See Run untrusted code.

Network

  • The hosted beta is reachable over HTTPS only. Calls from Meadow to providers use HTTPS.
  • URLs you supply (webhook URLs, an Azure endpoint) must resolve to public addresses. Meadow rejects loopback and private targets, and webhook URLs must use https.
  • Webhook deliveries are signed with HMAC-SHA256 and carry a timestamp, so you can verify the sender and reject replays.
  • The beta has no IP allowlist, no private networking, and no single sign-on.

What you should do

  • Give workloads keys without admin, with allowed_models, limits, and expires_at where you can.
  • Store provider keys that are scoped as narrowly as the provider allows, and that you use only for Meadow, so you can revoke one without side effects.
  • Rotate keys by creating first and deleting second. See Authentication and Provider keys.
  • Verify webhook signatures.
  • Keep secrets out of Dockerfiles, build contexts, labels, and URLs.

Status and company security documents

  • Service status and incident history: status.usemeadow.ai.
  • Polymath Labs, the company that runs Meadow, publishes its security documents at trust.polymathlabs.ai. They describe the company. They are not a certification of Meadow.

Report a vulnerability

Send security reports to the security contact you were given when you joined the beta. Include the steps to reproduce and the time of your test. Please do not test against other customers’ data, and give us time to fix an issue before you disclose it.