Open anze3db opened 2 months ago
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.
@AndyTitu Thank you for the update. 50 items at once should be enough for our use case, thanks! 👍
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.