Documentation
Security overview
Written to be forwarded. If you are filling in a vendor questionnaire about Butterflat, this page is the answer sheet.
Certifications such as SOC 2 are on the roadmap rather than in hand. If your procurement process requires one, tell us early and we will work through it with you.
Tenancy: what a workspace actually is
- Tapestry
- One deployment, and a workspace is a tenant identity carried on every request. Every node in the graph and every row in the database is keyed by it, and the server binds the scope itself, a query that tries to name a workspace of its own is refused outright, not filtered. Isolation has mandatory tests, written so that un-scoping the query makes them fail.
- Terracotta
- One Kubernetes namespace per workspace. Agents, tasks, roles, service accounts and secrets are all namespace-scoped, and a signed session carries the list of namespaces it may touch. Each namespace gets a resource quota, a limit range, a baseline network policy, a sandbox policy and Pod Security Standards labels, baseline enforced, restricted audited, stamped at creation rather than by a later reconcile.
Access control
- Terracotta has three roles: admin, operator and viewer. Enforcement is central middleware rather than per-handler checks, reads need viewer, changes need operator, and RBAC objects, secrets, quotas and suspension need admin. A session that names a workspace it was not granted is refused before any handler sees it.
- Creating a workspace requires an administrator with no namespace restriction at all. An admin scoped to one workspace is a workspace admin and cannot mint another.
- Console sessions are short-lived, the access token lasts minutes, and refreshing rotates the refresh token so a stolen one is single-use. Passwords are stored with PBKDF2-HMAC-SHA256 at 600,000 iterations and a per-user salt.
- Tapestry has OWNER, ADMIN and MEMBER, with a rank rule: you may only confer or revoke a role strictly below your own. The last OWNER of a workspace cannot be removed by anybody, us included.
- Agent permissions are a separate layer with its own default: deny. The first matching rule wins, no matching rule means no, an outbound HTTP call requires the URL to be explicitly allowed, and a child agent may only ever narrow what its parent had.
Honest gaps. Tapestry supports per-workspace Google single sign-on over OIDC, on every plan, authentication strength is not an upsell, but Google is the only provider in that list today, and there is no SAML anywhere. The Terracotta console has no single sign-on at all yet, neither product offers MFA, and the console keeps its refresh token in browser storage. If any of those is a blocker for you, say so, they are roadmap items, not disagreements.
Encryption
In transit, everything is TLS, terminated at the ingress with automatically renewed certificates. At rest the two products differ, and the difference is worth stating precisely.
- Tapestry
- Third-party credentials, Jira OAuth access and refresh tokens, and per-workspace SSO client secrets, are encrypted in the database with XChaCha20-Poly1305 under a deployment key. Each ciphertext is bound to its own row and column, so a value moved between workspaces, or swapped between the two columns of one row, fails to decrypt rather than being quietly accepted.
- Terracotta
- Secrets are Kubernetes Secrets in your own namespace. Confidentiality at rest is the cluster's own storage encryption, there is no second application-layer cipher on top, and we would rather say that than imply one. Values are write-only through the API and the console: neither ever hands a stored secret back.
- There is deliberately no plaintext fallback. With no encryption key configured, writes refuse loudly instead of degrading to storing a token in the clear.
- Rotating the encryption key means re-entering the credential, reconnecting Jira, not re-wrapping the stored one. A process capable of decrypting every secret in order to re-encrypt it is the exact thing the encryption exists to prevent, so it does not exist.
- Passwords and invite tokens are hashed, never stored recoverably. An invite is a bearer credential, so a leaked database must not be replayable into an account takeover.
- Agent pods do not automount a Kubernetes API token, so a compromised agent has no cluster credential to reach for.
Audit trails
Three separate records exist, for three different questions, and all three are deliberate about what they do not store.
- Security events
- Tapestry records sign-ins and failed sign-ins, membership grants and revocations, workspace creation and deletion, SSO reconfiguration and plan changes. The table is append-only, enforced by a database trigger that refuses updates and deletes outright. A workspace admin pages their own trail; the trail deliberately has no foreign key to the workspace, so it survives the workspace it describes.
- Every tool call
- Terracotta's gateway writes one line per admission decision, agent, tool, action type, decision, reason, into a hash-chained log: each line carries a sequence number and the hash of the previous line's exact bytes, so an edited or removed line is detectable. Verification is a command.
- Per task
- The same decisions are also written to a database table scoped to your workspace and readable per task in the console, which is the one your own team will actually use.
- Parameters are stored as a SHA-256 digest, not verbatim, so an audit trail cannot become a second copy of the secrets that passed through it. Shell commands are the deliberate exception, they are recorded in full, because a shell command with its arguments elided is not evidence of anything.
- Approvals are the one place raw parameters are kept, because a human has to read them to decide. They live in your workspace, and they are what a reviewer is looking at when they click approve.
- The actor on a security event is a stable pseudonymous identifier, never an email address. Emails appear only where the attempted identity is itself the evidence, which is failed sign-ins.
Two honest limits. The chain makes tampering evident, not impossible, pair it with log shipping if your regime needs prevention rather than detection. And an audit write that fails does not block the action it was recording: it is counted and alerted instead, because a logging outage that halts every agent in the fleet is the wrong failure. Likewise, the in-database append-only trigger is honest about its own ceiling, anyone with database administration rights could drop it, which is what any in-database control can promise and no more.
Agent confinement
- Every agent container runs as a non-root user, with a read-only root filesystem, no privilege escalation, all Linux capabilities dropped, and the default seccomp profile applied.
- The baseline network policy allows ingress only from within your own namespace, and egress only to DNS, the Terracotta gateway and HTTPS, with the cluster service range carved out, so port 443 is not a route to the Kubernetes API server.
- Shell access is off unless a sandbox policy turns it on, and when it is on it takes an allowlist of command prefixes, a denylist evaluated first, a concurrent-process cap and a process lifetime.
- Manifests an agent tries to deploy are checked for host networking, host PID and a named set of dangerous capabilities, independently of what its RBAC rules allow.
Domain-name egress allowlists are intent, not enforcement. Kubernetes network policy matches on IP addresses, so a policy naming domains needs an FQDN-aware layer in the cluster to actually bite. And the optional browser sidecar runs Chromium with its own internal sandbox disabled, which is the standard trade-off for running it in a container and is worth knowing before you enable it.
Data retention and deletion
- A suspended workspace stays readable and exportable. Suspension is a billing state, not a punishment, and the data is still yours.
- After cancellation, data is retained for thirty days and then deleted. The delete is performed deliberately with a human approving it.
- Neither product has a self-serve endpoint that destroys a workspace, and Terracotta's API server is not even granted permission to delete a namespace. De-provisioning is a deliberate human operation on purpose: an API request should not be able to tear down a customer's environment.
- Ask us for an earlier erasure and a person will do it. There is no automated erasure workflow today, and rotated agent audit logs are pruned by size rather than by age, if you need a retention window enforced to a date, that is a conversation to have before you sign, not after.
Model keys: we do not resell them
Two products, two honest answers, and neither is "we buy capacity wholesale and sell you a key".
- Terracotta
- The provider key is yours. It is stored as a secret in your own namespace, referenced by the agent, and never returned by the API. We do not proxy your model calls, the gateway sees the tool calls, not a resold credential.
- Tapestry, hosted
- The model call is made with our key, so the cost is genuinely ours and we meter what you use, in tokens, and bill overage at the published rate. We are selling the feature and recovering its cost, not marking up an API key.
- Dedicated
- The provider account is yours. Nothing is metered and the product does not ration it.
The credentials we do hold are scoped to one job each. Provider keys are separated by purpose, the fulfilment agent does not share a key with customer workloads, and carry provider-side hard spend limits. The Stripe credential the products hold is a restricted key that can write billing meter events and nothing else, because it is exercised on the path of every model call and its blast radius should be exactly one permission.
Where it runs
The hosted platform runs on Google Kubernetes Engine in a single region today, with a managed Postgres instance and, for Tapestry, a graph database alongside it. If you need a specific region or data residency guarantee, that is a Dedicated conversation and we would rather have it up front than promise something the shared platform cannot do.
It runs there for everybody, including the free Community plan, which you create for yourself at id.butterflat.io on the same platform. We do not distribute the software for you to run: there is no public image, no public chart repository and no community edition to install. The Helm charts go to Dedicated customers under an Enterprise contract and nowhere else, which is worth knowing before a questionnaire asks you to describe our supply chain, the artefact you would be diligencing is one we deploy, not one you download.