open-vault/website/source/intro/vs/hsm.html.md
2015-04-28 20:32:04 +02:00

1.7 KiB

layout page_title sidebar_current description
intro Vault vs. HSMs vs-other-hsm Comparison between Vault and HSM systems.

Vault vs. HSMs

A hardware security module (HSM) is a hardware device that is meant to secure various secrets. They generally have very strong security models and adhere to many compliance regulations.

The primary issue with HSMs is that they are expensive and not very cloud friendly. Amazon provides CloudHSM, but the minimum price point to even begin using CloudHSM is in the thousands of US dollars.

Once an HSM is up and running, configuring it is generally very tedious, and the "API" to request secrets is also difficult to use. Example: CloudHSM requires SSH and setting up various keypairs manually. It is difficult to automate.

Vault doesn't replace an HSM. There are many benefits to an HSM if you can afford it. Instead, an HSM is a fantastic potential secret backend for Vault. This would allow Vault to access the HSM data via the Vault API, making it significantly easier to use an HSM, while also retaining all the audit logs. In fact, you'd have multiple audit logs: requests to Vault as well as to the HSM.

Vault can also do many things that HSMs cannot currently do, such as generating dynamic secrets. Instead of storing AWS access keys directly within Vault, Vault can generate access keys according to a specific policy on the fly. Vault has the potential of doing this for any system through its mountable secret backend system.

For most companies, an HSM is overkill, and Vault is enough. For companies that can afford an HSM, it can be used with Vault to get the best of both worlds.