Whats the difference between storage and backend in the config.hcl file?

While going through the learn Vault guide I found these two scenarios. I would like to understand the difference.
Example 1:
storage “file” {
path = “/mnt/vault/data”
Example 2:
backend “file” {
path = “vault”

Example 1 :

Example 2:

Both of them work. ‘storage’ would be what will be used moving forward, and ‘backend’ is also still compatible.

When we started using Vault (0.9), I believe the documentation reflected ‘backend’, which was updated to ‘storage’ later on across their documentation. We did started off our configuration with ‘backend’, but later updated to ‘storage’. No differences from a functional or operational standpoint that we have noticed.

1 Like