What an operator looks after
- The vault: the cluster’s key, in memory only, and the keys sealed under it.
- Your organization’s keys: encryption and signing, as a key management service.
- Repositories, folders and runners: where code lives, who may read it, and what tests it.
- Purges: contents that must go for good, every commit keeping its ID.
Today on one machine: af-server --dev. An identity provider needs more than a laptop.
Start the forge
$ af-server --dev
...$ source ~/af-dev/dev/env
$ af vault status
unsealed: its key is kept in a development fileA development forge keeps its key in a file; a production forge keeps it only in memory, and comes back from k of n recovery shares.
1. Rotate the cluster’s key
A rotation adds a term to the keyring; every earlier term still opens what it sealed.
$ af vault rotate --reason "the yearly rotation"
done: it took effect at once, on your word as an administrator
$ af vault key-status
term 1: installed 2026-11-25T06:35:51.409Z, 5 keys sealed
term 2: installed 2026-11-25T06:35:51.787Z, 0 keys sealed, seals now1. Your organization’s keys
A context is bound to the ciphertext: only the same context opens it.
$ af kms create app-secrets --use-person dev@localhost
done: it took effect at once, on your word as an administrator
$ printf 'hunter2' | af kms encrypt app-secrets --context env=prod > token.enc
$ af kms decrypt --context env=prod < token.enc
hunter2
$ af kms decrypt --context env=test < token.enc
Error: InvalidState: the ciphertext does not open: another key, version or context, or changed
[1]1. Post-quantum signing
$ af kms create releases --spec ml-dsa-65 --use-person dev@localhost
done: it took effect at once, on your word as an administrator
$ printf 'v1.0' | af kms sign releases > v1.sig
$ printf 'v1.0' | af kms verify releases --signature "$(cat v1.sig)"
valid2. Repositories
Each repository has its own history and its own Raft group: a busy one never slows another.
$ af create-repository web --reason "the web front end"
done: it took effect at once, on your word as an administrator
$ af create-repository 'bad name'
Error: "bad name" is no repository's name: a-z, A-Z, 0-9, ., - and _
[1]2. Restricted folders
$ af folder restrict payroll --person dev@localhost --reason "salary data"
done: it took effect at once, on your word as an administrator
$ af folder list
payroll (reads and writes): person dev@localhostA sync never sends a restricted file to anyone else, and no agent has more access than the person it was born from.
2. Runners
A runner makes its own key; an administrator enrolls the public half, and can stop it.
$ af-runner key ~/runner.key > ~/runner.pub
$ af enroll-runner "$(cat ~/runner.pub)" --name build-01 | tee ~/runner.id
done: it took effect at once, on your word as an administrator
born 728c0b8572530d5e71d789b72207b767cfe17ece4c987ce426f0363fb05d567e
$ af stop "$(sed -n 's/^born //p' ~/runner.id)" --reason "machine retired"
stop reference cf45c9a5a83eff799b00a94968176198a2fe4222aeb073bb68f39c019621e546
stopped 728c0b8572530d5e71d789b72207b767cfe17ece4c987ce426f0363fb05d567e3. A cluster
- Each group, the platform’s, each organization’s and each repository’s, is a Raft group on every node: it answers while a majority of its voters is up.
- A node is enrolled by an administrator, then joins: a learner first, a voter once it has caught up.
- Any node answers reads from its copy and sends writes to the group’s leader.
- During an election a write waits for the new leader, up to one election. A refused write says what is known of it: not made, may have been made, or, for an upload, partly made.
$ af cluster peers
...
group 1 the platform leader 1 voters 1 settled
group 2 organization operator leader 1 voters 1 settled
group 3 repository operator/main leader 1 voters 1 settled
group 4 repository operator/web leader 1 voters 1 settled
all 4 groups settled with voters 1, each with a leaderOne node here, so one voter; the lesson joins two more and stops the leader.
5. Purging what must go
- The removal lands first; then the bytes go, and every commit keeps its ID.
- Every read says so, naming the record that approved it; a revert that would bring them back is refused.
- A report lists each purge by path and repository; one made on an administrator’s own word is an exception.
Where to go next
- The operator lessons, with exercises and knowledge checks.
- Running af-server: a node, a cluster, sign-in.
- The vault and recovery keys, and Set up a runner.