theapsgroup / steampipe-plugin-vault

Use SQL to instantly query Hashicorp Vault secrets, certs and more. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/theapsgroup/vault
Apache License 2.0
14 stars 8 forks source link

Rename KV Secret `path` to `mount`, and split secret `key` into `path` and `name` #34

Open pdecat opened 1 year ago

pdecat commented 1 year ago

This PR renames path to mount, and splits the secret's key into path and name.

This allows to query only some paths without loading all KV secrets from all mounts (which can be quite expensive with large Vault instances).

Sample query with this new model:

> select * from vault_kv_secret where mount = 'mymount/' and path = 'my/secret/path/' and name not like 'pattern%'

Marked as draft because: