peopledoc / vault-cli

A configurable command-line interface tool (and python library) to interact with Hashicorp Vault
https://vault-cli.readthedocs.io/
Other
80 stars 21 forks source link

Is that possible to add read command to CLI to read single secret from my secret path? #136

Closed sravankurra closed 4 years ago

sravankurra commented 4 years ago

Write to read single secret from my secret PATH the cli client is not support it

Version

vault -V vault-cli 0.13.0 License: Apache Software License

$ vault read secret/my-secret Key Value


refresh_interval 768h foo bar

Expecting command

vault read -field=foo secret/my-secret

ewjoachim commented 4 years ago

If I understand you question correctly, it's one of the new features of 1.x.x :)

$ vault set secret/my-secret key=value
Done
$ vault get secret/my-secret key
value

Does this answer your question ?

ewjoachim commented 4 years ago

Feel free to reopen if needed :)

sravankurra commented 4 years ago

@ewjoachim Thank you it's working from version 1.3.1