Studio Manager is developed on main and continuously deployed to the dev environment. Security fixes land directly on main.
| Branch / Target | Supported |
|---|---|
main (api/, auth/, web/, mobile/, packages/, infra/) |
Yes |
| Feature or historical branches | No |
Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.
Instead, report them privately through GitHub Private Vulnerability Reporting:
Include:
- The affected component (
api,auth,web,mobile,infra, or CI workflows). - A clear description of the issue and its impact (for example, cross-tenant data access, privilege escalation, SSRF, or secret exposure).
- Minimal steps, request payloads, or configuration needed to reproduce it.
Full STRIDE boundaries, assets, controls, and open trade-offs are documented in the Threat Model. Key architectural controls include:
- Two-layer tenant isolation: PostgreSQL Row-Level Security bound per transaction from a Java 25
ScopedValueplus a startupRowLevelSecurityGuard(ADR 3), paired with Hibernate@TenantIddiscriminator filtering (ADR 21) and member-owner RLS on private glaze recipes and OAuth connections (ADR 17). - Audited cross-tenant and background work: Narrow
SECURITY DEFINERPostgreSQL functions (ADR 10) and explicitSystemActorprincipals with role ceilings (ADR 16). - Fine-grained studio RBAC: Named permissions enforced on every OpenAPI operation and controller method, verified by ratchet tests, with last-owner database locks and full access history (ADR 25).
- Identity & least-privilege assistants: Microsoft Entra External ID (ADR 7), optional GitHub OIDC bridge (ADR 20), hashed personal API tokens (ADR 19), and audience-fenced MCP OAuth 2.1 (ADR 26) where assistant mutations become human-approved proposals (ADR 22).
- Keyless infrastructure & encrypted tenant secrets: Azure Managed Identity for PostgreSQL, Blob Storage, Email, and Document Intelligence (ADR 5), GitHub OIDC for CI/CD (ADR 6), GCP Workload Identity Federation for Document AI (ADR 18), and AES-256-GCM keyring encryption (
SecretCipher) bound per tenant/record. - Untrusted input & outbound network guards: DNS-pinned
PublicAddressesSSRF protection on outbound webhooks (ADR 14) and Glazecalc share-link fetches, direct-to-blob SAS photo uploads (ADR 12), magic-byte and page-count checks on invoices, and schema-only LLM extraction with human confirmation.