The agent is untrusted code. We built the product around that.
An autonomous coding agent clones your repository and executes arbitrary commands against it. That is the same risk profile as a CI runner, and we treat it that way. This page describes the isolation architecture in enough detail to forward to your security team. Questions and disclosures: security@fragonstudios.com.
Threat model
Two things must never happen: an agent run touching anything outside its own sandbox, and one customer's data reaching another customer. Everything below exists to enforce those two properties, fail-closed.
One qualifying fact before you read 3,000 words of architecture: FragonForge is a hosted service and connects to your forge over the internet. An instance that is only reachable inside your VPN cannot be connected today; details in the Reachability section below.
- EU data residency: yes
- Per-run isolation: yes
- Audit log export: yes
- TOTP 2FA: yes
- SAML SSO: yes
- SCIM provisioning: yes
- SOC 2 / ISO 27001: not yet
Data runs and is stored in the EU; model calls go to the provider you choose, or through OpenRouter, Inc. (US) on FragonForge AI.
On this page
your forge
calls our public webhook URL; we call its API over HTTPS
control plane
clone, push, and MR calls happen here
forge token + LLM key live here
sandbox
per-run Kubernetes job, egress: deny
zero credentials inside
gateway + LLM proxy
per-run token; your key attached on the way out
registry door
package downloads, through our trusted plane only
your LLM provider
your contract, your bill; bodies are never stored by us
package registries
npm, PyPI, NuGet, Go, Cargo, Maven, Packagist, RubyGems
Part 1
Keeping the run contained
What the agent can reach while it works, and what stops it reaching further.
Execution isolation
Each run executes in a dedicated Kubernetes job, created for that run and destroyed after it.
Hardened runtimes
Every plan runs sandboxes under Kata Containers, which put each run in its own lightweight VM with a separate guest kernel. It is a floor, not a tier feature: Free has open signup and is the likeliest source of untrusted code, so it gets the same boundary as Business.
Non-root, pinned, scanned
The sandbox image runs as a non-root user, is pinned by digest (not by tag), and is vulnerability-scanned with Trivy in CI before it can be deployed.
Real toolchains, no secrets
The image ships compilers and test runners. It ships no credentials of any kind.
The limit
No sandbox is escape-proof. Kata has had CVEs over the years, like every isolation layer. That is why the design assumes the sandbox can turn hostile: no credentials inside it, default-deny networking around it, and two doors out, both on our trusted plane. The runtime is one layer, not the whole defense.
Network isolation
Default-deny egress
A Kubernetes NetworkPolicy denies all outbound traffic from the sandbox by default, enforced by the Calico policy engine. We are aware that some CNIs silently ignore NetworkPolicy; ours does not, and our isolation tests run against a policy-enforcing CNI for exactly that reason.
Two doors out
Besides cluster DNS, which is scoped to the in-cluster resolver, the sandbox may reach exactly two destinations, both on our trusted plane: the platform gateway, which exposes repository tools (checkout and diff push, executed server-side) and the LLM egress proxy, and the registry door for package downloads. Cloud metadata, the Kubernetes API and the public internet are unreachable, and probe jobs running against the live cluster check that at the packet level.
Package downloads through the registry door
A run reaches package registries only through a door on our trusted plane, never directly. Dependency restore is supported for npm, PyPI, NuGet, Go, Cargo, Maven (Maven Central), Composer (Packagist) and RubyGems; for any other ecosystem the dependencies have to be in the repository. The sandbox image carries the toolchains, never your project's packages. A run that adds a dependency or moves one to a different version does not merge on its own; it waits for a person. Every run writes a registry reach line into its own log that names the ecosystems it could route to. Private feeds and mirrors, such as a company Nexus or a private gem server, are not reached.
Per-run tokens
The sandbox authenticates to the gateway with an opaque per-run token: 256-bit, stored only as a hash, time-limited, and revoked the moment the run reaches a terminal state.
Proxy discipline
The LLM proxy allows only the configured provider endpoints, guards against SSRF, and strips any inbound authentication headers before forwarding.
The sandbox holds no credentials
This is the core design decision. Cloning, pushing, and opening the merge request happen on the control plane, outside the sandbox. The agent calls the egress proxy, and the proxy attaches your key on the way out, scoped to the provider that was fixed when the run token was minted.
The guarantee
Your forge token never enters the sandbox. Your LLM key never enters the sandbox either. A compromised run has nothing to steal and no route to the public internet.
Untrusted text is data, not instructions
An issue body, a README, a merge-request comment and an analyzer finding all reach the model on every run, and none of them were necessarily written by someone you trust. That makes them the obvious place to hide an instruction for the agent. They are handled as data:
Fenced on both paths, not just one
Repository, issue, merge-request and finding text is delimiter-fenced before it reaches the model, on the planner path and on the coder path. A defense that covers only the path somebody remembered is not a defense.
Embedded delimiters are defanged
Text that carries the fence markers itself cannot close the fence and start issuing orders, which is the first thing anyone tries.
Who can start a run
Re-triggering from a merge-request comment checks first that the commenter has write access on your forge. A trigger label or an issue comment that mentions the agent starts a run for anyone your forge lets do that; there is no allowlist and no membership check. On a public repository, keep label rights with maintainers and change the mention to something not guessable.
The limit
None of this makes a model immune, and we are not going to claim it does. That is why the mitigation sits behind the sandbox rather than in front of it: an instruction that does get through is still executing with no credentials and no route to the public internet, and unless you opted into autonomous merge, a merge request you review is the only way to reach your default branch.
Tenant isolation
FragonForge is multi-tenant, and tenant isolation is enforced in depth, not by convention:
- Query-level scoping. Every tenant-scoped row carries a tenant ID, and the data layer applies a global filter to every query. Inserts are stamped centrally, not by hand.
- Fail-closed context. Tenant context starts empty. No tenant means zero rows, not all rows. Background jobs re-establish the tenant from the claimed work item before any data access.
- Compiler-enforced exceptions. Bypassing the tenant filter without a declared, categorized justification is a build error, enforced by a custom static analyzer. The list of exceptions is auditable.
- Leak tests as build gates. Automated two-tenant tests assert that data, credentials, clone URLs, and search indexes never cross tenants. The build fails if any tenant-scoped entity is missing its filter.
- Database-enforced links. Foreign keys refuse a link between two tenants' rows.
Part 2
Your code and your keys
Where the material you hand us is stored, who can decrypt it, and how long it stays.
Credentials and encryption
- Each organization has its own data encryption key. LLM API keys, forge tokens, webhook secrets, and TOTP seeds are encrypted with it (AES-GCM).
- Inbound webhooks are verified twice: a signed per-tenant URL token and the forge's payload signature against your own webhook secret, compared in constant time.
- Agent output is written to run logs through a secret-redaction filter.
Where your code lives, and for how long
The LLM proxy is a pass-through
It forwards the agent's requests and streams the responses back, and it does not log or persist request or response bodies, on your own key or on FragonForge AI. What it does record is the counters: token counts, the model, the run, and the cost where the model has a price, in US dollars on your own key and in euros on FragonForge AI. That is what the cost dashboard and the spend cap on your own keys read. The bodies stay unlogged, which is also why an investigation after the fact has the same limit we accept for ourselves.
Sandbox workspaces are ephemeral
The repository clone inside the sandbox lives on a pod-local volume that dies with the pod; finished jobs are reaped within minutes. The control plane's own working clone is deleted after every run.
Run logs hold agent output, not your repository
The tenant-visible run log stores the agent's own output, passed through a secret-redaction filter and capped at 64 KiB.
The code search index is the deliberate exception
Every repository gets a code index, on every plan: a symbol graph of names, files, line spans and signatures that the agent searches instead of pasting your code into a prompt. Search answers are locations, never source text. On paid plans, semantic search adds embeddings of declarations only (names, signatures, doc comments and file paths, never function bodies). The index is tenant-isolated and deleted with everything else when you offboard.
Telemetry carries no content
Traces and metrics record IDs, durations, and token counts. Emails we send never contain repository content.
Account security
- TOTP two-factor authentication, with recovery codes. Enrollment renders the QR code locally, so the secret does not leave the page.
- Scoped personal access tokens for API and CLI use, bounded by the owner's live role.
- Session management: list and revoke sessions, revocation on password change, server-side logout. Refresh tokens live in HttpOnly cookies, not in JavaScript-readable storage.
- Role-based access control (Owner, Admin, Member, Viewer), fail-closed.
- Sensitive actions (logins, credential and role changes, run and billing events) are written to a tenant-scoped audit log, with filtering in the dashboard. Every role can read it, Viewer included, and nobody can edit or delete an entry. You export your own trail over a date window as CSV for a spreadsheet, or as cursor-paged NDJSON to feed a SIEM. It is your data to pull, not a support request. For real-time delivery, an outbound webhook can stream every audit entry as it is written.
- Our support can open your organization only with a one-time code sent by email, for at most an hour, and the visit's start, end and every change appear in your own audit log.
- Sign-in is email and password, or your own SAML identity provider. Your Owner uploads the IdP metadata in the dashboard and SAML login is live for that organization; no ticket to us, no scheduling call.
- SCIM 2.0 provisioning against the same setup: your directory creates, updates, and deactivates users, and provisioned users consume seats like any other. The SCIM bearer token is minted and revoked by your Owner.
Data residency and lifecycle
FragonForge runs and stores your data on servers inside the EU. Two exceptions: the model provider you choose yourself - when you add your own key, your code goes to that provider's endpoint, wherever it runs - and FragonForge AI runs, which go through the model gateway of OpenRouter, Inc., a US company. OpenRouter is listed on our sub-processor page.
The guarantee
The platform runs on dedicated servers at Hetzner in Falkenstein, Germany, on every plan, with no multi-region deployment.
- Databases have point-in-time-recovery backups to EU object storage.
- Run history retention follows your plan (30 days to 1 year). A downgrade does not shorten what you already have: every purgeable row carries the retention window that was in force when it was written, and a 30-day grace floor sits under any downgrade, so re-subscribing inside it restores everything.
- A purge that looks anomalous parks for an operator to review instead of running. Deleting too little is a bug we can fix tomorrow; deleting too much is not.
- Offboarding is a real purge: database rows, the code search index, stored keys and tokens, and billing links. An Owner does it under Security > Export and close, right after the data export.
Part 3
Operating the service
The limits we run into in practice, what we depend on, and what we have not proven yet.
Reachability
FragonForge is a hosted service. It connects to your forge's API from our infrastructure, over HTTPS, with the per-organization token you provide. That means your GitLab, GitHub Enterprise, Gitea, or Forgejo instance must be reachable from outside your network. An instance that is only reachable inside a VPN or private network cannot be connected today. A quick self-check: if curl -sI https://your-instance/ answers from a machine outside your network (a phone hotspot works), the instance is reachable. There is no workaround for a VPN-only instance today. If that constraint rules you out, tell us.
Webhooks flow the other way: your forge calls our public webhook URL, the same as any other webhook integration. Nothing connects into your network.
Supply chain
- Dependency audits gate the build: a moderate-or-higher advisory in any dependency fails compilation.
- Container images are scanned before deployment; critical findings block the release.
- The vulnerability scanners inside the sandbox read copies of the Trivy and Go vulnerability databases hosted in our cluster, so no package name leaves the cluster for a lookup. Semgrep runs with its metrics off.
Independent verification
We hold no SOC 2 or ISO 27001 certification today, and we will not pretend otherwise. What we can offer your review now: this architecture description, answers to your vendor security questionnaire, and direct access to the people who built the system. If your process needs a specific document, ask: security@fragonstudios.com.
In the app, Security > Boundary answers a vendor questionnaire for one repository at a time, as a link you can send.
What we ask of you
Honest boundaries, because they matter more to a reviewer than promises:
Review the merge request
By default FragonForge never merges its own work; the MR review is a designed-in safety valve, not a missing feature. Autonomous merge is an opt-in per goal or branch fix, available on paid plans for private repositories. It applies only when the quality gate explicitly passed on an analysis of the exact commit, and a change that adds a network or subprocess call, touches CI, auth, secrets or a dependency file, or adds or moves a package still waits for a person.
Scope the forge token
Connect a token scoped to the repositories you actually want automated, and rotate it on your normal schedule.
Set a spend cap, and a limit with your provider
Set your organization's monthly and daily cap in the app before you paste a key, and keep a hard limit in your provider's console too. The app records every model call a run makes through our egress proxy, but a run already in progress can finish past the cap, and a call on a model without a price is counted as unpriced, not as zero.
Found something? security@fragonstudios.com. We answer.