Tenant and security model

Draft 0.1 — for review

Tenant model and mastering

The tenant registry is the authoritative control-plane record of each organization allowed to use the platform. It is not inferred from an email suffix, display name, repository name, or request parameter.

Each tenant record should contain:

Tenant onboarding requires an authorized administrator, an out-of-band verification step, an explicit scope proposal, and a separate approval. Tenant IDs and resource IDs are read from verified identity/provider data, not accepted as authoritative client input. Registry changes are audited and privileged changes require two-person review.

Identity claims mapped to a tenant boundary

Authentication and authorization

Human operators

Agent and platform services

Model and source-control access

Customer tenant access

No customer tenant access is enabled for the current demo. If later approved, use Azure Lighthouse or a customer-operated deployment runner, with customer consent and narrowly delegated roles at an agreed resource-group scope. Avoid storing customer credentials in the platform. Do not request directory-wide admin consent for routine deployments.

Customer users may authenticate through a verified, explicitly provisioned Entra tenant. The platform must bind each authenticated identity to a registry tenant before any data access. A valid token from an arbitrary Entra tenant does not create membership.

Data isolation and "tenant mastering"

Treat tenant context as a server-owned security label that follows a request through the API, queue, agent session, storage, logs and deployment job. Every data access is filtered by the resolved tenant ID; missing or ambiguous tenant context fails closed.

Model/tool threat controls

Assume prompt injection, malicious repository content, compromised dependencies and unsafe model output. Use typed tool inputs, path normalization, per-session workspace isolation, dependency and IaC scans, outbound-network restrictions, request/time/resource limits, immutable artifacts and human approval. A human approval must identify the exact digest and target scope; it is not blanket permission for future plans.

The model must not be able to:

Public documentation site

The architecture site is intentionally public and static. It must be generated only from sanitized Markdown and static diagrams. It has no secret-bearing configuration, API, forms, analytics, external scripts or customer data. Publish manually from the agent console using a deployment token retrieved at runtime; never write the token to source, logs or generated files. Review the build output and scan for credential patterns before publishing.

Incident response

Provide kill switches to disable new sessions, revoke model/source tokens, suspend a tenant, disable the deployment identity and stop pending jobs. Preserve immutable audit metadata, rotate affected credentials, identify exposed tenant scopes, and notify the responsible operator. Recovery procedures must not restore a suspended tenant's access automatically.