Skip to main content

Network and security architecture

Use the controls to enlarge the diagram. Pan horizontally and vertically when zoomed.

Trust boundaries

BoundaryPrimary controls
Internet to static applicationHTTPS, Cloudflare edge delivery, baseline DDoS mitigation, and configured edge rules
Browser to managed backendTLS, publishable client identity, signed user session, request validation, grants, and row-level policies
Managed gateway to dataDatabase roles, object permissions, row-level policies, constraints, and restricted trusted operations
Serverless workflow to external providerServer-side credentials, provider authentication, input minimisation, timeouts, callback verification, and auditable status
Application to monitoringConfigured diagnostic context, source-map handling, masking, sampling, retention, and access controls

Segmentation model

The static delivery plane is separated from the stateful backend. Ordinary browsers do not receive database passwords or privileged service credentials. Application data access is mediated by the managed gateway and database authorization. Trusted serverless operations are an elevated boundary. Selected operations revalidate the caller, tenant, role, target, and input; complete operation coverage is not available.

Allowed communication paths

SourceDestinationProtocol and identityPermitted purposeDefault failure behavior
User browserCloudflare edgeHTTPS with certificate validationLoad the approved static releaseRefuse insecure transport and expose no backend credential
Browser applicationSupabase gatewayTLS, publishable client context, and signed user sessionAuthentication, policy-controlled data, object, realtime, and approved function requestsDeny protected access without a valid session or policy result
Trusted functionPostgreSQL or object storageProvider-internal service context and scoped server credentialPrivileged transaction, scheduled work, or object processingAbort on failed actor, tenant, role, input, or ownership validation
Trusted functionApproved providerTLS and provider-specific credentialMessaging, payment, quote, credit, call, or reporting workflowRecord an explicit provider failure or indeterminate state; do not assume completion
Approved providerTrusted callbackHTTPS plus signature, shared secret, or equivalent authenticity proofDeliver a correlated event or final provider stateReject unverifiable or replayed requests before business mutation
Browser and backendMonitoringTLS with project-scoped ingestion contextErrors, traces, release, and selected diagnostic telemetryApplication correctness does not depend on monitoring availability

Network threat treatment

ThreatArchitectural treatment
Direct database exposureApplication traffic enters through managed APIs and policies; no application-owned public database listener is part of the topology
Browser tamperingBrowser state and route visibility are non-authoritative; protected operations re-evaluate identity and authorization at the backend
Cross-tenant accessSigned identity, tenant membership, hierarchy, ownership, and row policy reduce every ordinary request to the permitted record set
Credential disclosurePublic clients receive only publishable configuration; provider and privileged credentials remain in trusted configuration
Callback forgeryProvider callbacks are treated as untrusted until authenticity, correlation, freshness, and idempotency checks pass
Data exfiltration through integrationsDestinations are approved by purpose; payloads are minimized and server-mediated where credentials or sensitive business state are involved
Denial of service and abuseProvider baselines address network availability; application rate limits and business-flow controls address account-level abuse

Limitations

This document intentionally omits domains, IP addresses, account identifiers, provider endpoints, internal object names, and secrets. It does not prove current DNS, WAF, network restriction, TLS-policy, or egress-allowlist configuration; those require account-level evidence.