Security First

Built with security at every layer

Agency Chat enforces strict tenant isolation, encrypts all data in transit and at rest, and stores everything on UK-based servers.

Four-Layer Tenant Isolation

Every business table carries an agencyId. Isolation is enforced at the database column, Prisma middleware, API route guard, and Socket.IO namespace layers.

Encryption in Transit

TLS 1.2+ enforced on all connections. HSTS headers with includeSubDomains. OCSP stapling enabled.

Encryption at Rest

Database storage uses encrypted volumes. Session tokens, OAuth secrets, and 2FA seeds are stored securely.

UK Data Residency

All data is processed and stored on UK-based servers managed by TekSpert Ltd. No data leaves UK jurisdiction.

Argon2id Password Hashing

Passwords are hashed with argon2id using OWASP 2024 recommended parameters. No bcrypt, no SHA-256.

Two-Factor Authentication

TOTP-based 2FA mandatory for all agency owners and super admins. Optional for admins and managers.

CSRF Protection

Double-submit cookie pattern for state-changing requests. All API routes validate X-Requested-With headers.

Content Security Policy

Strict CSP with nonces on all authenticated surfaces. Prevents XSS, clickjacking, and code injection.

Rate Limiting

Redis-backed token bucket rate limiting on all endpoints. Auth: 5 attempts/15min/IP. Messages: 30/min/identity.

File Scanning

Every uploaded file is scanned with ClamAV before being made accessible. MIME types validated by magic-byte sniffing.

Secure Session Management

HTTP-only, Secure, SameSite=Lax cookies. Server-side sessions backed by Redis with 30-day rolling expiry.

Input Validation

Zod schemas at every API boundary. All schemas reject unknown keys. No unvalidated input reaches the database.

GDPR & UK DPA Compliance

Data Controller & Processor

TekSpert Ltd is the platform Data Controller. Each agency is the Data Controller for their own creator data, with TekSpert as the Data Processor. This is formalised in our Data Processing Agreement.

Right of Access

Creators can export their own messages and profile data directly from the creator app's Profile screen.

Right of Erasure

When a creator is removed and requests deletion, message content is hard-deleted after 30 days, avatar caches are purged, and TikTok tokens are revoked.

Data Retention

Messages are retained as long as the chat exists. Chats are retained as long as the agency exists. Agencies are retained for 14 days after cancellation, then hard-deleted.