04 · Security · signing and encryption
Three keys, three places, on purpose.
The question behind the design: if someone breaks into the server, what can they make an installed app do? The answer had to be nothing.
- Ed25519
- XChaCha20-Poly1305
- Argon2id
- SHA-256
- Hash-locked dependencies
The three keys
Where each one lives, and what it can sign.
Pick a key
- Lives
- With the build workflows only
- Signs
- Every engine and app build.
- Checked by
- The server on upload, then the app again before download.
- Why it is kept apart
- This is the key that guards what gets installed, which is why it is not on the server.
01
Releases
The server stores builds. It cannot bless one.
Every engine and app build is signed by a release key that exists only where builds are made. The server holds the public half and refuses anything unsigned. The app then checks the signature again itself, before it downloads a byte or trusts a checksum.
So neither a stolen upload token nor a break-in at the server can make an app install something.
02
Updates
Self-update with a key that never touches the server.
The app replaces itself only with an archive signed by the update key. Its public half is built into the app; its private half exists only where the app is built. The server just stores the file and its signature.
03
At rest
Proxy logins and notes are sealed on disk.
Each workspace has a 32-byte key. Sensitive fields in the database are sealed with it, using XChaCha20-Poly1305 with a fresh random nonce each time.
Exported .skulk files are sealed with a key derived from a password through Argon2id, so a profile can move between machines safely.
- Cipher
- XChaCha20-Poly1305, authenticated.
- Password files
- Argon2id key derivation.
04
What is not done
The workspace key is not in the Keychain yet.
The plan is the macOS Keychain. Until the app is signed with an Apple developer identity, every build has a different signature and macOS would ask for Keychain access again after each update. For now the key sits in a file only its owner can read.
It is written down here because a security page that lists only wins is not one.
Next · 01
The app
Rust core, a local proxy relay per open browser, and profiles that survive a crash.
