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

Fetch all Vault secrets with a single request #123

Open
anze3db opened this issue Oct 2, 2024 · 2 comments
Open

Fetch all Vault secrets with a single request #123

anze3db opened this issue Oct 2, 2024 · 2 comments

Comments

@anze3db
Copy link

anze3db commented Oct 2, 2024

Use Case

We want to use 1Password as the secrets store for our Django Application, but from what we can tell, each secret requires a separate network request. We expect our Django App to have tens or even hundreds of secrets at some point, so loading each with an individual network call will be very slow, especially since we would have to do this every time the app starts.

Is it possible to fetch all the secrets in a vault with a single network call?

Requirements and desired behavior

No response

Additional information

To get around this, we are considering storing all our application secrets in a single field (e.g., by uploading the .env file). Is this the intended approach to avoid multiple network calls? The downside is that the experience of changing uploaded files inside 1Password isn't ideal as it requires downloading the file, editing locally, and uploading again.

@AndyTitu
Copy link
Contributor

AndyTitu commented Oct 3, 2024

Hey @anze3db you are right that currently each secret (each item to be more precise) you want to fetch with the SDK requires its own network call, so retrieving multiple secrets at once will bottleneck in network IO. We are aware of this limitation, and we are working on supporting batch retrieval of items through the SDK, aka provide a function that requires only 1 network call to retrieve up to 50 items at once. Not making any commitments on the timeline, but we have this on our radar currently.

@anze3db
Copy link
Author

anze3db commented Oct 3, 2024

@AndyTitu Thank you for the update. 50 items at once should be enough for our use case, thanks! 👍

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

No branches or pull requests

2 participants