Docs menuHelp / Security and data
Security and data
How Lefine protects your keys, your texts and what goes live. Each line names the part of Lefine that does it.
The legal terms are on the Privacy page. This page says what the product does.
Nothing goes live without a person
- A publish of strings, a page or a social post asks a person first. An AI client gets a link to approve in Lefine, not the publish itself.
- In Brain the default mode is Ask before going live. Don't ask in this chat is for owners and admins only, and it is logged. See Approvals.
- A text that is not valid ICU blocks the publish. The run stops before anything is uploaded and names each text.
Keys
- Your own OpenAI or Anthropic key is stored encrypted (AES-GCM) and shown only by its last characters.
- The CLI key is saved in
~/.lefine/credentials.json, readable only by you (folder0700, file0600).LEFINE_TOKENtakes its place in CI, so CI never needs the file. - The CLI does not read a project's
.env. A cloned repo cannot point your key at another server. - An MCP key sees only the modules its workspace turned on and the access it was given. See MCP server.
Texts you load
- Your app loads texts by its app id (
app_...), never by a name, so a rename cannot break or redirect it. - The SDK checks each file against the manifest (key count and SHA-256). A file that does not match is not used; the last checked copy stays.
- A renamed slug keeps working and redirects to the new one. The old name stays reserved.
Webhooks
Each delivery has three headers: X-Lefine-Signature (t=<unix seconds>,v1=<hex>, HMAC-SHA256 over <t>.<body>), X-Lefine-Event, and X-Lefine-Id. The id is the same on every retry, so you can drop repeats. You can rotate the secret in Settings → Webhooks.
Your workspace
- Only an owner can delete a workspace, and not their only one.
- A deleted workspace's name is held for 30 days, then freed.
- Account data is kept while the account exists, plus 30 days after a deletion request (Privacy).