Skip to main content

Security & Data Protection

Last audited: 24 October 2026 · Aligned with Kenya Data Protection Act, 2019 (Section 41) & OWASP ASVS

Mauzify builds privacy and security directly into our database, API, and browser architecture. Below is a transparent summary of the technical and organizational safeguards protecting salons, barbershops, spas, and their customers.

1. Core Architecture Safeguards

Zero Public Customer PII Exposure

The bookings table has zero anonymous SELECT, INSERT, UPDATE, or DELETE privileges. Public availability checks run through a security-definer RPC that returns open slot timestamps only, never customer names or phone numbers.

SHA-256 Hashed 256-Bit Bearer Tokens

Customer cancellation links use cryptographically random 256-bit tokens stored strictly as SHA-256 digests. Raw tokens stay in the browser URL fragment (#token) with Referrer-Policy: no-referrer and are never leaked in server URLs or WhatsApp messages.

Row-Level Security & Tenant Isolation

Authenticated business owners are isolated via PostgreSQL Row-Level Security (RLS) so an owner can view or update only bookings belonging to their own verified owner_id, and cannot overwrite customer PII fields after creation.

Constant-Time Payment Verification

Paystack subscription webhooks are verified against raw request bodies using constant-time HMAC-SHA512 (crypto.timingSafeEqual) with idempotent event replay protection and strict same-origin checkout callback validation.

2. Authentication, Session & Access Hardening

  • Server-Side Admin Route Protection: All business management routes (/dashboard, /services, /availability, /settings, /billing, /onboarding) and server functions enforce server-side session and ownership verification before returning data.
  • Zero Local Auth Tokens (HttpOnly Cookies): Business authentication sessions are persisted strictly in HttpOnly cookies synced via /api/auth/session and held only in volatile memory during tab lifetime, never written to localStorage where scripts could read them.
  • Mandatory Email Verification & Key-Stretched Password Hashing: Business sign-ups require one-time hashed token email verification prior to sign-in, and credentials are protected with salted multi-round key-stretched SHA-256 digests verified in constant time.

3. Data Minimization, Input Validation & Storage Hygiene

  • Minimal Collection: Customers booking an appointment provide only their name and Kenyan mobile number. No customer passwords, emails, national IDs, physical addresses, card numbers, or M-Pesa PINs are collected.
  • Parameterized Queries, XSS Blocking & Upload Magic-Byte Checks: Database queries use strictly parameterized RPC and query bindings (zero raw SQL string interpolation). Form inputs strip control characters and reject script/XSS vectors, while /api/upload/validate enforces a 2 MB cap, blocks SVG/HTML/double extensions, and verifies JPEG/PNG/WebP binary magic bytes.
  • CSP, Tightened CORS & Cache Protection: Every response sets a strict Content-Security-Policy (object-src 'none', base-uri 'self'), restricts CORS exclusively to verified origins (never *), and applies Cache-Control: no-store, private, max-age=0, X-Content-Type-Options: nosniff, and Strict-Transport-Security.
  • Server-Side Secrets, Redacted Logs & Production Debug Off: Secret keys live strictly on the server (never in VITE_* client bundles or Git), telemetry automatically scrubs bearer tokens, JWTs, API keys, and cancellation fragments, and production builds disable client source maps and stack-trace leakage.

4. Abuse, Concurrency & Enumeration Defenses

  • HTTP & Slot-Exhaustion Rate Limiting: Edge requests pass through a sliding-window HTTP rate limiter (429 Too Many Requests with Retry-After) alongside per-shop booking velocity limits, honeypot bot filtering, and caps on concurrent upcoming bookings per phone number.
  • Race-Safe Exclusion Constraint: Double-booking is prevented atomically at the database level via the bookings_no_overlap exclusion constraint on active bookings.
  • Anti-Sabotage Data Deletion Verification: Public Data Deletion Requests require ownership verification prior to erasure (GDPR Art. 12(6)) and never expose whether a third-party phone number or email address has active records.

5. Responsible Vulnerability Disclosure & DPO Contact

Found a security or privacy issue?

Please report suspected vulnerabilities or data protection concerns directly to our security and privacy lead at hello@mauzify.co.ke or call/WhatsApp +254 745 297 810. We acknowledge reports within 48 hours.

Mauzify · Remote-first digital platform (No physical walk-in office) · Nairobi, Kenya. See also our Privacy Policy and Cookie & Storage Policy.