wandera / 1password-client

Python wrapper for OnePassword CLI developed at Wandera.
MIT License
47 stars 25 forks source link

Add support for secret references with `op read` #66

Open adnandaut opened 1 week ago

adnandaut commented 1 week ago

Is your feature request related to a problem? Please describe. The 1Password CLI supports using secrets references like op://<vault-name>/<item-name>/[section-name/]<field-name>, which can be read using the op read command.

Describe the solution you'd like I would like the OnePassword class to support reading secrets in the above fashion.

Describe alternatives you've considered The alternative would be using the UUID or name of the item. But that is just a different feature. Using op read also has the advantage of being independent --reveal as mentioned in #65.

Additional context If you are in, I would be willing to implement the feature myself and send you a PR. Just let me know!