HCVA0-003 practice question 14 of 35

The Vault encryption key is stored in Vault's backend storage.

Full set: 285 questions
Answer options
A: True Correct answer
B: False
Correct Answer:
F; A. True; L; S; E
Explanation

The statement is false. A core principle of Vault's security model is that the backend storage is considered untrusted. Consequently, Vault is architected to never store its primary encryption key (often called the Master Key or Root Key) in the backend storage. Instead, this key is protected using Shamir's Secret Sharing algorithm. The Master Key is split into a configurable number of shares, known as Unseal Keys. To make Vault operational (i.e., "unseal" it), a quorum of these Unseal Keys must be provided by trusted operators to reconstruct the Master Key in memory. The Master Key only ever resides in memory and is never persisted to disk or the storage backend.

Why Incorrect

The "True" option is incorrect because it fundamentally misrepresents Vault's security architecture. If the master encryption key were stored in the backend alongside the encrypted data, a compromise of the backend storage would lead to a complete compromise of all secrets within Vault. The entire unsealing mechanism is designed specifically to prevent this scenario by ensuring the key is never stored persistently.

References

1. HashiCorp Vault Official Documentation, "Security Model": "A primary design goal of Vault is that the storage backend is untrusted. The data is encrypted before being written to the storage backend. The encryption key is never stored with the data. In fact, the encryption key is never stored anywhere. Instead, Vault uses a master key... To avoid storing the master key in a single location, Vault uses Shamir's Secret Sharing algorithm to split the master key into a configurable number of shards. A certain threshold of these shards are required to reconstruct the master key."

Source: HashiCorp, Vault Documentation, Concepts - Security Model. Retrieved from https://developer.hashicorp.com/vault/docs/concepts/security

2. HashiCorp Vault Official Documentation, "Architecture": This document describes the "Security Barrier," which is Vault's core component responsible for all operations. It states, "Before the security barrier is established, it is in a sealed state. When Vault is sealed, it cannot perform any operations because it does not know how to decrypt the data in the storage backend... Unsealing is the process of constructing the master key in memory." This confirms the master key is constructed in memory and not read from storage.

Source: HashiCorp, Vault Documentation, Internals - Architecture. Retrieved from https://developer.hashicorp.com/vault/docs/internals/architecture

Scroll to Top