Using claubase
For testing only. Names, devices, recovery keys, colleagues and alerts work, against a test setup with a test root. Nothing runs in production and the code has had no outside security review. Repositories, folders and chat are not built. Do not protect real secrets with it.
Your computer checks each colleague's name and devices against the company root, so a lying server cannot slip in a fake colleague without being noticed.
Get the command
claubase runs in a terminal on macOS and Linux. Download it from the download table and check it against SHA256SUMS, then make it executable and name it claubase. claubase help lists every command.
There is no public server to join. You need a setup file from whoever runs your test setup (how they make one).
Your first device
A root holder gives you a setup file and, separately and in person, a printed sheet with the setup fingerprint.
claubase init --setup claubase.setup
claubase name request mira --out mira.request
initasks you to type the setup fingerprint from the sheet. If it is refused and you typed it right, stop and ask for a new file and sheet.- A name is up to 32 lower-case letters, digits and hyphens, starting with a letter or digit.
- Send the request file to the root holders. One of them checks your key with you in person; three of the four sign. This can take a day.
- Run
claubase enrol --cert mira.certwith the certificate they send back. It shows your recovery key, 32 characters in groups of four, and asks you to type it back. Keep it on paper. It is not stored on your computer.
More devices, and lost ones
- Add one: on the new computer run
claubase init, thenclaubase device request mira --out new.request, which shows a short code. On a computer you already use, runclaubase device approve new.requestand type the code. - Revoke one:
claubase device list, thenclaubase device revoke ID. Check what the lost device added: those devices stay active until you revoke them too. - No device left: on a new computer run
claubase init, thenclaubase recover mirawith your recovery key. - New recovery key:
claubase recovery replace, typing the current one. - Lost the recovery key:
claubase recovery new --out FILE, have the root holders certify it, thenclaubase recovery apply --cert FILE. Your name is not reset. - Lost every device and the recovery key: on a new computer run
claubase init --setup claubase.setup, thenclaubase name request mira --reset --out FILE. When the root holders send back the certificate, runclaubase enrol --cert FILE. Your colleagues are told.
Colleagues and alerts
claubase id NAMEchecks a colleague: certified, reset or not, proven current or not, and their keys.claubase statusshows your own state.claubase alertslists changes to who is who, such as a new company root or a reset name. Each stays until you runclaubase alerts ack ID.
If the server shows your computer an older history than it has seen, claubase refuses it and says “sync paused”: tell your security contact. If the witness goes quiet, claubase warns you and, after a day by default, stops trusting added keys.
Files and exit codes
Your files are in ~/.config/claubase on Linux and ~/Library/Application Support/claubase on macOS, readable by you alone. --home DIR or CLAUBASE_HOME chooses another place. One home holds one name. Recovery keys are typed only at a terminal; clear its scrollback once a new key is on paper. Exit codes: 0 done, 1 failed, 2 wrong usage, 3 done but something needs your attention.
The desktop app
The app uses the same home as the command and shows real data. It can set up a computer, request a name or add a device, approve and revoke devices, look people up and show alerts. Enrolling with a certificate, recovering and replacing a recovery key stay in the command; the app shows you what to run. It has no repositories, folders or chat.
There is no app download. The macOS build is signed only ad hoc, which is enough for the computer that built it and not for handing to others. It is not notarised. To try it, build it from the source: bin/build-app-mac on a Mac (needs Go and the Xcode command line tools), or bin/build-app for Linux in Docker.
Repositories, folders and chat (not built)
The aim is plain git against an encrypted remote. The address below comes from the design and may change; it does not work today.
git clone claubase://mosswood/platform/infra-config
The server could not read your code, so there would be no web diffs or pull requests. Someone removed from a team could not read new pushes, but would keep any clone they already have.