When people ask how we do security at Northstar, they expect a list of tools. The real answer is more boring and more useful: a handful of rules we apply without exceptions, even when they're inconvenient.
These are the six that matter most.
1. Plaintext needs a justification
On most teams the question is "should we encrypt this?" At Northstar it's the other way around: why isn't this encrypted?
Every new column that stores something about a person (email, name, phone number, IP address, document) is encrypted with Northstar Cipher before it reaches the database. If a field stays in plaintext, someone has to write down why and someone else has to approve it.
What if you need to search by that field? To look up a user by email, we store a cryptographic fingerprint (an HMAC) next to the encrypted value. You can find the record without the database ever knowing the email.
If data has no reason to be in plaintext, it isn't.
2. Leaks go out the back door
Almost nobody steals a database through the front door. Information escapes through places nobody checks:
- Error messages that include the full SQL query, values and all.
- Application logs that print the user object "for debugging."
- Sessions stored in plaintext in the database or Redis, with the IP and browser.
- Failed-job queues that keep, forever, the email that couldn't be sent.
- Temp files from exports and uploads that nobody deletes.
- A "log" mailer someone left configured, writing every email, sign-in links included, to a file.
We audited every one of our products for exactly this and fixed it. Database errors now hide their values, sessions no longer store the IP or browser, failed jobs are pruned, temp files are swept, and the applications refuse to start in production with a log mailer.
3. No secret lives in a file
The classic .env on the server is plaintext on a disk. It gets copied into backups, slips into Docker images, and anyone who gets into the machine can read it. Verizon's 2025 Data Breach Investigations Report found that secrets leaked on GitHub take a median of 94 days to be fixed.
That's why we built nskms, the Northstar KMS CLI. It starts your application, fetches the secrets at that moment and hands them to the process in its environment, without writing them to disk. So there's no .env left on the server to steal.
4. Where there are keys, there's no SSH
The servers that hold or release keys in Cipher run a sealed image: the whole system lives in memory, with no SSH, no shell, no login and no package manager.
That changes how you operate. You can't "log in and take a look." Everything the system needs to say, it says through its metrics and logs, and every change goes through a new image:
- It's built reproducibly. The same sources produce the same bytes, so anyone can verify the image.
- It's measured. We compute in advance the exact fingerprint the hardware will report when it boots.
- It's approved with a signed policy. The approval is explicit and on record.
- It's deployed without being handed anything in advance. The new image boots empty and gets its keys only after proving, with AMD SEV-SNP hardware evidence, that it is the approved image.
It's more work than running ssh and editing a file. That's exactly the point. The full detail is in Not even we can read your database.
5. Assume the breach, and measure it
No system is impenetrable. The useful question is: if someone gets in, will we see it?
In Cipher, every decryption is measured against the normal behavior of that credential, that field and that purpose. A credential that suddenly reads ten times more, a purpose never seen before or a burst of denied requests raises an alert. We also plant decoy records: data no legitimate operation should ever touch. If anyone decrypts one, we know something is wrong.
6. We only promise what the code does
This rule isn't technical, but it may be the most important one. Before launch we checked our own website claim by claim against the code. We found promises that sounded good and weren't true, or weren't entirely true: hosting in a country where the infrastructure didn't exist yet, daily backups that weren't switched on, "encrypted" metadata the server could in fact see.
We removed all of them. They'll come back when the code delivers them. Each product also has its own section in our privacy notice, saying which data it processes and how.
What it costs
These rules have a real cost: more design time, more ceremonious deployments, fewer shortcuts. We pay it gladly, because otherwise our customers pay it.
If your team wants to apply some of this without building it from scratch, that's what Cipher and KMS are for.




