Security and limits
Tenant isolation
Every tenant-scoped API derives the tenant from the authenticated session or token. Tenant IDs in paths are checked against the caller's scope. Credentials, usage, audit and connector installations are tenant-scoped.
Credentials
- Stored encrypted with
CREDENTIAL_KEY. - Write-only through the console and API.
- Never included in agent responses, logs or test output.
- Connector installations and agents use separate credential records.
Token types
| Token | Scope |
|---|---|
| Door token | One tenant, one door, one surface, explicit scopes |
| Console session | Tenant console APIs |
| Platform session | Platform admin APIs |
| SCIM token | Tenant provisioning only |
| OAuth client | Client-credentials access to a door |
Audit
Route, ask, action, fan-out, agent, door, connector and platform mutation events are audited. Audit records form a hash chain and can be anchored for external verification.
Trial and plan limits
Limits include:
- routes per day
- actions per session and action steps
- agent calls
- fan-out children
- sessions and concurrent sessions
- active agents and published doors
- tenant request rate
Limit responses use trial_limit_reached, quota_exceeded or rate_limited.
Connector safety
- No arbitrary tenant code executes in the gateway.
- Templates are data with a fixed set of variables.
- Connector definitions are tenant-private until platform review.
- URL/egress allowlisting and SSRF hardening are planned; do not expose internal metadata endpoints through connectors.
- MCP/A2A currently use endpoint trust rather than per-connector auth headers.
Reporting
Include the request ID, tenant ID, door and approximate time. Never include raw provider credentials in an issue.