Skip to content

Reach and format

Database per client or multitenant: what protects

By the WorkSail Team team10 min read

This is an automatic translation of the Spanish original and may contain errors. Read the original in Spanish

That each company has its own database reduces the risk that a supplier's failure will show your ads to another client, and little more: it does not protect you from undue access within your own company or replace permits, two-step verification or backup. This article is for IT, Human Resources and management of medium and large companies that evaluate an internal communication platform and want to know what to ask. If your staff is small and the ads do not carry sensitive data, you probably do not need to demand this model.

Tell us what you need to communicate and we will show you WorkSail Team with an example close to your company.

Request a demo

What "multitenant" means and what "a database per client" means

A cloud platform serves many companies at the same time. Each client company is called "tenant," and the tenant model decides where the data of each one is kept. The Microsoft SaaS pattern guide for Azure SQL It distinguishes two basic forms: in the single tenant model, each database keeps the data of a single client; in the multitenant, the same database keeps those of several customers, with mechanisms to separate them.

In practice, when a supplier says "multitenant" it usually refers to this:

ModelHow companies are separatedWhat the separation depends on
Shared databaseAll companies on the same tables; each row bears the identifier of your companyThat each query filters by that identifier, or a rule in the database that does so
One database per companyEach company in its own database; the application may be the same for allThat the application is connected to the correct database
dedicated installationAn entire copy of the application and the database per clientThe infrastructure of each facility

In its comparative table, the same Microsoft guide gives a high customer isolation to the client database and low to the shared base, and in another section explains that a multi-tenant base "necessarily sacrifices" that isolation because the data of several customers are kept together.

What risks reduce having a database per company?

The filter someone forgot

On a shared basis, each consultation has to include the company's identifier. The OWASP recommendation sheet on multitenant applications It lists among the main risks data leaks between customers due to mismade errors or configurations and access to resources from another client by changing an identifier in the request, and recommends including the client's scope in the queries. With a database per company, a consultation without that filter can only return data from the same company, because there are no other data on that base.

There are defenses for the shared base. PostgreSQL, for example, allows security policies by row they decide which rows each user sees in the database. The documentation itself warns that the superusers and the roles with the attribute BYPASSRLS These policies are always skipped, and the owner of the table also skipping them unless it is forced. The protection depends on how it's configured, and from the outside you can't check.

Restore or delete a single company

If an incident forces a client to recover data, the Microsoft guide explains that with a customer base it is enough to restore that base, without touching others, while on a shared basis the restoration of a single client is more complex. The same is true at the end of the contract: deleting or delivering a company's data is more direct when they are on their own base.

The neighbor who sates the service

On a shared basis, a customer with a high load can slow down others. Microsoft calls it the noisy neighbor problem and treats it in its storage guide for multi-tenant solutions. It affects availability rather than privacy, but an urgent ad that takes time to load is also a problem.

What risks do you not cover?

Here it is appropriate to be strict, because "a database per company" sounds more protective than it gives.

  1. Inadequate access within your company. If a person in your organization has permits that don't belong to him, you'll see what those permits let him see, whether or not the basis is separate. A draft Restructuring notice visible to those who should not be leaked the same.
  2. A stolen account. If someone enters with another person's session or access link, the separation between clients does not stop him. It is difficult to check in two steps and to be able to close open sessions.
  3. The supplier's staff. The Microsoft guide it says for the most isolated model of all: the supplier can have access to all databases in all instances. Separating the bases does not prevent the team that maintains the service from reaching them. It is appropriate to know who can, for what and if it is registered.
  4. Which is shared off the base. Attachments, caches, e-mail queues, records and backup may be on common sites. The OWASP sheet asks to include the client identifier in the cache keys that depend on it, separate the stored objects by client and link to your client each message from a shared tail. A separate base with a common file store leaves part of the problem unsolved.
  5. The copies and the encryption. The fact that the data are on a base of their own does not say anything about whether they are encrypted, how much they are copied, or whether the copy has ever been tested.

Physical isolation is also not an absolute guarantee. The application is usually the same for all customers and decides which basis to connect to each request; an error in that step, in session management or in a shared component can mix data even if the bases are separate.

What to ask any supplier

These questions serve any platform, including ours. He requested the written replies.

  • Are my company's data in a database of its own, in a scheme of its own or in tables shared with a client identifier?
  • If they are shared tables, what prevents in the database, and not just in the code, a query from returning data from another client?
  • Are the attached files, backup and records also separated by client?
  • Which of your equipment can access my data, from where, for what, and each access is recorded?
  • Can I demand two-step verification of who he publishes? Can I see and close open sessions?
  • What roles are there and who decides who can publish or see results per person?
  • If we stop working together, how do I get my data back and how do they get deleted?
  • Does any content of the ads, for example when translating them, go to third-party services?

If your company treats data under the RGPD (in the EU), the Article 32 of Regulation (EU) 2016 / 679 calls on the controller and the controller to provide technical and organizational measures appropriate to a level of safety appropriate to the risk, including encryption, the ability to restore access to data after an incident and the regular verification of such measures. The text does not mention databases per client. In our reading, the tenant model is one more measure that can be assessed along with those on that list.

This is our interpretation and does not constitute legal advice. In the face of any doubt, consult with a legal professional.

How it solves WorkSail Team

In WorkSail Teameach company has its own database and enters by its own subdomain. The servers are in the European Union (Hetzner, Germany) under the RGPD. Our team can access the data remotely from Chile to support and maintain the service, and so it is recorded in the safety page.

For the risks that the separate base does not cover, the platform offers:

  • Two-step verification with an authentication app and recovery codes, which the company can demand from the publisher.
  • Visible open meetings, that each person can close.
  • Roles as an employee, Human Resources and administration, and the company decides who can publish.
  • Translation on own servers: the text of the notices is not sent to a third-party translation service.
  • Export of data of each person in a file.

Today we have no safety certifications such as ISO 27001, SOC 2 or ENS, and so the safety page between what we still don't have. If your shopping policy requires one, ask it before moving forward.

When there is no need to demand it

A database per client has a cost. The Microsoft storage guide indicates that this approach can cost more than shared models and that, without automated deployments, the complexity of managing a customer base is overwhelming; pattern guide adds that, in general, the shared base has the lowest cost per customer.

Do not place it as a removal requirement if:

  • Your ads are general notices (schedules, news, events) without personal data beyond the name of the reader.
  • The supplier uses a shared base but answers in writing how it prevents access between customers in the database itself, and also separates files and copies.
  • Your main risk is inside the house: misdistributed permissions, shared accounts or results per person who sees too many people. There you make more by reviewing roles and what is recorded for each reading that changing the database model.

It does make sense to ask when the platform passes through delicate content: restructuring, surveys whose anonymity you promised (see when using an anonymous or nominal survey) or domestic policies with registered acceptance that someone might need to recover or delete separately.

Frequently asked questions

Does multitenant mean that my data are mixed with those of other companies?

It depends on the model. "Multitenant" describes a platform that serves several customers, and can save the data in shared tables, in separate schemes or in a database per client. According to the Microsoft SaaS pattern guide, a multi-tenant application with a tenant database offers a high insulation. Ask the supplier which of the three uses.

Does a database per company prevent the supplier from seeing my ads?

No. It separates your company from the other customers, but the team that maintains the service may need access to all the bases. What you have to ask is who access, from where, for what and if there is a record of each access.

Is a provider with a shared database and security per row safer?

It may be well protected if the rules are applied in the database itself and the application is connected to a user who cannot skip them. The PostgreSQL documentation remember that superusers and roles with BYPASSRLS They always ignore those rules, so the key question is which user the application is connected to.

Sources

Tell us what you need to communicate and we will show you WorkSail Team with an example close to your company.

Request a demo

Do you advise companies? Become an affiliate.

You may also like

· 9 min read

How to report a shift change to the template

What to say when changing shifts or times, with how much room to warn, why channels, how to check that each person saw it and how to answer doubts and complaints.