Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Start over in development mode

Checked with iron-vault 0.2.0-alpha (features: dev-mode), built from main at 378d57d.

Delete a development install’s vault, config and log, so the service starts ready for init. This deletes every credential in the development vault; the recovery key cannot bring them back.

Development mode only. A protected install is removed with apt purge; see Uninstall and purge. To keep the installation and replace the vault, use iron-vault reset.

Prerequisites

  • A development install, as in getting started.
  • Nothing in the vault you still need. Run iron-vault list first if you’re not sure.

Steps

1. Stop the service

Press Ctrl-C in the service’s terminal. Its last log records are:

{"message":"stopping on SIGINT"}
{"message":"stopped"}

2. Remove its files

rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/iron-vault-dev" \
       "${XDG_STATE_HOME:-$HOME/.local/state}/iron-vault-dev" \
       "${XDG_STATE_HOME:-$HOME/.local/state}/iron-vault-dev-log" \
       ~/.iron-vault-tokens ~/iron-vault-dev.log

It prints nothing. Your own dev-config.toml is kept, but its token_hash lines no longer match any token.

3. Check

Start the service again, as in getting started, and in a second terminal:

iron-vault ping
iron-vault status
the service is running: development profile, admin protocol version 1
service: locked
profile: development — no isolation from malware running as alice
vault: not initialized (run iron-vault init)
vault id: unknown
approval committed: unknown while the vault is locked
approval highest reserved: unknown while the vault is locked
memory protection: NOT protected, swap protection unavailable (RLIMIT_MEMLOCK soft limit is 8315834368 bytes, not unlimited)
recovery last checked: unknown (the vault is not initialized)
credentials: unknown while the vault is locked

Carry on from create the vault. Throw away the old recovery key: it opens nothing now.

4. Uninstall, if you’re done

rm -rf ~/.local/iron-vault-dev

Also remove the bash completion file, if you installed one.

What can go wrong

  • status still shows a vault. The service was still running when you deleted the files, or it uses different XDG_* directories from your shell. Stop it, check the variables, and remove the files again.
  • You removed a vault you needed. There is no undo. Reissue each key from its provider, using your copies of the config and list output.

Reference