1Password / onepassword-sdk-js

The official JavaScript SDK for 1Password
MIT License
29 stars 1 forks source link

Support for Creating and listing vaults #50

Open leecookson opened 1 month ago

leecookson commented 1 month ago

Use Case

We have a service wrapper for AWS secrets manager. As we add and update these secrets, which are used to validate client-specific access keys, we would like to create a vault and add the secrets to the new vault, or update existing secrets in those vaults. The vaults would be shared to other teams within our organization.

Listing items within a specific vault would also be needed, so we don't create duplicate items from the service.

Requirements and desired behavior

Generally, would assume the new API's supported by this SDK would work consistently with the existing ones.

The resolve feature seems like it could do this by using shorter paths, but it requires at least a specific vault, item and field. Examples: op:// could return a lis of all vaults op://<vaultID> can return any attributes of the vault itself op://<vaultID>/ could return a list of items within that vault

Otherwise, a more explicit API like this would be good client.listVaults client.getVaultDescription client.listVaultItems

Additional information

No response

AndyTitu commented 2 weeks ago

Hi @leecookson , thank you for your feature request! We agree this is indeed an important feature. We will look into adding this to the SDKs soon.