Identity and access
- Supabase authentication with organization claim resolution.
- Server-side role enforcement for every protected route.
- Settings support for SSO/SAML onboarding paths.
Trust
Security controls are built into every savings workflow: identity, tenancy, secret handling and immutable proof trails.
01
Authenticate
Supabase session is read server-side and user identity is resolved before dashboard data loads.
02
Resolve organization
The request is matched to the active organization and membership is validated.
03
Authorize role
The server checks whether the user role can access the requested domain or action.
04
Scope data
Database reads and writes include organizationId so tenant data cannot bleed across accounts.
05
Audit mutation
State-changing operations emit an audit event with actor, timestamp, result and correlation metadata.
TurboFinOps separates concerns across five layers so that customer data, credentials and state-changing operations each cross a clearly enforced boundary. Each layer carries its own guarantees and failure modes.
01 · Edge and identity
Trust boundary 1 — public internet
Boundary: Only authenticated, organization-scoped requests cross this boundary into the control plane.
02 · Control plane
NestJS API — authoritative for permissions and policy
Boundary: No long-running cloud calls run here. The control plane only enqueues work and reads results.
03 · Execution plane
BullMQ workers — scanners, pricing, actions
Boundary: Workers operate on jobs already validated by the control plane. Cloud credentials are decrypted only inside the worker process.
04 · Data plane
PostgreSQL + KMS + immutable audit
Boundary: No process other than the API and authorized workers can reach the data plane. Backups encrypted with the same KMS hierarchy.
05 · Governance
Cross-cutting controls
Boundary: Governance controls apply to all layers above. Bypass of any control is itself an auditable event.
Least privilege cloud access
Start with read-only discovery credentials and add write permissions only for approved action types.
Secret rotation
Rotate provider credentials through connection workflows and verify scan health after rotation.
Exception review
Suppressed findings and action overrides should include a reason and be reviewed during audit cycles.
Break-glass discipline
Manual overrides should be time-bounded, assigned to an Admin and backed by audit evidence.
Connect one AWS, Azure or GCP scope, approve the safest savings actions, and give finance a receipt when the savings verify.