Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to create vaults #36

Open
demon opened this issue May 16, 2024 · 9 comments
Open

A way to create vaults #36

demon opened this issue May 16, 2024 · 9 comments
Labels
enhancement New feature or request

Comments

@demon
Copy link

demon commented May 16, 2024

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
Copy link
Contributor

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
Copy link
Author

demon commented May 30, 2024

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
Copy link
Contributor

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?

@SimonBarendse SimonBarendse added the enhancement New feature or request label Aug 14, 2024
@simonbaker-tio
Copy link

Just to add to this. It's absolutely imperative for us to be able to programmatically create Vaults. We're an MSP and would like to use 1Password to store a Vault per customer but we've got 1000+ supported customers.

@sadiaazmal
Copy link
Contributor

Hi @simonbaker-tio,

Thank you for sharing your feedback and for your interest from the MSP perspective. We’d love to dive deeper into your specific use case as we may already have tools that could support you. Please reach out to us at [email protected], and we’ll ensure you’re connected with the right team at 1Password.

Looking forward to hearing from you!

@MarioBartolome
Copy link

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.

Hi @sadiaazmal, any updates regarding this enhancement?
We'd love to be able to programmatically create Vaults and manage them (specifically the "Update vault access & permissions" functionality would be a game changer instead of using share-links for each secret) via the SDK.

Thank you!

@sadiaazmal
Copy link
Contributor

Hi @MarioBartolome

Thank you for reaching out and sharing your feedback on programmatically creating and managing vaults, including updating vault access and permissions. We recognize how impactful this functionality would be, and it’s something we’re actively considering as we balance priorities across our roadmap.

To better understand your needs, could you share more details about your specific use case and the value this feature would provide? Additionally, do you have a preferred authentication method for managing vaults and permissions? Your insights will help us shape the feature to meet your needs effectively.

@MarioBartolome
Copy link

Hi @sadiaazmal,

Ideally we would like to integrate 1Password's Python SDK with our application's backend to achieve the following:

  • Use a Service Account with enough permissions to create and manage new vaults
  • Once a user logs in a new Vault is generated for them.
    • Not possible from the SDK but possible from the CLI.
  • New secrets are generated for the user.
    • Unfortunately not in a new Vault at the moment, but in a predefined Vault as the Service Account can't use the SDK to achieve this.
  • The user gets access to the vault and its secrets.
    • Not to the entire Vault, as it is the predefined one at the moment and not a user-specific Vault, but only to the specific secrets. We are currently sharing a share-link for the secrets with the users.

All of these operations are possible from the CLI (op vault ...), but using it from a programatic environment sets a bad precedent and is prone to input sanitization issues.

Thank you!

@sadiaazmal
Copy link
Contributor

@MarioBartolome Thank you for providing more details about your use case, this insight is invaluable as we shape our 2025 roadmap. We'll keep your input in mind as we refine our plans, please let me know if you have any additional thoughts or requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants