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
Brian Kassouf
303c2aee7c
Run a more strict formatter over the code ( #11312 )
...
* Update tooling
* Run gofumpt
* go mod vendor
2021-04-08 09:43:39 -07:00
Mark Gritter
85c1ae1002
Fix error in log; add additional log on conflicting quotas. ( #10888 )
2021-02-10 12:24:35 -06:00
Vishal Nayak
8613ba88a6
Fix quota enforcing old path issue ( #10689 )
...
* Fix db indexing issue
* Add CL update
2021-02-09 05:46:09 -05:00
Mark Gritter
d0994340fb
Fill in missing lease ID deterministically. Generate a UUID on creation. ( #10855 )
2021-02-08 13:46:59 -06:00
Aleksandr Bezobchuk
3bce568535
rate limit: fix initialize defaults ( #10536 )
2020-12-14 14:55:52 -05: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
f873863263
Merge PR #9667 : Rate Limit Backoff
2020-08-16 22:09:18 -04:00
Alexander Bezobchuk
1e262e5648
Merge PR #9581 : Rate Limit Quota Headers
2020-07-29 15:15:05 -04:00
Vishal Nayak
14779e9f9d
Remove prefix for exception paths; add sys/internal/ui/mounts ( #9512 )
2020-07-17 10:55:38 -04:00
Alexander Bezobchuk
ea13485c7d
Merge PR #9502 : Resource Quotas: Remove 'burst' Param from Rate Limiter
2020-07-16 14:34:43 -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
Alexander Bezobchuk
dfb28a8fcc
Merge PR #9390 : http: revert resource quota changes
2020-07-07 00:05:28 -04:00
Vishal Nayak
c6876fe00f
Resource Quotas: Rate Limiting ( #9330 )
2020-06-26 17:13:16 -04:00