adkos GitHub

Improvement

Updating without fear, and where adkos stands

Updating is scary.

We’ve all been there. You update, you restart and something no longer works.

I spent day four making sure that doesn’t happen in adkos.

The loader keeps two copies of the system. A and B.

The new version boots on trial. If it confirms everything is fine, it stays. If not, the computer goes back to the previous one on its own.

Without you doing a thing.

Then I took on something stranger.

Some thieves don’t open the safe. They listen to how long it takes to answer. If it takes a little longer for some keys than others, they have a clue.

Now the disk encryption, AES, and the key exchange always take the same time. And a test measures it with every change. The other parts that handle secrets don’t have that test yet. It’s on the list.

Processors, to go faster, guess what you’re about to do. Sometimes that guess leaves crumbs an attacker can pick up. I put defences against that in place. The kernel already moved to a different place in memory on every boot. Now its stacks and working memory do too, so nobody knows where to look. And I left one thread per core, so two programs don’t share the same brain.

The rest, more down to earth:

What gets written to disk really gets written, instead of sitting halfway in a buffer.

No device can touch memory until the doorman has fenced it off.

More automatic reviewers hunting for memory bugs and for bugs with several threads at once.

And a review from an attacker’s point of view. It found real bugs, and I fixed them one by one.

So where does adkos stand?

The roadmap now has four stages. Each one says what has to be met to call it done.

And the next big thing is still the same.

For now, adkos only boots on a pretend computer.

Next is the real one.