Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vault: how to get list of kv secrets

Why am I getting an empty result when I just wrote an secret to a backend:

vault kv write secret/example password=pwd
Success! Data written to: secret/example

However, when I'm trying to get some data from my backend:

vault kv list secret/example
No value found at secret/spring-example/
like image 371
Jordi Avatar asked Dec 17 '22 22:12

Jordi


1 Answers

You don't use list for a single key, you use get.

vault kv list secret/

should list your example key, and

vault kv get secret/example

should display the value of password

like image 79
Colin Nicholson Avatar answered Feb 16 '23 16:02

Colin Nicholson