Repository Public
1# ADR-0006 — Tenancy model and dashboard authentication in V123Status: accepted, 2026-12-04. To be revisited before any third party is given a key.45- Data is tenant-scoped everywhere (every query filters on `tenant_id`; cross-tenant access answers6 404). Tests cover it.7- **Operator-wide actions are attached to the `admin` scope**: source policies and kill switches8 (`PUT /v1/policies`), worker drain, worker registry. In V1 there is one operator; an `admin` key of9 any tenant can therefore engage a kill switch for the whole fleet. Before onboarding a second10 organisation, split a separate `operator` scope.11- Dashboard sign-in exchanges an API key for an HttpOnly, SameSite=Strict session cookie with a CSRF12 token. **Passkeys / an external identity provider are not implemented.** `identity.spboucher.ai`13 exists in the fleet and is the candidate; integrating it needs its audit and the owner's approval.14- Worker identity is a dedicated `worker` key (hashed, revocable, rotatable) over the private15 network. **mTLS between workers and gateway is not implemented**; the internal API must not be16 routed publicly (the reverse-proxy route excludes `/internal/`).17