23 November: groundwork for keeping accounts apart in the database
Behind the scenes: we are preparing ZeroLog for a database that keeps accounts and companies apart by itself. Nothing changes for you yet.
Nobody directly: this prepares the database to keep accounts and companies apart by itself. Nothing changes yet. No action needed.
Why. Today, keeping your data apart from everyone else's depends on each query in our code asking for the right account. That works, but one forgotten condition would be enough to show someone the wrong rows. We are moving to PostgreSQL, where the database itself enforces the separation, for single accounts and for companies alike.
What is in place. The new database runs next to the current one, with continuous backups and a restore we have tested. The application has no way to switch the separation off. The first part of the code, company administration, already works on both databases. Our tests check that one account never sees, changes or deletes another account's data, and that company admins see their members but never their personal content.
What comes next. The rest of the code follows step by step. We will announce the actual switch in advance. Until then, everything runs as before.
No action is needed.