KwikNest is the operating system for a multi-sided commerce network: suppliers, merchants, and consumers all transact in the same platform. That position makes security a first-order concern, not a feature. This page describes the controls we operate in production, the sub-processors we depend on, and how to reach our security team. Non-production environments (staging, preview, local) may deliberately relax some controls so engineers can build and test — those relaxations are not what we claim for live merchant traffic.
1. Encryption
- In transit. All traffic to
kwiknest.comand every*.kwiknest.comsub-domain is served over TLS 1.2 or higher. HTTP requests are redirected to HTTPS. - At rest. Application data is stored in Neon Postgres with AES-256 disk-level encryption managed by the underlying cloud provider. Object storage uses Vercel Blob with server-side encryption.
- Secrets. Application secrets (database URLs, Stripe keys, Clerk keys, model-provider keys) live exclusively in deployment environment variables. They are never committed to source control.
2. Authentication
- Clerk (SOC 2 Type II audited) handles primary authentication and session issuance for merchants and staff. Sessions are short-lived JWTs rotated by Clerk; we never see plaintext passwords.
- Multi-factor. MFA via authenticator app or SMS is available through Clerk. Production requires MFA for merchant and staff sign-in. Staging and other non-production environments may leave MFA optional so the team can develop without friction — that is an intentional environment difference, not the production policy.
- Storefront shoppers do not use a shared password store for order links. Short-lived HMAC-signed account magic links expire in 30 minutes. Order confirmation / tracking access tokens are hashed at rest and expire after 90 days. Password reset tokens also expire in 30 minutes and are single-use.
3. Authorization & Multi-Tenancy
- Back-office APIs resolve the active organisation from the URL
[orgSlug]viarequireOrg(), verify the signed-in user is a member, and attach a typedOrgContext. Middleware keeps unauthenticated traffic off protected surfaces. - Database access is scoped with
tenantFilter()/scopedAnd()helpers and organisation membership checks on money-adjacent routes. Isolation is application-level (organisation id), not Postgres row-level security. - Role-based capabilities are declared in
lib/auth/capabilities.tsand enforced on sensitive writes (catalogue, inventory, finance, roles, and selected agent actions). Defaults follow the member's role.
4. Payments
- Stripe (PCI-DSS Level 1) processes all card payments. Card numbers are entered into Stripe-hosted iframes (
Stripe Elements) — KwikNest servers never see, log, or store the PAN, CVC, or expiry. We retain only the Stripe customer ID, last 4 digits, and brand for receipt rendering. - Payouts to merchants and suppliers run through Stripe Connect (express accounts), with KYC/AML executed by Stripe.
5. Webhooks & Event Integrity
- Verification before side-effects. Every inbound webhook we operate — Stripe, Clerk, Resend, Twilio, EasyPost, and Shippo — is authenticated against the provider's shared secret (cryptographic signature and/or equivalent URL token) before any side-effect runs. Failed checks are rejected. Shipping providers use the same rule: Shippo accepts a registered query token and/or an enterprise HMAC header.
- Idempotency. Stripe webhook handling claims the provider event id in a dedicated table with a uniqueness constraint so automatic retries land as no-ops. Other handlers are written to tolerate duplicate delivery where the underlying action is already applied.
6. Rate Limiting & Abuse
- Upstash Redis + sliding-window rate-limit. Public and money-adjacent endpoints (sign-in, sign-up, password reset, checkout-adjacent, and similar) are throttled per IP and per identity when Redis is provisioned. Sensitive scopes fail closed if the limiter backend is unavailable.
- Body-size and request-shape guards reject oversized or malformed abuse before it reaches handlers.
7. Monitoring & Logging
- Application logs use a structured logger with redaction of known sensitive fields (emails, bearer tokens, and common secret key names). Call sites are still expected not to log raw PII when they can avoid it.
- Sentry captures unhandled errors in production when a DSN is configured, with the same scrubbing applied at init. Source maps are not shipped in the public bundle.
- Audit log. Privileged back-office actions (including refunds, role changes, catalogue price changes, and other money-adjacent operations) write to
audit_logwith actor, organisation, entity, action, and request metadata. After 90 days, IP / user-agent / actor fields on older rows are anonymised.
8. Backups & Recovery
- Neon Postgres provides automated backups. Retention and restore granularity depend on the Neon plan in use: Launch-class plans use nightly snapshots with day-level restore (typically 7-day retention); Scale-class plans add continuous WAL with second-level point-in-time recovery (longer retention). We size the production plan for live merchant data.
- Restore procedures and RTO/RPO targets are documented in our internal runbook. We schedule restore rehearsals as part of production operations once live merchant data is on the platform — we do not claim a completed quarterly drill until one is logged.
9. Sub-Processors
We publish the sub-processors that process personal data on our behalf. Each entry is intended to be covered by a Data Processing Addendum and the EU Standard Contractual Clauses where applicable. The current list is at Sub-processors; the rationale for each is in the Privacy Policy.
10. Secure Software Development Lifecycle
- Branch protection. Production deploys only from the protected release branch; merges require green CI and peer review.
- Static analysis. CI runs ESLint (
--max-warnings 0), TypeScript strict mode, tests, and schema checks. Theship-gateworkflow blocks merges that miss those gates. - Dependency hygiene. Dependencies are reviewed on upgrade; CI includes production dependency auditing. Major bumps on security-critical packages get a manual pass.
11. Responsible Disclosure
We treat external security research as a partnership. If you have found a vulnerability, please email security@kwiknest.com with reproduction steps and any proof-of-concept. We commit to:
- Acknowledging receipt within 2 business days.
- A first technical response within 5 business days, including our triage of severity.
- Working with you on a fix and coordinated disclosure timeline before any public write-up.
- Not pursuing legal action against good-faith research that respects user privacy and avoids data destruction or service disruption.
Preferred contact details are also published at /.well-known/security.txt.
12. Compliance Posture
- GDPR & UK GDPR. Roles, lawful bases, retention, and data-subject rights are in the Privacy Policy. We honour DSARs within 30 days.
- CCPA / CPRA. California residents have the rights described in the Privacy Policy and may exercise them via the same channel.
- PCI-DSS. All cardholder data is processed by Stripe (Level 1). KwikNest's scope is limited to SAQ-A.
- SOC 2 Type II. A formal audit is on the roadmap for the post-launch year. Existing controls are designed to map against the SOC 2 Trust Services Criteria; that is design intent, not a completed attestation.
13. Contact
Security questions, vendor security reviews, vulnerability reports, or law-enforcement requests: security@kwiknest.com. For all other privacy or legal matters, see the Privacy Policy or write to privacy@kwiknest.com.
Questions or requests? Contact privacy@kwiknest.com · 273 Torbarrie Road, Toronto, ON M3L 0E2 Canada.