I'm currently learning about vault. I know what is a secret engine etc and how it works. But I have not found any information about difference between vault write
and vault kv put
. In my opinion these commands do the same things. Am I wrong?
The kv secrets engine is a generic Key-Value store used to store arbitrary secrets within the configured physical storage for Vault.
Overview. Newer versions of Vault allow you directly determine the version of a KV Secrets Engine mount by querying `/sys/mounts/:path/tune`, then extracting the "options" and "version" key from the data.
Its main components are: A persistence backend – storage for all secrets. An API server which handles client requests and performs operations on secrets. A number of secret engines, one for each type of supported secret type.
Secrets engines are Vault components which store, generate or encrypt secrets. In Your First Secrets tutorial, you used key/value v2 secrets engine to store data. Some secrets engines like the key/value secrets engine simply store and read data.
Basically, write was used in previous versions of the k/v secret engine.
According to the Vault documentaion, it's better to use put. Write may still be avaible and the only difference might be that in k/v version 2 instead of appending secrets it overrides them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With