Most business software keeps every customer's data in one shared database, and trusts the application to keep the rows apart. KeyDog works the other way round. The records for each customer, and for each shop, sit in a database of their own. This post explains how that plays out in the three ways to run KeyDog.

One database file

The core of the program is an encrypted SQLite database. The file is encrypted with SQLCipher and opens only with its passphrase. Everything else follows from that choice: the records, the audit log, the backups and the client file are all made from the same kind of file.

Customers are separate rows inside the database, with their own systems, doors, keys and holders. The application filters every query by customer, and that filter is tested. But the stronger guarantee is structural: a copy of the file holds exactly what it was made from.

Desktop: one PC

On the Desktop edition the database is a file on the shop's computer, and you choose where it lives. Scheduled backups go to a folder you pick. A network or cloud-synced folder gives you an offsite copy, but the copy is only as safe as the folder's access settings, so check them.

There is no server to run and nothing to connect to. The cost is that the file lives on one machine, so if that machine fails, you rely on your backups.

Self Hosted: several computers on your server

When several computers need the same records, the Self Hosted server holds the database and the desktop program talks to it over HTTPS. Requests are made one at a time, which keeps the data consistent and is fast enough for a shop.

The server checks each request against the signed-in user's role, so a modified desktop program cannot read bittings it has no right to see. The audit log is written on the server. Backups run from the server, with a verified copy and an optional offsite folder.

Moving a single-PC database onto the server is a supported step. The migration copies every table, reports the row counts on each side, and runs an integrity check on the copy. The original file is not changed.

KeyDog MAX: run by us

KeyDog MAX is the same server, run by us. Each company gets its own instance with one database file and a key derived for that company. That keeps one company's records and sign-ins apart from another's, and tests check that a company code cannot be used to reach another company's files.

Your computers connect with a company code from any location, with no VPN to set up. We handle updates and backups. Leaving MAX works the same way as leaving any other edition: you get your records as documented client files and CSV.

Which one to choose

  • One computer, one shop: Desktop.
  • Several computers, and you want the server on your own hardware: Self Hosted.
  • Several computers or locations, and you would rather not run a server: KeyDog MAX.

The design rule behind all three is the same: a customer's records should stay readable, portable and separate from everyone else's, whichever edition you run.

Tags: architecture, data, storage, isolation