# The security model

Capabilities, two boundaries, and fail-closed defaults — the platform's actual argument, not a compliance page.

Most platforms secure apps by asking developers to remember things. This
one is built so the dangerous states are hard to represent. Three ideas
carry the whole model.

## 1. No ambient authority

An app holds **nothing by default**: no filesystem, no raw network
sockets, no database connection, no cloud credentials in environment
variables. Everything an app can do arrives as a **binding** on `env`, and
every binding exists only because the deploy manifest declared it. The
manifest is a capability list you can read in one screen — what an app can
touch is its diff, not its dependency tree.

This is also why the platform's high-assurance story is structural rather
than promissory: an installation profile that does not link a capability
at all (outbound HTTP, say) makes that behavior *impossible* for every app
it runs — not forbidden by policy, but absent from the runtime.

## 2. Two boundaries, never conflated

- **Caller → app.** Who may talk to the app at all. Declared in the
  manifest (`auth: required | public | token`), enforced by the host
  before app code runs. See [Authentication](/auth/overview.md).
- **App → data.** What a request may touch. Every data operation goes
  through [one governed door](/data/overview.md) carrying a principal — the
  signed-in user's identity on authenticated routes, the app's own only
  where granted. Row-level security and the organization's governance
  gates apply per call, in the data plane, where app code cannot skip
  them.

An app being trusted with data says nothing about who may call it, and
being reachable says nothing about what a caller may read. Keeping the
two independent is what makes each of them simple.

## 3. Fail closed, everywhere

The absence of configuration always means the locked state:

| Absent | Means |
| --- | --- |
| `auth` | Sign-in required |
| `app_data` | The app's own principal has no data access |
| `egress` | No outbound network at all |
| a user session (on `required`) | The request never reaches app code |
| the user channel (for data ops) | Data capabilities are absent — never a fallback to wider app credentials |

And a manifest with an unknown field is a deploy-time **error** — a typo'd
`auth` key cannot produce a default-open surprise.

## Isolation

Server code runs in an isolate created for one request and discarded after
it. Nothing is shared between requests, between apps, or between an app
and the host: no memory to leak a previous visitor from, no warm state to
poison. Outbound traffic — where granted at all — leaves through an
egress gate that enforces the manifest's allowlist and the installation's
own ceiling, whichever is narrower.

None of this is a hardening guide you apply. It is the shape of the
platform, and the reason a review of an app on it starts from one short
manifest instead of an infrastructure diagram.
