Skip to content

Security

Security that holds up to your questionnaire

Inventory data is commercially sensitive, and 3PLs hold it on behalf of their clients. This page describes the controls in Stokrio today and what we are working on next.

Tenant isolation

Server-resolved org ID on every request

Access control

5 RBAC roles enforced on the server

API & webhooks

SHA-256 key hashes & HMAC-SHA256 signatures

Browser defence

Strict per-request nonce CSP on app pages

Tenant isolation

Every brand and every 3PL client is a separate organisation.

  • The organisation for each request is resolved on the server from the session or API key — never from a value the browser can change
  • Every database query in the API is scoped to that organisation
  • Access to a 3PL client is granted only through membership of that client's 3PL
  • Automated tests check that every API route rejects unauthenticated requests or declares how it authenticates, and that one organisation cannot read or change another's data, including shipping, manufacturing, imports, serial numbers and reports

Access control

Five roles, enforced on the server for every action.

  • Owner, Admin, Planner, Warehouse and Viewer roles, each with a defined set of permissions
  • Only owners can grant or remove ownership, and an organisation always keeps at least one owner, even when two people change roles at the same moment
  • On Shopify, each staff member who opens Stokrio gets their own login. They start as Viewers and the store owner assigns roles; Shopify decides who can open the app at all
  • Scheduled report emails go only to current members whose role may see that report
  • Invitations are single-use, expire after 7 days, are stored only as hashes, and can only be accepted by the invited email address
  • Client users of a pending or suspended 3PL client cannot use the application

Authentication

Standard, well-reviewed authentication rather than custom code.

  • Passwords are hashed with scrypt and must be at least 10 characters
  • Sessions use HTTP-only cookies and expire after 14 days
  • Sign-in, codes, password reset, signup and invitation acceptance are rate-limited per address and per account, with counters shared across all servers
  • Password reset links expire after one hour, and the reset form doesn't reveal whether an account exists
  • Shopify sign-in uses OAuth with state verification and HMAC-checked callbacks, and inside the Shopify admin uses Shopify's signed session tokens
  • Sign-in redirects only ever lead back into the application

API keys and integrations

Least privilege for systems as well as people.

  • API keys are shown once and stored only as SHA-256 hashes
  • Keys expire (after one year by default, two at most), each organisation can hold at most 25, and they can be revoked at any time
  • Keys carry scopes (for example, inventory read or write) and can never manage users, integrations or organisation settings
  • Inbound Shopify webhooks are rejected unless their HMAC signature verifies, are bound to the shop they were registered for, and are applied once even if Shopify delivers them twice
  • Outgoing webhooks are signed with HMAC-SHA256 so you can verify they came from Stokrio
  • Outgoing webhooks go only to public addresses on port 443: the address is checked once and the request is sent to that address, so a name that changes its answer can't redirect it to a private network
  • Shopify access tokens and carrier credentials are encrypted at rest and never shown again

Audit trail

Who changed what, kept for your owners and admins.

  • Team role changes, removals and invitations, API key and webhook changes, store connections and plan changes are recorded with who did them and when
  • Every change to stock on hand is a ledger line with its cause, reference and user
  • Each time customer names, addresses or phone numbers are opened (an order, a pick list, a shipping label) it is logged with who and when, never with the details themselves, and read through the audit log API
  • A written incident response procedure covers detection, containment, notifying affected merchants and Shopify, and review

Application security

Defence in depth at the edge.

  • HTTPS with HTTP Strict Transport Security
  • A Content Security Policy on application pages that allows scripts only from Stokrio and Shopify's CDN with a fresh one-time token on every request, with no inline or eval scripts; framing is limited to Stokrio and the Shopify admin
  • Error responses carry a reference number instead of internal details, which stay in our logs
  • Spreadsheet exports neutralise cells that a spreadsheet could run as formulas
  • Input validation on API requests
  • Production dependencies are audited for known vulnerabilities on every change
  • Shopify's mandatory privacy webhooks (customer data requests and redaction) are handled

In progress

We publish what we haven't finished so you can plan around it.

  • Two-factor sign-in for owners
  • An audit log page inside the app (the log can be read through the API today)
  • Independent penetration test

Report a vulnerability

If you believe you've found a security issue, email security@stokrio.com with the details and steps to reproduce. Please give us reasonable time to fix the issue before disclosing it, and don't access or change data that isn't yours while testing.

For security questionnaires and due-diligence requests, contact us at the same address.

Shopify App · 3PL Partner API · US$39/mo entry plan

Questions about security?

We're happy to walk your team through how Stokrio handles your data.