Skip to content

Adding a recovery key

This guide shows you how to add a recovery key to your group, so you can take the group back or move it even if this host goes away or goes wrong.

You need:

  • a group where you have the admin role
  • a terminal, to make the key in

A recovery key is a key you hold that can take the group back, or move it, without this host. Without one, the group has a single key, the host’s. That means only the host can change the group’s identity, and nobody can move the group without it.

A recovery key ranks above the host’s. Holding one lets you do two things:

  • Undo a change the host made to the group’s identity, within 72 hours of it.
  • Move the group to another host without this one.

The console only ever sees the public half of your key. The secret half stays with you, and the host never has it.

You use the key outside the console, and only when you need it. Then you sign a change to the group’s identity with PLC tools, the tools for the directory that holds it. How recovery works says how, and moving a group says how a move goes.

  1. Open your group’s page. If you have no group yet, start one first. Settings is at the top right of the group’s card.

    Choir's page, with Moderation and Settings at the top right of its card, and erin.test listed as the one member, with the admin role

  2. Make a key in a terminal. The console doesn’t make one for you. One way is goat, a command-line tool for the Atmosphere, from Bluesky. Get it from github.com/bluesky-social/goat, then run:

    goat key generate

    It prints two keys, each under a line that names it. The one under “Secret Key” is the secret half, which you keep. The one under “Public Key” starts did:key:. That’s the public half, and it’s what the console asks for.

  3. Keep the secret key somewhere safe and offline, such as a password manager you trust or paper in a drawer. It’s what recovers the group, and nobody can make it again if it’s lost.

Never paste the secret half into the console, any app, or a chat. Only the public did:key: line goes in.

The console takes keys of two kinds, P-256 and secp256k1. goat makes a P-256 key unless you ask for another, and that default works. Its public half starts did:key:zDnae.

  1. On your group’s page, press Settings. It opens on Profile.

  2. Press Recovery keys. The card lists the group’s keys, highest ranked first. A new group has one, marked This host.

    The Recovery keys tab of Choir's settings, with Add a recovery key at the top right of the card and one key listed, marked This host

  3. Press Add a recovery key. A dialog opens with one field. Above it, the dialog shows the goat command that makes a key, with Copy beside it, in case you don’t have one yet.

    The Add a recovery key dialog, with the command goat key generate and a Copy button, an empty field labelled A key of yours, as a did, and the buttons Cancel and Add

  4. In A key of yours, as a did:key, paste your own public key, the line that starts did:key:z.... The key in the pictures is only an example.

  5. Press Add. The dialog closes, and your key is listed above the host’s, with Remove beside it. The list marks it as a steward’s, with the DID of the person who added it.

    The Recovery keys card with two keys: the new one first, A steward's, added by a DID, with Remove, then the one marked This host

Only people who can change the group’s settings see this tab. In a new group that’s the admin role, and rules and roles says how to give it to someone. A group can have four recovery keys at most, besides the host’s, so several people who run it can each hold one.

The dialog stays open, and the reason shows in a pink box under the field.

The Add a recovery key dialog with a key of another kind in the field and, under it, the reason: that isn’t a key this host takes, so use a did for secp256k1 or P-256

It refuses a key in these cases:

  • The key is of a kind the console doesn’t take. Make a P-256 or secp256k1 key and paste that.
  • The key is on the group already, as yours or as the host’s.
  • Someone else changed the group’s keys at the same moment. Press Add again.

To give up, press Cancel.

The Recovery keys tab always lists them, highest ranked first. The host’s key is last and has no Remove.

  1. Press Remove beside the key. A dialog asks Remove this key?

    The Remove this key? dialog, saying the person who holds it can no longer use it to recover the group, with Cancel and Remove

  2. Press Remove. The key’s row is gone from the list.

    The Recovery keys card back to one key, marked This host, with Add a recovery key at the top right

Once a key is removed, the person who holds it can no longer undo the host’s changes or move the group with it. You can add it again later.

There’s no command for recovery keys. You add, see and remove them in the console. The CLI reference lists the commands there are.

Next: