DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Commerce Data Security and Tenant Isolation

A security reviewer wants two clear answers: where could commerce data leak, and what proves that it really does not? Commerce data holds buyer names, addresses, order history and the keys to your marketplace accounts, so it needs real care. Good commerce data security protects your shoppers and your channel standing, and it begins with strong tenant isolation in code. DaletMart answers by following one request through the service, past a fixed chain of controls in one fixed set order. The governance section is the frank part, because it names the SOC 2 readiness status and what depends on you.

Illustration of lock, shield, barchart for commerce data security
Key takeaway

Every DaletMart request meets a signed token, a capability check, a location scope and database row-level security. Channel credentials are encrypted, webhooks fail closed and card data is refused. DaletMart is GDPR, HIPAA and CCPA/CPRA compliant, and a SOC 2 readiness program is underway.

Which controls guard commerce data in the order of a call?

First, picture a user reading one order, the simplest case of commerce data security. Next, the request meets each control below before data comes back. A refusal at any control of commerce data security ends the request there. Finally, tenant isolation is the last gate before data returns.

How does a signed token show who the caller is?

Identity is the first gate of commerce data security. In fact, DaletMart has no login page and no session of its own. It runs as a chromeless embed in your host CRM. The CRM injects a bearer token before the interface mounts.

First, the token is HS256 and is checked against a secret shared with the CRM. Notably, only that algorithm is accepted. A token with no algorithm, or a swapped one, is refused.

Claims name the tenant, user, capabilities, level, organization, email and locations. Capability grants therefore travel inside the signed token.

Also, a token that is signed but carries unusable claims returns an error. Indeed, it is never silently repaired by the service. In contrast, with no shared secret set, the API skips tokens. It reads identity headers instead.

Notably, in production the shared secret must be at least 32 bytes. If it is not, the service refuses to boot.

Why is each capability granted for one action at a time?

An identity alone opens nothing at all. Each token lists capabilities, and the system knows 76 of them. A token that names an unknown capability fails the request.

So capability grants stay exact. Capability grants are the second gate in commerce data security.

Moreover, user levels are owner, manager and user.

In fact, capabilities split work finely. Pricing, listings, inventory, bulk work, review moderation and point of sale actions each have their own. Notably, bulk actions need their own capability on top of the bulk capability. Review these capability grants first, because they decide who may act.

Illustration for Commerce Data Security and Tenant Isolation

How is the user kept to the right location scope?

The location claim confines a user to exact locations. Then row-level security filters the rest. For example, a restricted user with an empty claim stays empty.

The system never fills it from another table. The CRM may mark owner and manager levels as unrestricted. The admin capability can do the same.

Overall, the master catalog stays tenant-wide. Provider overlays are tied to exact locations. This scope sits on top of tenant isolation. The agency page shows how this works with several brands.

How does the database keep each tenant apart from the rest?

Tenant isolation carries most of the weight in commerce data security. In fact, for each user request, the API switches to an application role. That role has no bypass. It then sets the current tenant for that transaction.

The row-level security policies are forced.

As a result, a table owner is bound by them too. Notably, cross-tenant reads are blocked inside PostgreSQL, not only in application queries. Tenant isolation therefore holds even if app code has a bug. Indeed, a test file in the repository, written for row-level isolation, exercises this behavior.

Three database identities matter in daily use. First, a schema owner runs migrations and never serves the API or workers. Second, an API login has no bypass and assumes the application role per request. In contrast, a worker login bypasses row-level security for background jobs.

DaletMart Settings: Tenant isolation screen

How are channel credentials kept safe while stored at rest?

Channel keys are the crown jewels of commerce data security. They get their own control. A stolen key would break commerce data security for that channel.

Channel credentials are encrypted with AES-256-GCM. Each value gets a random 12 byte nonce. The key comes from HKDF with SHA-256. Its secret has at least 32 bytes.

In particular, credentials are not logged and are not returned in API responses. In production the service will not start if the key is missing. It also stops if the key is still the placeholder or too short.

Moreover, migrated channels can redeem single-use grants from DaletAuth. DaletAuth owns the refresh rotation of the keys. However, that setup is operator-driven and off by default.

Who owns which part of commerce data security for you?

Commerce data security is shared work, and the code enforces some controls. Your team owns the rest. A review goes faster when each owner is named.

DaletMart enforces the token check and the capability grants. It also enforces the location filter and the row-level security policies. Moreover, it also encrypts channel credentials and refuses unsafe payloads. Overall, those controls run on every request.

Your team owns the CRM that mints tokens and capability grants. It also owns the shared secret and the credential encryption key. Besides, you own the database hosting, backups and network rules.

You also own the list of origins allowed to embed the interface. Besides, your legal advisers own the privacy and marketplace duties.

Write these owners down before a commerce data security review. A control with no named owner tends to drift. For example, two questions help.

Who can read the shared secret? Who can change the allow-list? If the answer is "nobody knows", fix that first.

DaletMart Checklist: Row-level security screen

How is the webhook endpoint secured without a bearer token?

Notably, webhooks are the one door without a bearer token in commerce data security. Channels cannot carry a CRM token. So the endpoint relies on a per-channel URL plus a signature. Treat the URL as a sensitive secret.

First, the receiver checks that the channel exists. It also checks that the provider slug in the path matches the channel's connector. A mismatch returns a 403 error. Next, the body is read into a bounded buffer.

Second, the connector verifies a signature over the raw bytes. A bad signature returns 403. Notably, verification is fail-closed by default.

An unverified webhook is rejected unless a channel's credentials explicitly allow unsigned traffic. Also, connector modules define their own signature checks, since each provider signs differently.

A body that is not a JSON object returns 422.

Likewise, payment card data in a webhook body is refused with 422. Privacy topics from Shopify store only a digest in the generic log. Meanwhile, webhook workers connect under the bypass role.

They filter by tenant on their own. That filter keeps tenant isolation intact.

What does commerce data security keep out of our storage?

Overall, some data should never land on disk. DaletMart is built to refuse the items in the list. Refusal happens before storage, not after.

  • Channel credentials in plain text: AES-256-GCM encryption at rest, with no production start without a key.
  • Credentials in API responses and logs: Not returned and not logged.
  • Payment card data in webhooks: Rejected with an error before storage.
  • Card or credential keys in personal facts: Rejected before storage.
  • Card-shaped tender references at the register: Refused by the payment data checks.
  • Unsigned webhooks: Rejected unless explicitly allowed per channel.

A secret that is never written cannot leak from a backup. In addition, that approach to commerce data security costs less than guarding a copy you never needed.

DaletMart Ledger: Data security screen

Which browser controls matter for a module inside a CRM?

Overall, DaletMart lives inside your CRM, so the browser matters for commerce data security. In fact, the content security policy uses a frame-ancestors allow-list. By default it allows only the same origin, and you add your CRM origin.

DaletMart does not set a deny-all frame header. That would block the embed it depends on. Instead, the practical step is to keep the allow-list short and exact. Any origin on that list can frame the interface.

Finally, the token travels from the CRM to the page as injected configuration. Therefore, protect the CRM page that hosts the embed. Give it the same care as the secret that signs the tokens.

What do governance, evidence and open gaps look like now?

Overall, controls in code are not a governed service. Commerce data security needs both. This section lists the records DaletMart keeps and the evidence behind the claims. It also lists the items that stay outside the code.

Which facts about a person does the system store and why?

In fact, DaletMart stores personal facts of 34 kinds. Each has a state, an origin and a sensitivity class. Classes are personal, sensitive and highly sensitive.

Fingerprint data is treated as biometric. Highly sensitive kinds include religion, political affiliation, race or ethnicity, blood type, government ID and passport.

Fingerprint, government ID, passport and ID expiry are disclosed to the originating tenant only. Notably, these kinds carry legal duties for you. DaletMart records provenance and does not replace legal review. In particular, the buyer identity page explains the fact model.

First, marketing consent history is append-only. Second, privacy rights requests follow rules set by jurisdiction. Third, erasure removes personal data but keeps a bounded set of commercial facts. Amazon and eBay data are excluded from customer identity by design.

What tests exist, and what do they not show us?

First, the README records one earlier complete backend run of 12,750 tests with 3 intentional skips. That run used a verified-empty database at an earlier migration head. Notably, the repository does not claim a fresh run at the current head.

The same record lists items that remain external to the code. They are production legal approval, key custody, backup and restore, a payment assessor review and live canaries. A security review should treat that list as its own work plan.

Which open items must a reviewer see in the list?

These open items shape any commerce data security review, so your commerce data security work starts with them. Read them before you sign off.

  • SOC 2 readiness: The program is underway, with controls aligned to the AICPA Trust Services Criteria. DaletMart is GDPR, HIPAA and CCPA/CPRA compliant.
  • Legacy header identity: With no shared secret set, the API reads identity from headers. In fact, the documentation limits this mode to tests and local fixtures. However, the production check enforces a 32-byte floor only when a secret is set. Nothing forces one to be set, so confirm yours is.
  • Workers bypass row-level security: Their isolation depends on explicit tenant filters in code.
  • Webhook URL: The endpoint has no bearer token, so URL secrecy and signatures carry the weight.
  • Connectors are offline-tested: No live provider account has exercised them.
  • Suite links are off: The 18 Dalet suite integrations start disabled until you open them.

Marketplace rules and privacy law duties stay with you as the merchant. Security is never only a code matter.

DaletMart Checklist: SOC 2 readiness screen

What should a commerce data security review ask you first?

  1. Who holds the credential encryption key, and how will you rotate or recover it?
  2. Which system mints CRM tokens, and who can reach the shared secret?
  3. How will you confirm that your deployment sets a shared secret in production?
  4. Which roles hold bulk and pricing capability grants, and why?
  5. How will you test tenant isolation and location limits for one user?
  6. Who monitors worker queries, since workers bypass row-level policies?
  7. Which webhook URLs exist, and who can see them?
  8. Which sensitive fact kinds will you actually store, and under what legal basis?

Use these questions to scope your commerce data security review. Short answers to common points sit in the frequently asked questions. Terms such as tenant and row-level security are defined in the glossary.

Example scenario: can a junior editor see a second brand?

The roles are generic, and the story reports no results. First, an agency gives a junior editor a user-level token. It holds the listings capability and one marketplace location of brand A.

Next, the editor opens an order list. It shows only rows for that location and rows with no location. A direct call for a brand B order id returns nothing.

Row-level security blocks the other tenant. Finally, a price update attempt fails. The pricing capability was not among the capability grants.

The security lead records all three results as test evidence for commerce data security. Each one maps to a control above. None relies on trust in the editor.

Commerce data security also depends on what sits outside DaletMart. All 146 commercial connectors are built and tested offline against mock transport. So no live provider account has exercised them. Review each provider's own sign-up and credential rules in the connector overview first.

The platform view is on the platform overview. Use it to place these controls inside the full request path.

How should you prepare for a review meeting with the team?

First, start your commerce data security review with the gaps, not the strengths. Next, share the open items list and add your own controls beside each one. Then mark which items must close before go-live.

Then book a meeting with us. We will walk the request chain on a worked example. We will also talk through each open item with your security team.

Common questions teams ask about security and how it works

How does DaletMart prove who is calling?

Every request carries a signed bearer token issued by your host CRM. The token uses one algorithm only, so unsigned or algorithm-swapped tokens fail. Tenant, user, capabilities, level and locations come from the token claims.

Is tenant isolation enforced only in application code?

No. For user requests the API switches to a database role with no bypass and sets the current tenant. The isolation policies are forced, so they bind even a table owner.

How are channel credentials protected?

They are encrypted with AES-256-GCM using a random nonce and a key derived from a secret of at least 32 bytes. They are not logged or returned in API responses.

What is the GDPR, HIPAA, CCPA/CPRA and SOC 2 status of DaletMart?

DaletMart is GDPR, HIPAA and CCPA/CPRA compliant. Its SOC 2 readiness program is underway, with controls aligned to the AICPA Trust Services Criteria.

Can DaletMart store card numbers?

It is built to refuse them. Webhook bodies that carry payment card data are rejected with an error. Personal facts with card or credential keys are rejected before storage.

What should a security reviewer test first?

Test the edges that rely on you. Use two tenants and confirm that one cannot read the other. Send a webhook with a bad signature.

See how DaletMart fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.