fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

Perform Vault operations concurrently #78

Open mattlqx opened 3 years ago

mattlqx commented 3 years ago

Presently all Vault operations are serial, even for reads/writes that operate recursively on paths. These paths are determined by list api calls to find path targets, but after that a for loop iterates over those paths to get or put the data. We could utilize Go channels for this portion to run the read/write api calls simultaneously.

fishi0x01 commented 3 years ago

You are right. Parallelizing the calls could save quite some time when recursively operating on a decent amount of secrets in a path.

I like your idea :+1:

I can take a look at this if you want - but since you self-assigned this I assume you already gave it a shot? :sunglasses: