Security & Data Architecture

How Tote and Lots protect merchant credentials, enforce strict tenant isolation, and keep storefront code inside Shopify's own trust boundary.

1. Zero remote storefront JavaScript

Unlike legacy apps that inject external script tags from third-party servers into a merchant's storefront, Invariant ships storefront assets strictly through Shopify Theme App Extensions. Code is versioned, reviewed, and delivered from Shopify's CDN, eliminating remote script supply-chain risk on your checkout path.

2. Signed App Bridge authentication & tenant isolation

  • Session tokens: every embedded Shopify Admin API request is authenticated using short-lived, cryptographically verified Shopify App Bridge JWT session tokens.
  • Strict shop scoping: every database query and admin mutation is scoped to the authenticated shop identity, preventing cross-tenant access (IDOR).
  • Encrypted credentials: Shopify offline access tokens are encrypted at rest and never exposed to browsers or client-side logs.

3. Webhook & App Proxy verification

All incoming Shopify webhooks (including billing, uninstall, and mandatory GDPR compliance webhooks) are strictly verified using constant-time HMAC-SHA256 signature validation before processing.

4. Shopify Functions sandbox

Core commerce logic (free gift calculation, pack transforms, volume discounts, and checkout quantity validation) compiles to WebAssembly and executes inside Shopify's isolated Functions runtime with deterministic limits and zero external network calls.

5. Responsible disclosure

If you discover a security issue in byinvariant.com, Tote, or Lots, please email support@byinvariant.com with reproduction steps. We acknowledge security reports within one business day and coordinate fixes promptly.