Security & data protection
Isolation you can audit, not assurances you have to take.
This page names the mechanism: the query wrapper, the build gates, three separate logins and the one door left shut on your AI.
- 0Permitted unscoped queries: two build gates, ceiling zero
- 3Separate login systems: customer, staff, platform
- 152Tables in your export, one CSV each
- 261Tables in the erasure list
Tenant isolation
Your organisation ID is appended by the database wrapper, not remembered by the developer.
Every tenant table in the schema carries a NOT NULL org_id. Route code never queries the database directly; it goes through a phantom-typed wrapper, tenantDbFor(orgId), which appends the tenant filter to the statement itself. Forgetting it is not a mistake a reviewer has to catch, because there is no shape of code in which it can be forgotten.
The escape hatches that genuinely need raw SQL — multi-table joins, advisory locks — are counted and statically checked: a second gate reads the SQL and proves the org_id column is actually filtered. Both gates run at a ceiling of zero. A pull request that adds the first exception does not get a warning; it fails the build.
noDirectDbInRoutes— blocks bare database calls anywhere under the route tree.noUnscopedOrgIdInRawSql— proves each remaining raw query really does filter on the tenant column.- Files, cache keys and uploads are org-scoped by construction —
{orgId}/{category}/{filename}is the storage path, not a convention.
What your query becomes
SELECT *
FROM invoices
WHERE payment_status
= 'overdue'
AND org_id = $orgId
-- appendedAnd then it is checked from the outside. A cross-tenant leak battery boots the real API against a real database with two seeded tenants, and requests every classified GET endpoint as the other tenant’s staff and customer accounts, asserting nothing comes back. Every GET route must be classified in that battery before it can merge — so the coverage cannot quietly fall behind the code.
Identity
Three login systems that cannot read each other’s tokens.
Your customers, your staff and Devario’s platform administrators authenticate through three separate token systems. A stolen staff token presented to the customer verifier is not downgraded or partially trusted — it is rejected, and the reverse is equally true.
Your customers
One-hour tokens, refreshed automatically at 80% of their life. Clearing the session in one tab logs the customer out of every tab, and the cart and wishlist are cleared with it so nothing survives into the next person’s session.
Your staff
Two-hour tokens. Six roles (owner, manager, sales, designer, operator, viewer), and the role is read from the staff record on every request, not from the token, so revoking someone’s access applies on their very next click rather than whenever their session happens to expire.
Devario’s administrators
Platform staff sign in through Google only, against an explicit allow-list of addresses, on a separate hostname from your shop. There is no password to phish and no shared account.
A button a role cannot use is a button that never renders.
The role-to-route map is enforced from both sides and tested both ways: a route a role cannot reach must not render a control that role can click, and a control that renders must have a route behind it. Click-then-403 is not a polish problem — it is the tell of a permission model that only exists in the user interface.
- Five failed sign-ins lock the account for fifteen minutes, tracked server-side.
- Revoked tokens go on a blocklist that fails closed in production.
- Signing keys rotate with key identifiers, so live sessions survive a rotation.
- Every mutation carries a double-submit CSRF token; public forms are rate-limited instead.
Connected AI
An AI that can read your customers’ messages can never send anything.
The known catastrophic pattern for AI agents is one connection holding all three of: your private data, untrusted content someone else wrote, and a way to send. Any two are survivable. All three, and a stranger’s message becomes an instruction. Devario splits those legs into scopes that cannot be granted together.
A connection that reads your inbox
Sees WhatsApp and social conversations, message history, channel status — and the free text your customers wrote themselves.
Cannot ever
- Reply or post publicly
- Record a payment or spend on ads
A connection that sends
Replies to conversations, publishes posts, and — under a separately consented spend scope — records payments. Ads run only after they have been enabled for the shop with a positive cap, and stay within that cap.
Cannot ever
- Read your customer inbox
- Read text a customer typed anywhere
Enforced three times, because it once went wrong.
The split is checked when you grant it, checked again every time the connection acts, and proved by mcpTrifectaContainment — a build gate at ceiling zero that refuses to ship a version where the two halves can meet.
The harder half: taint belongs to the data.
A grant with no inbox scope at all still carried all three legs, because public quote requests are unauthenticated by design and a visitor’s ten-thousand-character message reached the model through the enquiry’s contact field. So customer-written free text is now withheld from every external read unless the grant explicitly holds inbox — redacted at the projection as an allow-list, which means a column added tomorrow is withheld until someone deliberately adds it.
- A pasted API key can only ever carry the commerce ladder — inbox, social and administrative scopes are OAuth-only, enforced on mint and on rotation.
- Moving money needs a separately consented spend scope. A write key can never do it.
- Your organisation ID is bound by the server from the session and is structurally absent from every tool schema — the model has no field in which to name another tenant.
- An overnight draft waits for you: the connected AI prepares the work and one preview card in the app is where you approve it, so nothing consequential happens while you are asleep.
Connecting your own AI is available on Trial, Pro, Scale and Enterprise. No irreversible or outward-facing write executes without a human click; every write is undoable or confirm-gated. Every AI action is written to an activity log you can read.
POPIA & your data
Leaving is a feature, and it still works after you cancel.
A platform that makes your records hard to retrieve has given you a reason to leave and taken away the means. The export is owner-operated, complete, and outlives the subscription.
Export the whole business
One CSV per archived table — 152 of them — plus every document PDF and every artwork file from storage, zipped, with a durable link emailed to the owner and good for 30 days. A tokened route serves a cancelled organisation’s export, so cancelling does not lock you out of your own history.
A customer asks for their data
Your customer requests it from your portal and gets it back there and then: profile, orders, quotes, documents, payments, design metadata, and the agreement acceptance records. Every request is audit-logged, so you can demonstrate you responded.
Erasure that cannot half-happen
The erasure list is 261 tables — 152 archived and 109 explicitly exempt, disjoint and summing exactly to the delete list. The precondition is derived from that arithmetic rather than maintained by hand: you cannot erase what has not been archived first.
The paperwork exists
A POPIA Data Processing Agreement, a published sub-processor list naming every third party, where it processes and what it receives, a PAIA manual, stored acceptance records, and a data & privacy page inside the admin.
Data ages out on its own.
Inbox conversations, voice transcripts, form submissions and notifications each expire on their own retention schedule — minimisation you do not have to remember to perform.
Voice is off until you switch it on.
Transcribing customer voice notes sends audio to a third party, so both voice toggles are owner-only and default to off, the transcript carries a retention period, and the whole path fails closed: no key or no quota means no transcript, never a silent outbound call.
Platform hardening
The unglamorous half, listed so you can check it.
Secrets you store with Devario
Your own payment, courier and accounting credentials are encrypted per tenant with AES-256-GCM under a master key held only in the server environment. In production the server refuses to store a secret without it. Once saved they are write-only: they go server-to-server and never come back to a browser.
Anything that arrives from outside
Every inbound webhook that can move money or data verifies a signature over the raw request body before a single field is read — the payment processor with HMAC SHA-512, the accounting integration with replay protection, the email and messaging providers likewise. Missing signing secret means the endpoint refuses the request rather than trusting it.
Files your customers send you
Uploads are validated by magic number, not by file extension, so a renamed executable does not become artwork. SVGs are scanned for script injection before they are stored. Outbound fetches are fenced against server-side request forgery, and a Permissions-Policy header switches off browser capabilities the product never uses.
Backups, and proof they restore
Production Postgres is dumped nightly to off-site object storage, retained for 30 days. A backup is only evidence if it comes back, so a scheduled monthly drill downloads the latest dump, restores it into a fresh database, and asserts row counts and migration parity against production. A failed drill is a failed workflow, not a quiet log line.
What happened, and who did it
A platform audit log, a tenant activity log, an AI activity log, automation run history and a dead-letter board for failed events. Every response carries a request identifier, so a support question about one action resolves to one trace.
Documents that cannot be rewritten
Tax invoices carry sequential per-tenant numbering and a snapshot of the VAT details in force when they were issued. Changing your VAT registration later never rewrites history. The first issue prints ORIGINAL; every reprint prints COPY.
The boundary
What Devario does not claim.
A security page that only lists strengths is a security page nobody believes. Four things a reviewer would otherwise have to find out the hard way:
Devario holds no SOC 2 and no ISO 27001.
This page lists engineering controls you can ask to see demonstrated, not audit badges.
Database row-level security is built and dormant.
The policies exist but are not active, deliberately, until the conditions in Devario’s own architecture decision are met. Isolation today is the query wrapper and the build gates above — do not read RLS into it.
Devario publishes no uptime figure.
Deep health checks and synthetic monitoring run, but no availability record has been published, and no plan promises an availability guarantee. Support response targets are stated on the pricing page because they are real.
One region, deliberately.
SARS VAT, rand, South African courier, POPIA. Serving another country honestly needs a region pack for tax, payments and logistics.
Sending a procurement questionnaire? Email hello@devario.io and it is answered by the people who wrote the controls, with the file names in the reply.
Bring the questionnaire. The answers are already written down.
Start on the 30-day trial, export everything on day one if you want to, and decide with your own data in your own hands.