Privacy PolicyTerms of ServiceSecurity

Layeron Security Summary

Last updated: 2026-10-15

This document summarizes the technical and organizational measures Layeron uses to protect your data. It is intended as a high-level overview for customers and app-review reviewers. For the full data-protection contract, see our Privacy Policy.


1. Architecture overview

Layeron ships as two surfaces that share a common data model:

  • Desktop app — Electron + React + TypeScript, backed by a local better-sqlite3 database. Runs entirely on-device. Integration credentials are encrypted via Electron safeStorage (OS keychain).
  • Web app — React + TypeScript frontend, Node/Express API server, PostgreSQL database hosted on Neon. File uploads go to Cloudflare R2.

Every table in both backends carries a tenantId column. Every read and write query is scoped by tenantId, enforced in code (Helmet, zod-validated handlers, repository-pattern accessors) and by auth middleware that attaches the caller's tenant to the request object.


2. Encryption

DataAt restIn transit
Web database (Postgres / Neon)Provider-managed AES-256 disk encryption + AES-256-GCM envelope encryption for sensitive fields (integration credentials, API tokens)TLS 1.2+ (Neon)
Web file storage (Cloudflare R2)Server-side AES-256TLS 1.2+
Web API traffic—TLS 1.2+ (terminated at Cloudflare)
Desktop local DB (SQLite)Relies on OS-level disk encryption (FileVault/BitLocker). Integration credentials additionally encrypted via Electron safeStorage (macOS Keychain / Windows DPAPI).—
PaymentsCard data never touches our servers — handled by Stripe Elements, tokenized before any network call leaves the browserTLS 1.2+

The symmetric key used for envelope encryption rotates on a documented schedule (see internal runbook docs/runbook/credential-rotation.md).


3. Authentication and authorization

  • Password hashing — bcrypt with per-user salt, cost factor 12. Passwords are never logged or stored in plaintext.
  • Session tokens — JSON Web Tokens with short-lived access tokens + refresh rotation. Sessions invalidate on password change and on explicit sign-out.
  • Tenant isolation — middleware resolves the tenant from the auth token on every request. Application code receives a tenant-scoped repository; cross-tenant queries are not representable in the API surface.
  • Integration credentials — stored under namespaced settings keys (plugin_creds_${slug}) and encrypted before persistence. Credentials are never returned to the client verbatim; only a boolean "connected" status.

4. Network and infrastructure controls

  • Cloudflare — CDN, WAF, DDoS protection, rate limiting in front of the API.
  • Helmet — security-response headers (HSTS, X-Content-Type-Options, X-Frame-Options, strict Referrer-Policy, Content-Security-Policy).
  • CORS — strict origin allowlist.
  • Server-side rate limiting — per-IP and per-user limits on auth endpoints and write endpoints.
  • Input validation — every write endpoint validates its payload with zod before touching the database. Invalid payloads are rejected with 400 responses and never hit business logic.
  • Dependency scanning — npm audit runs in CI; vulnerable dependencies are pinned or patched as advisories land.
  • Secrets management — API keys and database URLs live in environment variables and managed secret stores (never in the repo). .env* files are gitignored and sample-only.

5. Desktop-specific controls

  • Context isolation — Electron contextIsolation: true and nodeIntegration: false in the renderer. All privileged IPC is exposed through a narrow preload.ts that allowlists specific channels.
  • IPC validation — every IPC handler validates inputs before touching SQLite or the OS keychain.
  • safeStorage — integration credentials are encrypted with Electron safeStorage before being written to the SQLite settings table. Plaintext credentials never land on disk.
  • Auto-updates — desktop builds will be code-signed (pending — see gap list) and delivered via the app platform's official update channel.
  • Local data boundary — the local database lives in the user's per-app data folder. Deleting the app preserves that folder; the in-app "Clear local data" action removes it.

6. Third-party sub-processors

VendorPurposeData touched
NeonPostgres hosting (web)All tenant records
CloudflareCDN, WAF, DDoS, R2 object storageRequest metadata, file blobs
GoogleFirebase App Hosting (Cloud Run) — web API server; Google Sign-In identity providerAll API request/response payloads in transit; email + Google account id on sign-in
StripeSubscription billing + invoice paymentsName, email, payment tokens
ResendTransactional emailRecipient email, message body
VercelHosting for the marketing site and web app; cookieless website analyticsPage requests, referrer, device and country, campaign tags, sign-up form events, request metadata
SentryError tracking + performance monitoringError messages, stack traces, request URL, user id (not email), browser/OS metadata; session replays are text-masked and media-blocked
AnthropicOptional AI features (opt-in)Prompts submitted for a single request; no training on customer data
Apple / MicrosoftDesktop distribution, crash reportsCrash payloads, install metadata

All sub-processors are bound by written contracts covering confidentiality, security, and permissible use.


7. Operational security

  • Least privilege for people — only the engineers operating the service have production access; access is tied to MFA-protected accounts and revoked on offboarding.
  • Access logs — privileged access to production infrastructure is logged.
  • Backups — Neon point-in-time recovery retention (14 days). R2 object versioning enabled for file storage. Encrypted backups purge within 90 days after account deletion.
  • Incident response — documented playbook. If we detect a breach that affects your data, we notify you and the appropriate regulators within the time required by law (72 hours for GDPR).
  • Change management — all production changes go through pull-request review; infrastructure changes require a second pair of eyes.

8. Data subject rights

Users can export, correct, or delete their records from within the app, or by emailing privacy@layer-on.com. See the Privacy Policy §7 for the full rights catalog and response SLAs.


9. Vulnerability reporting

If you think you've found a security issue, please email security@layer-on.com. Do not publicly disclose before we've had a reasonable chance to investigate (we aim to acknowledge within 2 business days and triage within 5). We do not currently run a paid bug bounty program but are happy to publicly credit researchers who report responsibly.


10. Contact

Layeron — Security

Email: security@layer-on.com

Privacy: privacy@layer-on.com