Skip to content
Security

Access decided by the server: record-level permissions and tenant isolation, explained

If the browser received it, the user can read it. Everything else about access control follows from that sentence.

By the Tavuni team4 min read

There is one sentence that explains most access-control failures in business software: if the browser received it, the user can read it. Everything else about permissions follows from taking that sentence seriously.

The browser sentence#

A web page is assembled in the browser from data the server sent. Anyone can open their browser’s developer tools and read that data, whatever the page chooses to display. So a salary column hidden with styling, a disabled “Approve” button, or a menu item removed for junior staff is a design decision, not a control. The data and the action are still there for anyone who looks.

Real access control happens on the server, before the response is written: the salary never leaves, and the approve request is refused when it arrives, whoever sent it and however.

Hiding a field is a design decision. Not sending it is a control.

Four layers of a permission#

“Can this person see this?” is really four questions, asked in order. A system that answers only the first is the most common way confidential data leaks.

LayerThe questionExample
OrganisationDoes this record belong to the person’s organisation at all?A customer of the platform can never see another customer’s data.
ActionIs this person allowed to do this kind of thing?Read, create, update, delete, export, configure.
RecordWhich records of this kind may they act on?All of them, their own, their team’s, or none.
FieldWhich parts of a record they may read may they see?Everyone reads an employee record; only HR reads the salary.

The leaks are rarely on the main screen. They are in the places that read many records at once: a count on a dashboard, a total in a report, a search result, a list of related records, an export. If a manager may see only their team’s orders, then the “open orders” count on their dashboard must also count only their team’s orders. Otherwise the number itself discloses something.

That is why record access belongs inside the query, as part of what the database is asked for, rather than as a filter applied to the results afterwards. Filtering afterwards gets lists right and totals wrong.

Why “not found” beats “forbidden”#

Ask a shared platform for another organisation’s record and there are two honest-sounding answers. “Forbidden” is accurate, but it confirms the record exists, and a patient attacker can map out which identifiers are real. “Not found” tells them nothing: as far as they can tell, there is no such record.

The same idea applies to the organisation itself. A request should never get to choose its organisation by naming it. The organisation comes from who is asking (their session or their key), and a request that names a different one simply finds nothing.

Questions to ask any vendor#

You do not need to read anyone’s code to learn a lot about their access control. Ask:

  1. Is record-level access applied in the database query, or filtered after? Do dashboard counts and report totals respect it?
  2. Do exports, search and related-record lists respect field restrictions?
  3. What does the API return for another organisation’s record: “forbidden” or “not found”?
  4. Can an API key create another API key, or add a member?
  5. When an automation changes a record, does the audit trail say so, or credit the last person who touched it?
  6. Is there an independent security assessment, and if not, what is tested instead?

The last one deserves a straight answer. Tavuni has no third-party certification and has not been independently penetration-tested; its controls are verified by its own automated tests. The governance page lists them.

Written by the Tavuni team. Where an example uses Tavuni’s own output, the numbers come from the example workbook at /try and were computed when this page was built. Corrections are welcome: tell us.

All articles

Try the idea on a real workbook.

The live verification reads an example operations workbook in your browser, compiles its rules and checks every value. No account, nothing uploaded.