v0.6.1: Wrapping key escrow to the team's SSH keys
Upgrading
If you already created a wrapping key with 0.6.0, keep its 1Password copy: nothing changes for it.
Otherwise, before running portona-keys init, add portona-recipients.pub to your deployment
repository with the public keys of the people who can recover the key. Each must be an RSA key of
3072 bits or more, because Ed25519 keys can only sign. There are no migrations.
Escrow instead of 1Password
portona-keys init no longer needs the 1Password CLI. It encrypts the new key to every recipient
with RSA-OAEP (SHA-256) and writes the result to keys/<worker>-wrapping-<key id>.json, which you
commit. Only then does it set the Worker secret. It needs only a cf login that can write Workers,
so an agent can run it without anyone’s password-manager session. It never overwrites an escrow
and still refuses to replace a wrapping key the Worker already has.
portona-keys recover <file> --check is the recovery drill: pipe one recipient’s private key in,
for example from op read, and it prints the key’s id. Any recipient can also open their entry with
plain openssl. See Wrapping key.
The Keys view’s wrapping key card now says the key is escrowed to your team’s SSH keys.