Check and store your recovery key
Checked with iron-vault 0.2.0-alpha (features: dev-mode), built from main at 378d57d.
Store the recovery key, the AGE-SECRET-KEY-1… line init showed you once, and prove it opens your vault. The
service keeps no copy. Check it while the vault passphrase still works, so a bad copy can still be replaced. See the
recovery design for what the check proves.
Prerequisites
- The service running, Locked or Ready. The check works in both.
- The recovery key from
init.
Steps
1. Store the key
Keep it apart from the vault and from the machine:
- An independent password manager, one this machine doesn’t sync from, or paper, kept somewhere safe.
initalso shows the key as a QR code, which you can print. - Optionally, a passphrase-encrypted file of your own as well, such as one made with
age -p. - Never beside the vault or in the same backup. An encrypted file must live off this machine too.
Keep a copy of your approved config and the output of iron-vault list with it: if the vault is lost, they list the
credentials to reissue.
2. Check the key
iron-vault recovery check
It asks for the key with echo off:
Recovery key:
the recovery key opens vault 8c597c79-…: checked 2026-11-07T10:24:07Z
Or pipe it in:
pass show iron-vault-recovery | iron-vault recovery check
It changes nothing in the vault, and works while Locked (here after iron-vault lock):
locked
the recovery key opens vault 8c597c79-…: checked 2026-11-07T10:24:09Z
3. See when you last checked
iron-vault status | grep recovery
recovery last checked: 2026-11-07 (today)
4. Answer the reminders
After 90 days without a check, the service logs a recovery.reminder record at INFO (at most once a week), and
status adds , overdue. The log is the only reminder, so alert on that event; the
log operations guide has the query. Set the interval, 7 to 365 days, in the
approved config:
[recovery]
reminder_days = 90
Run the check again whenever you move the key to a new place.
5. If you forget the vault passphrase
Not yet run against a build: the output below is what the code prints.
Lock the service if it is Ready, then unlock with the recovery key instead:
iron-vault lock
iron-vault unlock --recovery
It asks for the key, then for a new vault passphrase twice, all with echo off:
Recovery key:
Choose a new vault passphrase of at least 12 characters, different from every approval passphrase. Once the recovery unlock finishes, unlock refuses the forgotten vault passphrase.
New vault passphrase:
Repeat the new vault passphrase:
the vault is unlocked with the recovery key and has a new vault passphrase: the service is Ready
From now on unlock takes the new passphrase only. It also counts as a recovery check. After 5 wrong keys it waits
30 seconds before the next try, doubling up to 15 minutes; wrong vault passphrases don’t count towards that.
A copy of identity.age made before still opens with the forgotten passphrase, so if it may have leaked, rotate the
credentials at their providers too.
What can go wrong
iron-vault: the service answered error 30 (recovery-key-invalid): the text is not an AGE-SECRET-KEY-1... recovery key. Not a recovery key: a truncated paste, a missing line, or another kind of key.iron-vault: the service answered error 31 (recovery-check-failed): the recovery key does not open this vault. Not this vault’s key. If you can’t find the right one, the vault has only its passphrase left, and a forgotten passphrase could then not be recovered: add a new recovery key now, then remove the lost one.recovery-check-unavailable. A vault file could not be read; this says nothing about the key.statusand the log name the file.
Each check logs a recovery.checked record with recovery_outcome opened, invalid, failed or
unavailable.
Reference
- CLI:
recovery check, andunlockfor--recovery. - Errors of
unlock --recovery. - The recovery unlock design.
- The recovery design: what the check proves, and the reminder schedule.
- §16 of the specification.