Export kv key creation time

Hello,

I am wondering if I can make an export of all my kv secrets creation time in order to be able to list which ones are too old and need to be changed.

I see I can do it for a specific kv :
vault kv metadata get /kv/path/to/my_secret

But I can’t seem to do something like this for multiple secrets at the same time, something like “vault kv metadata get /kv/path/to/folder/*”.

Is there any way I could export only the “created_time” and/or “updated_time” metadata of multiple, if not all, secrets on my kv-v2 secret engine ?

Thanks for your help !

I believe you would need to write your own process to accomplish this.

1 Like