Skip to main content

Hosting and cloud architecture

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

Hosting roles

PlaneProviderResponsibility
Build and deliveryCloudflare PagesCreates and serves the static application through the global edge network
Client runtimeUser browserExecutes the application, holds the configured session, and calls backend services
Managed backendSupabaseRoutes authentication, data, realtime, storage, and serverless requests
DatabaseSupabaseOperates the managed PostgreSQL system of record
Object storageSupabaseStores customer, policy, quote, and operational evidence
ObservabilitySentryReceives configured release and runtime telemetry

Request routing

  1. Cloudflare terminates the public HTTPS connection and serves the approved static release.
  2. The browser restores or creates an authentication session.
  3. Backend requests are sent over TLS to the managed gateway.
  4. The gateway routes requests to the appropriate managed service.
  5. Grants, row-level security, trusted operation checks, and storage policies evaluate access.
  6. Approved serverless workflows contact external providers and persist authorised output.

Availability and recovery boundaries

  • Static application rollback and data recovery are separate operations.
  • Reverting a frontend release does not revert database records, objects, backend functions, configuration, or secrets.
  • Provider backup entitlements do not by themselves prove that an application restore has been tested.
  • Account-level evidence is required to confirm production domains, deployment controls, web application firewall settings, access roles, and rollback exercises.

Deployment control sequence

PhaseTechnical operationSecurity and integrity decisionRetained evidence
Source approvalA reviewed source revision is selected for releaseReview findings, dependency risk, and unresolved exceptions are accepted before buildRevision, reviewers, checks, and approval
BuildCloudflare installs dependencies and produces browser assetsBuild configuration supplies public values only; privileged values remain outside browser outputBuild result, dependency resolution, and build logs
PublishThe immutable output becomes a versioned Pages deploymentThe candidate is not production until the production alias is assignedDeployment identifier and publication time
Smoke validationThe public route, static assets, authentication entry point, and managed-service reachability are checkedA release with missing assets, broken routing, or invalid configuration is rejectedValidation result and operator
ObserveError rate, failed requests, authentication behavior, and critical workflow signals are reviewedMaterial regression initiates incident handling or rollbackMonitoring window and decision
RollbackThe production alias is moved to a previous successful deploymentFrontend rollback is used only for browser-release defects; it does not reverse database stateSelected prior deployment, reason, and validation

Runtime dependency behavior

DependencyNormal pathFailure effectApplication treatment
Cloudflare PagesDelivers HTML, JavaScript, styles, images, and route fallbackNew or uncached sessions cannot load the application; already loaded sessions continue until refreshDisplay provider-level failure, avoid claiming backend loss, and restore a known-good deployment
Supabase AuthIssues, refreshes, and validates signed sessionsNew authentication and expired-session refresh failFail closed for protected functions and return the user to authentication after recovery
Data API and PostgreSQLReads and commits operational stateData-backed routes fail or become read-only depending on the workflowDo not fabricate success; preserve safe local input and retry only idempotent operations
Object storageUploads and retrieves policy or customer evidenceDocument-dependent workflows cannot completeRetain metadata state, expose an explicit document error, and avoid marking verification complete
Trusted functionsExecutes privileged, scheduled, and provider-facing operationsIndividual workflows fail while static navigation remains availableUse correlation evidence and bounded retry; reconcile external side effects before retrying
External providersPerforms communications, payment, quote, or automation activityProvider-specific operations remain pending or failPersist provider state separately from business completion and reconcile asynchronously

Shared responsibility

Control areaSaaS providerCloudflareSupabase
Application and dependenciesSource review, dependency selection, release approval
Static deliveryDomain, header, access, and rollback configurationOperates Pages and edge delivery
Browser securityApplication logic, session handling, requested security headersEnforces configured edge controlsIssues and validates sessions
Data model and accessSchema, grants, policies, trusted operations, retention decisionsOperates the managed platform
Monitoring and incidentsAlerting, triage, escalation, and customer communicationPlatform evidence and service statusPlatform evidence and service status

Evidence basis and limitations

This page is based on the reviewed application architecture, a read-only managed-backend inventory, provider documentation, and the supplied production-hosting context. It excludes account names, project identifiers, domains, environment variables, internal release details, and credentials.