Making a board take branch builds meant copying team.dev.pub into /etc/robot/trusted_keys under exactly the right name, sed-ing allow_dev_keys in updater.toml, and restarting updaterd. On the Yocto image both live in /etc, which an A/B OS update replaces, so the board quietly stopped being a dev board at the next OS update. updaterd now carries the dev public key built in (always dev-only), and dev keys count when `allow-dev-builds` exists in its state_dir, under /var/lib/robot, which survives OS updates. `sudo robotctl configure --allow-dev-daemon on|off` writes or removes it and restarts updaterd. allow_dev_keys = true in updater.toml still works, so provisioned boards are unchanged; the shipped config keeps it false and nothing ships the marker. Needs an updaterd from a release that carries this: an older one ignores the marker. Docs: updater-design.md §5.4 owns the mechanism; install-dev, cheatsheet-dev, dev-push, architecture, deploy READMEs, config comments, --ref help text, xtask keygen and the dev.yml note point at the command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Trusted public keys
The robot's trust anchor. scripts/install.sh copies these into
/etc/robot/trusted_keys/, which is trusted_keys_dir in
../updater.toml. An artifact is acceptable if its signature verifies
against any key here.
release-1.pub |
signs every release and promotion today |
release-2.pub |
first rotation target if CI or release-1 is compromised |
release-3.pub |
last resort; its private half should never touch a networked machine |
All three ship from the first image, and that is the whole point. A robot can verify
only against the set baked into it, so a robot carrying one key whose private half is
later lost or leaked cannot be given a replacement over the air — it has to be re-flashed
by hand. Shipping the spares now is free; retrofitting them is impossible. See
../../docs/project/ci-setup.md for custody.
Public keys are not secrets. Committing them is correct and intended: they are exactly
what has to be public for anyone to verify what we sign. The private halves live in
~/.duck-keys and a password manager, and only release-1's is in CI.
team.dev.pub is deliberately not in this directory. Every file here is trusted as a
release key on every robot, and a robot that trusts the dev key that way installs anything anyone
on the team builds. updaterd carries the dev key built in instead, usable only on a robot made
a dev board with sudo robotctl configure --allow-dev-daemon on
(updater-design.md §5.4). It is committed at
../dev-key/.
Adding a rotation key
Generate it, drop the .pub here, and it reaches robots on their next install. Note the
asymmetry: a new key only becomes trusted on robots imaged after it was added, so
rotation protects the fleet going forward and cannot rescue robots already in the field.
That is why the spares exist up front.
cargo xtask keygen --kind release --name release-4 --out ~/.duck-keys