How does row-level security guard the data of each tenant?
Every tenant table has row-level security enabled and forced. Indeed, each request opens a session and sets the current tenant as a database setting. The database then filters every query by tenant, whatever the application code asks for.
Keep your own notes for later. Ask for the code behind each claim.
Each step is recorded with its date.
Each route declares the capability check that it needs.
Review the worker role with extra care.
The API connects with a role that is not a superuser and cannot bypass row-level security. Also, a superuser or a bypass role would bypass isolation without a sound. DaletPipe checks the role at startup and logs a critical message if it finds one that bypasses the policy.
Which three database roles split the duties in this system?
The owner role runs migrations. Likewise, the restricted API role serves requests and stays bound by row-level security. A separate worker role can see across tenants so that schedulers can find due work.
Strong crm data isolation makes the database refuse the wrong query. Overall, each route declares the capability check that it needs.
Production mode requires a dedicated worker database URL when workers are on. Moreover, the cross-tenant view exists to list work and not to read customer data freely. Tenant work done by a worker still runs inside a tenant-scoped transaction.
Why does a worker role need extra care in review?
It is the one role that crosses tenants, so a mistake there matters most. Review which queries it may run and which tables it may touch. Test that no customer data path uses it.
Short checks beat long debates. Write down what you find.
Design crm data isolation in layers so one bug cannot expose a customer.
Write crm data isolation tests into the release checklist. In fact, a location check compares the connection with the caller.
How do capability checks limit what each caller can do?
The API recognizes nine capabilities, such as connections read, connections write, sync run and records read. Indeed, each tenant data route declares the one it needs. Also, the server refuses a call without it. Also, a caller with an unknown capability name is rejected outright.
A failed location check returns not found.
A capability check runs in the API on every call.
These checks run in the API. Therefore, a modified interface cannot grant itself wider rights. Roles such as analyst or auditor are built by combining capabilities in your own host and not inside DaletPipe.
How do location checks narrow what a caller may see?
Every new connection requires an exact commercial location. Thus, on each call, the server compares that location with the caller's granted locations. Only a caller with the all-locations capability skips the comparison.
Share the result with your team. Check the facts again each quarter.
Test crm data isolation with two tenants before every launch. Indeed, a capability check runs in the API on every call.
A mismatch returns not found and not forbidden. Therefore, a caller learns nothing about records outside its scope. Besides, the same check covers sync runs, records, mappings, receipts and evidence. The user interface offers hints, and hints are not authorization.
How are provider secrets kept out of reach of browsers?
DaletPipe stores no CRM secret. A connection holds coordinates that point to DaletAuth, and tokens come from DaletAuth when a call needs one. Likewise, they are cached briefly with a 60 second safety margin. Also, the browser never receives a provider secret.
Every change is reviewed by a second person.
Row-level security filters every query by tenant.
Share crm data isolation results with security reviewers. In addition, a failed location check returns not found.
Outbound webhook secrets are sealed with AES-256-GCM before storage. Also, the sealing key comes from a deployment setting. A sealed value cannot be moved to another subscription.
The reason is that the tenant and subscription are bound into it. In fact, use a different secret for each subscription.
Which guards in production refuse a risky setup at start?
Production mode validates its own configuration at startup. It refuses wildcard origins and wildcard trusted hosts, a placeholder DaletAuth key and workers without a dedicated worker database URL. Interactive API documentation pages are not served.
Plain words help every reviewer. Small steps are easy to audit.
Each route declares the capability check that it needs.