Scott Miller
0f6543fb41
Upgrade go-limiter to fix building on 1.17 ( #12358 )
...
* Upgrade go-limiter
* Modify quota system to pass contexts to upgraded go-limiter
* One more spot
* Add context vars to unit tests
* missed one
2021-09-01 16:28:47 -05:00
Hridoy Roy
2554563268
(OSS Port) Restrict Quota Deletion to Primary Cluster [vault-2399] ( #12339 )
...
* oss part of vault 2399
* Update vault/quotas/quotas.go
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
* use OSS PR number as changelog entry as indicated by the changelog guide
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
2021-08-17 15:34:43 -07:00
swayne275
35aad1df4a
Vault 2256: fix lease count quotas causing panics on dr secondaries ( #11742 )
...
* lift relevant changes from ent to oss
* fix silent error bug in quotas
2021-06-02 10:12:05 -06:00
Nick Cabatoff
242d258e94
Fix goroutine leak caused by updating rate quotas ( #11371 )
...
Make sure that when we modify a rate quota, we stop the existing goroutine before starting the new one.
2021-04-16 14:00:01 -04:00
Mark Gritter
85c1ae1002
Fix error in log; add additional log on conflicting quotas. ( #10888 )
2021-02-10 12:24:35 -06:00
Scott Miller
d53e26fb7a
Backport last quota fix changes to OSS ( #10335 )
...
* Backport last quota fix changes to OSS
* Get all unit tests
* dupe test
2020-11-06 09:46:31 -06:00
Aleksandr Bezobchuk
0d6a0ec589
Merge PR #10010 : Rate Limit Quotas: Allow Exempt Paths to be Configurable
2020-10-16 14:58:19 -04:00
Brian Kassouf
84dbca38a1
Revert "Migrate internalshared out ( #9727 )" ( #10141 )
...
This reverts commit ee6391b691ac12ab6ca13c3912404f1d3a842bd6.
2020-10-13 16:38:21 -07:00
Jeff Mitchell
e6881c8147
Migrate internalshared out ( #9727 )
...
* Migrate internalshared out
* fix merge issue
* fix merge issue
* go mod vendor
Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com>
2020-10-12 11:56:24 -07:00
Alexander Bezobchuk
1e262e5648
Merge PR #9581 : Rate Limit Quota Headers
2020-07-29 15:15:05 -04:00
Calvin Leung Huang
cf354f6438
quotas: fix data race that could occur if ApplyQuota was called durin… ( #9458 )
...
* quotas: fix data race that could occur if ApplyQuota was called during a db reset
* Abstract out the locking caller
* Remove unneeded lock
* Update
Co-authored-by: Vishal Nayak <vishalnayakv@gmail.com>
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
2020-07-13 11:42:39 -07:00
Vishal Nayak
c6876fe00f
Resource Quotas: Rate Limiting ( #9330 )
2020-06-26 17:13:16 -04:00