2026 customs changesWhat it means

Data Isolation

How CargoLint keeps each organization's data apart: request scoping, application query filters, database row-level security, per-organization storage and encryption, and the two ways data is shared on purpose.

Overview

Every account in CargoLint belongs to an organization, and the organization is the boundary for its data. Documents, shipments, findings, checklists, parties, products, audit logs and usage records belong to the organization that created them.

That boundary is enforced at four independent layers, so a defect in one is contained by the next.

Layer Where it runs What it enforces
Request scoping API The organization comes from the credential, not from request input
Query filters Application Every database query is narrowed to the caller’s organization
Row-level security Database SQL Server itself hides rows of another organization
Container separation Storage Each organization’s files live in a container of their own

Request scoping

A user’s access token carries their organization as an organizationId claim; an API key resolves to the organization it was generated for. On every authenticated request, that organization becomes the context for the rest of the request.

Endpoints take the organization from this context, never from a path, query or body parameter. Changing a request does not change which organization’s data comes back. A record of another organization answers 404, as if it did not exist.

Application query filters

The data access layer registers a global query filter on every organization-scoped entity. The filter is applied to all queries against those entities, including those built through joins and navigation properties.

A query for “all documents” resolves to “all documents of this organization” before it reaches the database. No developer has to remember to add the condition, because the filter is attached to the entity type itself.

Database row-level security

Behind the application filters, SQL Server enforces the same rule on its own.

A security policy named TenantIsolationPolicy applies a filter predicate to the organization-scoped tables. When a request opens a database connection, the caller’s organization is stamped into the session with sp_set_session_context, marked read-only so it cannot be changed for the life of the session. The predicate compares each row’s organization with that value and hides anything that does not match.

This holds even when the application layer is bypassed: raw SQL, a hand-written query, or a mistake that disables the filters still meets the predicate. The policy is created with SCHEMABINDING, so the tables it protects cannot be altered in ways that would silently drop it.

Where a connection has no organization, as in background processing and platform operations, the predicate does not filter, and scoping on those paths is handled in the application layer.

Document storage

Uploaded files are not kept in a shared container with organization prefixes. Each organization has its own Azure Blob Storage container, named for its organization id, created on first use with no public access. The storage account itself refuses public network access.

Files reach users only through the API, which checks the caller’s organization on every request. CargoLint does not hand out direct links to storage.

Every upload is scanned for malware by Microsoft Defender for Storage before it is processed; a file flagged as malicious is not read.

Encryption

Data is encrypted in transit (TLS) and at rest (AES-256, by Microsoft Azure).

Organizations on the Enterprise plan also get a dedicated encryption key in Azure Key Vault and an encryption scope built on it, set as the enforced default of their container, so no file can be written outside it. This fails closed: if the scope cannot be resolved, CargoLint does not create an Enterprise container under the account-wide key instead. Files stored before an upgrade to Enterprise are rewritten under the organization’s key in the background.

When an organization is closed, its documents are purged, and an Enterprise organization’s key is disabled, so copies kept for a while by storage soft delete can no longer be read.

Sharing on purpose

Data leaves your organization only in two ways, both started by someone in it:

  • Partner sharing. An Owner or Admin can share a shipment with a partner organization once the partnership is active, which takes an Owner or Admin of the other organization accepting it. The partner’s members then read that shipment’s documents, findings, checklist and coverage, read-only, as they are now. Ending the share or the partnership closes the view at once. To serve that view, CargoLint checks the share first and then reads your rows for that shipment only, outside the partner’s own organization scope.
  • Sharing links. A user can email read-only results of a document or a shipment to named recipients. Each recipient gets a personal link that works without an account and expires after 3 days.

Sharing a shipment with a partner, and ending the share, are recorded in the audit log.

What you can verify

  • Audit logs record document downloads, deletions, partner shares and every change a person makes, with the user and organization. See Audit Logs.
  • API keys and tokens are issued per organization, so a credential of one organization cannot read another organization’s data through the API. See Authentication.
  • Personal data export returns what CargoLint holds about you. See GDPR Compliance.