Mechanisms, not assurances
This page describes what the implementation enforces and what a deployment must configure. It deliberately makes no certification or guarantee claims — those would not be verifiable from this codebase.
Tenant isolation
Two independent gates on every operation: the store's rules and the callable that owns it.
- Deny by default
- Firestore and Storage rules both begin with a global deny. Every allowance below it is a narrow predicate, not a wildcard.
- Scoped by field, checked on write
- Collections are flat with an orgId field. Reads match the caller's membership for that orgId; updates assert orgId cannot change.
- Role sets, not scalar roles
- Authorization intersects membership role ids with the required set (hasAnyRole). Custom roles participate through a custom.<slug> namespace.
- Server-only surfaces stay server-only
- SSO configuration, SSO state, domain claims, collection batches and exports are writable only by the Admin SDK path.
App Check
Attestation is configuration, and the configuration refuses an unsafe production default.
The functions configuration validates AURELITH_ENFORCE_APP_CHECK with a production default of enabled and refuses to start in production when enforcement is disabled. A wildcard CORS origin is rejected when enforcement is on.
46 callables additionally consume a single-use App Check token (consumeAppCheckToken), which makes token replay across calls ineffective. A missing or invalid token fails with APP_CHECK_FAILED.
Audit
Append-only in practice: each entry commits to its predecessor.
Audit events carry the actor, action, target, outcome, correlation id and an IP where applicable. The chain hash is sha256(prevHash || canonical(fields)) per scope with a monotonic sequence, so reordering, truncation or edits are detectable. Snapshots before and after a change are stored as hashes only.
Audit history is retained for 400 days under a global retention policy enforced by the daily purge job. Plans also declare audit.retention.days (7 to 1095); those per-plan values are display data today and are not yet enforced. Export is gated by audit.export.enabled.
Payments
A payment becomes an entitlement only after verification, inside one transaction.
- Server-side pricing
- The client selects a plan and network. Price, recipient, token and policy are resolved server-side; the client echo is only used to detect a stale quote.
- Chain reads
- EVM and Solana observations are validated for amount, asset, recipient, confirmations and network before settlement.
- Deterministic ledger ids
- A ledger document id derived from org, entitlement and intent rejects replays at the database level.
- Atomic outcome
- Ledger, intent state, entitlements, subscription period and audit entry succeed or fail together.
Abuse limits
Budgets are charged in one transaction across a per-user and a per-organisation bucket; exhaustion returns RATE_LIMITED, never a fail-open.
| Tier | Per user | Per org |
|---|---|---|
| callable.read | 60/min | 600/min |
| callable.write | 20/min | 200/min |
| inference.begin | 30/min, 300/hour | 300/min, 3000/hour |
| workflow.start | 10/min | 100/min |
| payment.intent | 5/min | 50/min |
| integration.connect | 5/hour | 50/hour |
| upload.sign | 20/min | 200/min |
An hourly sweep flags abuse signals (repeated rate-limit rejections, authentication failures, failed payments) for operators with enforcement: none. There is no automatic ban; changing a user's status remains the only enforcement path.
Not claimed
If it is not on this page, treat it as absent.
No compliance certification, penetration-test attestation, uptime SLA or bug-bounty programme is claimed. Logical deletion is implemented with a 30-day window for account deletion requests; physical media destruction and backup retention are properties of the chosen cloud deployment, not of this codebase.
Security reports: use the contact address and mark the message “security”. Please do not open a public issue for a vulnerability.
See the gates in action
Open the workspace with no backend configured and observe that every protected surface states its requirement instead of rendering an empty success.