Skip to main content

Application architecture diagram

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

Architectural interpretation

The application uses a browser-delivered client and a managed backend. Cloudflare serves an immutable static release; it does not host the operational database or application-owned server. The browser contains presentation, workflow orchestration, and early validation, but it remains an untrusted execution environment. Every request that reaches protected data is re-evaluated by the managed identity, database-policy, storage-policy, or trusted-operation boundary.

The backend separates identity, relational data, object storage, realtime delivery, and privileged execution. Ordinary browser traffic uses the signed user session and the public client context. Operations that require provider credentials, cross-record transactions, administrator privileges, scheduled execution, or verified callbacks execute in the trusted serverless boundary.

Component responsibilities

LayerResponsibility
Browser applicationUser interface, route gating, tenant-aware workflows, validation, and calls to managed services
Cloudflare PagesStatic application build delivery over Cloudflare's edge network
Supabase AuthAuthentication, session issuance, refresh, and identity lifecycle
Data API and approved database operationsControlled access to application data through grants, row-level security, and reviewed routines
PostgreSQLSystem of record for customer, policy, workflow, audit, and finance information
RealtimeSubscription-driven updates for selected operational state
Serverless functionsPrivileged workflows, webhooks, scheduled processing, and provider integrations
Object storageCustomer documents, policy evidence, generated material, and operational files
MonitoringErrors, traces, security-relevant events, and selected diagnostic telemetry

Request and control path

StepProcessing boundaryEnforced decisionResult
1Cloudflare edgeTLS termination, release selection, cache behavior, and configured edge policyVersioned application assets are returned to the browser
2Browser applicationRoute selection, field validation, workflow-state checks, and session presenceA structured service request is constructed; no authoritative access decision is made here
3Managed gatewayService routing, token parsing, and request admissionThe request reaches Auth, Data API, Storage, Realtime, or a trusted function
4Identity and policy planeSession validity, account eligibility, grants, tenant scope, hierarchy, ownership, and row policyThe request is allowed, denied, or reduced to the permitted record set
5Transaction boundaryConstraints, transaction logic, workflow invariants, and audit attributionState changes commit atomically or fail without a partial accepted result
6Provider boundaryServer-held credential use, outbound request validation, and callback verificationExternal effects are correlated with internal business state
7Observability boundaryError capture, trace correlation, provider logs, and incident triageDiagnostic evidence is available without becoming an authorization source

Current resilience status by failure domain

This table describes controls observed in the current implementation. It is not a target-state design. Available identifies a confirmed operating control. Partially available identifies a confirmed control with a material recovery or test gap. Not available identifies an absent control or absent verification evidence.

Failure domainStatusConfirmed presentNot confirmed or not availableCurrent operational effect
Static releasePartially availableCloudflare keeps versioned frontend deployments and a frontend release does not write operational backend dataA retained rollback exercise and approved rollback authority are not availableA prior deployment can be selected after a defective release; measured recovery time is unknown
Browser sessionPartially availableInvalid sessions clear local application identity and return the user to authenticationGlobal revocation, inactivity limit, maximum duration, concurrent-session rule, and lost-device test are not availableThe current browser session fails closed; other active sessions remain governed by provider token state
Managed API and databasePartially availableFailed service requests return errors and transaction boundaries prevent a successful partial database commitA managed-service outage exercise, approved retry matrix, and measured reconciliation procedure are not availableReads and writes stop during outage; automatic retry safety is confirmed only for explicitly idempotent operations
Trusted server operationPartially availableTrusted operations return explicit failures and selected workflows retain correlation evidenceOne complete retry, idempotency, compensation, and operator-reconciliation standard is not available across all operationsThe affected workflow stops or remains pending; recovery behavior depends on the individual operation
External business providerPartially availableSelected callbacks use signature validation and duplicate-event protection; provider state is stored for selected workflowsA complete provider-by-provider degraded-mode and reconciliation test is not availableThe primary application remains reachable while the provider-dependent business action fails or remains pending
Monitoring providerPartially availableApplication monitoring and managed-platform logs exist; business transactions do not use telemetry as their authorization or commit sourceAlert-delivery testing, unified retention, and documented monitoring-outage operation are not availableCore processing continues during monitoring loss, but detection and investigation coverage is reduced

Trust-boundary control status

BoundaryStatusConfirmed presentNot confirmed or not available
Public host to operational backendAvailableThe public host serves the static web application; operational data remains in the managed backendNo material gap identified for this separation
Browser to protected dataAvailableDatabase grants, row-level security, storage policies, and trusted-operation checks enforce access independently of navigation visibilityComplete negative authorization coverage is tracked separately in the remediation register
Privileged server operationPartially availableSelected operations validate signed identity, tenant, role, input, and object scope before elevated processingThe managed security advisor reports exposed privileged operations without one complete grant and actor-validation review
Provider callbackPartially availableSelected payment and integration callbacks use a provider signature or shared-secret checkOne verified callback-control inventory and replay test set is not available
Public object accessPartially availableStorage ownership metadata and access policies existOne approved inventory of intentionally public objects, business classification, retention, and periodic review is not available

Principal runtime sequence

  1. An authorised user loads the static application over HTTPS.
  2. The application restores or creates an authentication session.
  3. The browser requests data or an approved operation using the user session.
  4. Backend grants, row-level security, routine checks, and storage policies evaluate access.
  5. Trusted server functions contact external providers only for approved workflows.
  6. Configured monitoring receives diagnostic and security-relevant telemetry.

Evidence status

Evidence areaStatusRecorded conclusion
Application and managed-backend architectureAvailableComponent boundaries and principal request paths are supported by implementation review and read-only service inventory
Cloudflare delivery architectureAvailableCloudflare Pages is the confirmed frontend delivery platform
Cloudflare security configurationNot availableActive WAF, rate-limit, bot, header, TLS, and cache configuration has not been inspected
Provider contractual controlsNot availableContracting entity, region, retention, audit rights, and notification terms require commercial evidence
Backup recoverabilityNot availableProvider entitlement exists; a retained end-to-end restore exercise does not
Penetration testingPartially availableInternal non-invasive assessments exist; independent authorised testing does not
Complete access-control correctnessPartially availableRow-level security and selected operation checks exist; complete negative coverage and privileged-operation review do not