Once you enable Auto Unseal, manual Unseal operations disappear from day-to-day work, but Recovery Keys become the organization's last line of defense in their place.
This article walks through the correct mental model for Recovery Keys, the specific scenarios where you need them, storage and rotation procedures, and a concrete break-glass example — covering both exam prep and real-world operations.
Auto Unseal uses an external KMS/HSM (e.g., AWS KMS, GCP KMS, Azure Key Vault, HSM) to automatically decrypt Vault's barrier key, eliminating the Unseal step at startup. Because of this, Shamir Unseal Keys are not generated. Recovery Keys are the operational key issued in their place, used only for exception handling.
Recovery Keys are generated via Shamir's Secret Sharing, and by collecting threshold-many shares you can execute specific recovery operations (such as issuing a new root token or rekeying the Recovery Keys themselves). They are not needed for ordinary secret access or policy management; while Auto Unseal is running, the main operational tasks are storage, audit, and periodic testing.
Positioning of Auto Unseal and Recovery Keys
In an Auto Unseal environment, Recovery Keys are only used for exceptions that ordinary authentication and authorization cannot resolve. The classic case is when all existing root tokens are lost and no policy-based escalation is possible, and you need to issue a new root token.
Recovery Keys are also used to rekey the Recovery Keys themselves (including changing the threshold or share count). Barrier-key rotation (operator rotate) is performed with a root token and does not require Recovery Keys.
| Item | Unseal Keys (Shamir) | Recovery Keys (Auto Unseal) | Cloud KMS/HSM Key |
|---|---|---|---|
| When generated | Without Auto Unseal | With Auto Unseal | With Auto Unseal (external) |
| Primary purpose | Manual Unseal at Vault startup | Exception-time recovery ops (root reissue, rekey) | Automatic barrier-key decryption (at startup) |
| Holder | Human operators | Human operators | Cloud / HSM service |
| Used in daily ops | Required (without Auto Unseal) | Not required (exceptions only) | Required (used automatically) |
| Representative CLI | vault operator unseal | vault operator generate-root -recovery / rekey -recovery | N/A (used transparently by Vault) |
| Impact if lost | Cannot start (in non-Auto-Unseal environments) | Break-glass impossible (recovery very difficult) | Auto Unseal disabled (depends on KMS/HSM availability) |
Define the Recovery Key share count and threshold at init time. A common N-of-M choice is 3-of-5, but you should decide based on your organization's staffing, geographic redundancy, and audit requirements.
For distribution, the pragmatic approach is to output shares wrapped under each operator's PGP public key, then distribute and store them privately per holder. Choose storage options assuming dual custody: offline storage (fire-resistant safes), hardened slots in a secrets manager, or physically sealed vaults.
Preconditions: Vault is running, but all root tokens are lost and escalation is not possible. Threshold-many Recovery Key shares can be collected. Treat the operation as an audited action and create a change record before starting.
Flow: initialize generate-root, record the displayed Nonce and One-time password, then submit threshold-many Recovery Key shares in sequence. At the end, decrypt the encoded token with the OTP to obtain the root. After execution, complete the intended task quickly and ideally revoke or seal off the root.
Break-glass: issue a new root using Recovery Keys
# 0) Environment check
export VAULT_ADDR=https://vault.example.com:8200
vault status
# 1) Initialize the generation process (explicit -recovery)
# Safely record the displayed Nonce and One-time password (OTP)
vault operator generate-root -init -recovery
# Example output:
# Nonce: 6f4c...e1
# One-time password: yxD-2V...-H9
# (Encoded token is NOT shown at this point)
# 2) Submit each Recovery Key share in turn (repeat threshold times)
# <SHARE_i> is the recovery share held by each operator (already decrypted string)
vault operator generate-root -recovery -nonce 6f4c...e1 <SHARE_1>
vault operator generate-root -recovery -nonce 6f4c...e1 <SHARE_2>
# ... The Encoded token appears on the final submission that reaches threshold
# Example: Encoded token: VVNF... (truncated)
# 3) Decrypt the encoded token with the OTP to obtain the root token
vault operator generate-root -decode=VVNF... -otp=yxD-2V...-H9
# Example: Root token: s.p7y... (share over a protected channel)
# 4) After the intended task, avoid long-term retention of root
# e.g., perform only the minimum operations needed for the emergency response
# Reference: rekeying the Recovery Keys (changing threshold / share count)
# Recommended: wrap with each holder's PGP public key
vault operator rekey -recovery -init \
-recovery-shares=5 -recovery-threshold=3 \
-pgp-keys="keybase:alice,keybase:bob,keybase:carol,keybase:dave,keybase:erin"
# After init, submit threshold-many shares in sequence
vault operator rekey -recovery <SHARE_1>
# ... (threshold times)
# On completion, new Recovery Keys are issued (update distribution and receipt records)Rotate the Recovery Keys with rekey -recovery. Service continuity is not impacted, so no planned downtime is required — but you do need human coordination to collect the shares. After completion, promptly destroy the old shares and update both the ledger and audit records.
Barrier-key rotation (vault operator rotate) is performed with a root token and does not use Recovery Keys. The lifecycle of the Auto Unseal wrap key (on the KMS/HSM side) follows the cloud/HSM policy and must be kept consistent with the Vault side. For audit, we recommend at least two audit device backends so that operator endpoint calls are reliably recorded.
The exam frequently tests the division of responsibility between Auto Unseal and Recovery Keys, which operations need which key, and whether you can pick the correct command switches. In particular, lock in whether -recovery is required on generate-root and rekey, and the distinction that rotate is performed with a root token.
Questions often target real-world pitfalls — for example, baiting you toward the wrong answer that 'Auto Unseal means Recovery Keys are unnecessary.' Don't forget the framing: Recovery Keys are not used day-to-day, but losing them leaves you with no way out.
Ops
問題 1
On an Auto-Unseal-enabled Vault cluster, all administrators have lost their root tokens and no normal policy-based escalation is possible. The service is up. Which procedure recovers with minimal disruption and least privilege?
正解: C
In Auto Unseal environments, Unseal Keys don't exist; break-glass in an exception uses Recovery Keys via generate-root -recovery. KMS rotation and barrier-key rotate are unrelated to root reissuance, so the correct answer is the Recovery-Keys-driven root generation flow.
Are Recovery Keys still required even with Auto Unseal?
Yes. They are not used in day-to-day operations, but they are essential for exception handling such as losing all root tokens or rekeying the Recovery Keys themselves. Decide the share count and threshold at init time, and distribute and store them appropriately.
What happens if Recovery Keys are lost?
Break-glass recovery becomes impossible. If you have lost root and the Recovery Keys are also gone, recovery may be infeasible depending on your environment. Bake periodic inventory checks, receipt evidence, offline storage, and dual-custody into your operations.
How do I change the threshold or share count? Is downtime required?
Run vault operator rekey -recovery -init with the new recovery-shares and recovery-threshold, then submit threshold-many shares to finish. The operation runs online and normally does not require service downtime.
Practice with certification-focused question sets
無料で問題を解いてみるNicheeLab Editorial Team
NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.
Vault Core Concepts: Sealed/Unsealed, Auth, Secrets (2026)
Vault fundamentals — sealed/unsealed state, auth methods, se...
Vault Operations Professional (VOP-003): Complete Guide (2026)
Pass the Vault Operations Professional exam — enterprise pat...
Vault Path-Based Routing: API URL Structure (2026)
How Vault's path-based routing works — mount points, sub-pat...
Vault Tokens: Auth Token Mechanics (2026)
Token fundamentals — service vs. batch tokens, accessor, ren...
Vault Token Types: Service, Batch, Periodic (2026)
Service vs. batch tokens compared — performance, ACL behavio...