The defence nobody demos
Security pitches are about prevention: the encryption, the signatures, the firewall. All of it matters, and none of it is the whole story. Because the uncomfortable truth is that some incidents happen anyway — a credential leaks, an insider goes wrong, a mistake ships — and when one does, the question is no longer “how do we stop it?” but “what actually happened, in what order, by whom?”. The answer is the audit log, and an audit log you can quietly edit answers nothing.
So Servor treats the record as a first-class security control, not an afterthought. Every command and every vault access is written down, and the writing is designed so that altering the past is detectable and, at the storage layer, refused outright. This piece is about how that works, what it lets you prove, and — just as important — what it does not do.
Why an editable log proves nothing
A log is evidence, and evidence is only as good as its resistance to tampering. If an attacker who got far enough can also open the log table and delete the three rows that name them, the log is theatre: it reassures you right up until the moment you need it, then quietly does not. The same applies to honest mistakes and disputes — a record anyone can rewrite settles no argument. The property you actually want is not “we have logs” but “the logs cannot have been changed without it showing”. Those are very different guarantees, and only the second one survives contact with an adversary.
Hash-chaining, in plain terms
The mechanism is old and sturdy: each entry carries the hash of the entry before it. Write a new row and it seals in a fingerprint of the previous row; that row sealed in the one before it; and so on back to the beginning. The entries are links, and the hashes are what join them into a chain.
The consequence is the whole point. Change one old entry and its fingerprint no longer matches what the next entry sealed in, and because that next entry's own fingerprint then changes, the mismatch cascades all the way to the present. There is no way to edit a single row in the middle and leave the chain consistent without recomputing every entry after it. Tampering does not stay local; it announces itself.
This is why the chain is worth more than timestamps alone. A timestamp says when something claims to have happened; a hash chain says the record of it has not been reordered or rewritten since. One is a label anyone can set. The other is a structural property of the data.
The storage layer itself says no
Detection is good; refusal is better. On top of the chain, the log is append-only and refuses any change or deletion of past audit entries. This is not application code that an attacker who reached the store could sidestep — it is enforced at the storage layer on any write, from any path. Inserts are allowed; changing or removing history is not. So even someone who has got past authentication cannot tidy up after themselves: they can act, but the act is recorded, and the record refuses to be unwritten.
Detection and refusal are layers, not rivals. The append-only store stops the ordinary attempt at the door; the chain means that even a tampering that somehow got around that refusal would still be visible as a break. Defence in depth applies to the ledger exactly as it applies to execution.
One history, whatever the origin
A record that only covers some of the ways things happen has gaps precisely where an attacker would prefer to work. Servor's command history is unified: stdout, stderr, the exit code and the duration are captured for every command, whether it came from the copilot, a runbook, a manual action, or an interactive terminal session. There is no privileged path that skips the ledger. Combined with the fact that every mutating API route writes an audit entry, and that two-factor authentication is mandatory with re-verification on sensitive operations, the result is a single timeline you can actually trust to be complete.
What the ledger lets you prove
The payoff shows up in two very different rooms. To an external auditor, months after the fact, you can export the chain to CSV and demonstrate it still holds — the entries are in order, the hashes line up, nothing was quietly removed. That is a concrete artefact, not a promise. And to yourself, in the far less comfortable hours after your own incident, the same record answers the questions that matter: what ran, in what sequence, under whose session, with what result. The ledger is harder to corrupt than the operators it records, and that is exactly the property you want when you are trying to reconstruct a bad day.
The honest boundary
A ledger is powerful and it is not everything. Being precise about its limits is what keeps it trustworthy:
- It records; it does not prevent. The chain makes an action accountable after the fact. It does not stop the action — prevention is the job of signatures, authorisation, and the forbidden-command list.
- It stores actions and metadata, not your secrets in the clear. The point is a trustworthy trail, not a second place your credentials could leak; the zero-knowledge design still governs what is readable.
- It can attribute, but it cannot undo. Knowing exactly what a destructive command did is not the same as reversing it — that remains your backup and rollback strategy's job.
- A total wipe of the store is availability, not silent forgery. An attacker who destroyed the whole log has denied you the record; they have not rewritten it undetected. A missing chain and a broken chain are both evidence — noisy failures, not quiet ones.
Where this sits in Servor
The ledger is the third leg of a stool. The first is that we cannot read what we store — the zero-knowledge implementation piece. The second is that we cannot forge an execution — the piece on why our servers cannot run your commands. The third is that whatever does happen is written down where it cannot be quietly changed. The operator-facing discipline that feeds the ledger — approve, sign, verify — is the Plan-Execute-Verify piece, and the operational picture it fits into is in our server operations guide. Questions about the design? Write to hello@servor.app — we always answer.