1Password / onepassword-sdk-python

https://developer.1password.com/docs/sdks/
MIT License
62 stars 5 forks source link

A way to create vaults #36

Open demon opened 4 months ago

demon commented 4 months ago

Is there any way we can expose this to the user? There isn't currently any mechanism to automate vault creation, short of scripting something around op vault. Exposing this in the SDK would be a game changer for automation.

sadiaazmal commented 3 months ago

Hi @demon, thank you for your feedback! Can you describe your use-case around creating vaults and why this would be a game changer for automation?

demon commented 3 months ago

At $DAYJOB, we are using the 1Password Connect Server alongside external-secrets. We currently have a mapping of 1 vault -> 1 k8s cluster. We automate all of this using Pulumi & Flux -- the notable exception being the creation of vaults (& connect servers).

I've got Pulumi shelling out to op which...works...but isn't very elegant. If we had vault creation (& deletion) available to us in the Python SDK, we could write a package around it to properly manage the resources.

sadiaazmal commented 3 months ago

Thanks for your feedback @demon and explaining your use-case in more depth. We are currently in the process of prioritizing vault CRUD in our roadmap for this year, so please keep an eye out for that! Can you describe your current automation process and how you would like to implement the creation of vaults and Connect servers?