Compliance and Governance
Platform Compliance: For comprehensive platform-wide compliance framework (SOC 2, GDPR, encryption standards, audit logging, etc.), see Infra-Core Compliance & Governance
App Web-Specific Compliance
This document covers compliance aspects specific to the App Web service. For platform-wide compliance framework (SOC 2, GDPR, ISO 27001, encryption standards, audit logging, etc.), refer to the platform compliance documentation.
App Web Security Architecture
Defense-in-Depth Model:
Edge Layer: Cloudflare DDoS protection, WAF, rate limiting
Application Layer: Auth.js authentication, SvelteKit server-side validation
Database Layer: Row-Level Security (RLS) in PostgreSQL/Neon
Session Layer: Secure session management with encryption
See Architecture: Security for detailed security implementation.
For platform-wide security framework, see Infra-Core Compliance.
App Web Data Privacy
App-Specific Data Handling:
User Sessions: Encrypted session cookies with httpOnly and secure flags
Multi-Tenancy: RLS enforces tenant isolation at database query level
Personal Data: User profiles, tenant memberships, activity logs
Data Residency: Neon database regions configurable per tenant
Privacy Features:
Data minimization in UI (only show necessary information)
User consent management for analytics
Export functionality for GDPR data portability
Delete functionality cascades across all tenant data
For comprehensive GDPR compliance, see Infra-Core Compliance.
App Web Tenant Isolation
Multi-Layered Isolation:
Application Layer: Tenant context extracted from session
Database Layer: Row-Level Security (RLS) policies
Query Layer: All queries include
tenant_idfilterAPI Layer: Tenant validation before external API calls
RLS Implementation:
See Architecture: Multi-Tenancy for comprehensive multi-tenancy design.
App Web Access Control
App-Specific RBAC:
Platform Admin: Manage platform settings, view all tenants
Tenant Owner: Full control of tenant, billing, user management
Tenant Admin: Manage tenant users and settings
Tenant Member: Access tenant features based on permissions
Group Admin: Manage specific groups within tenant
Group Member: Access group resources
Permission Enforcement:
Server-side permission checks in
+page.server.tsfilesClient-side UI hiding (non-security, UX only)
Database-level RLS as final enforcement layer
For platform-wide RBAC framework, see Infra-Core Compliance.
App Web Audit Logging
App-Specific Audit Events:
Authentication (login, logout, session refresh)
User management (create, update, delete, role changes)
Tenant management (create, update, settings changes)
Group management (create, update, member changes)
Data access (exports, API calls)
Logging Infrastructure:
CloudWatch Logs for server-side events
PostHog for user analytics and behavior
Cloudflare Analytics for edge/WAF events
For comprehensive audit framework, see Infra-Core Compliance.
App Web Incident Response
App-Specific Detection:
Real-time error monitoring (PostHog)
Cloudflare security analytics and WAF alerts
SvelteKit error boundaries and logging
Database query performance monitoring
Response Workflow:
Incident detected (PostHog/Cloudflare/CloudWatch)
Team notified via Slack/PagerDuty
Impact assessed (affected tenants, severity)
Mitigation deployed (rollback, hotfix, WAF rule)
Root cause analysis
Preventive measures implemented
For platform-wide incident response, see Infra-Core Compliance.
App Web Compliance Controls
App-Specific SOC 2 Controls:
CC6.1: Auth.js authentication with session management
CC6.2: TLS 1.3 via Cloudflare
CC6.3: Database encryption via Neon (AES-256)
CC6.7: PostHog monitoring and Cloudflare analytics
App-Specific Availability:
Cloudflare global CDN (100% uptime SLA)
Serverless deployment (auto-scaling)
Neon database with point-in-time recovery
Zero-downtime deployments
For complete SOC 2 framework, see Infra-Core Compliance.
Compliance Roadmap
2025 Q2:
2026 Q1:
Related Documentation
Platform Compliance: Infra-Core Compliance & Governance
App Web Security: Security Architecture
Multi-Tenancy: Multi-Tenancy Architecture
Authentication: Authentication Flow
Platform Overview: Overview
Last updated: October 2025 Service Owner: App Web Team
Last updated