libopenstorage / secrets

Openstorage support for Key Management Systems
Apache License 2.0
16 stars 16 forks source link

PWX-36873: Add vault cooldowns #86

Closed zoxpx closed 6 months ago

zoxpx commented 6 months ago

What this PR does / why we need it:

Turns out it is easy to overwhelm Hasicorp's Vault, and accidentally cause DDOS-attack

As a fix, we're adding REST cooldown for 5 minutes, to all Vault REST client calls

Which issue(s) this PR fixes (optional) Closes # PWX-36873

Special notes for your reviewer:

zoxpx commented 6 months ago

Note, @adityadani , @CharudathGopal -- looks like the AWS secrets integration test is failing (creds pulled out?)

zoxpx commented 6 months ago

Woops.. forgot to include UT with the original commit (fixed w/ follow-up f9fde71)

zoxpx commented 6 months ago

Ok.. I can't failing AWS Secrets Manager integration test with modifying my tests -- looks like this test has been failing for 7 months.

I'll proceed w/ the squash-commit.