swayne275
4632a26a09
Use %q for quoted strings where appropriate ( #15216 )
...
* change '%s' to %q where single vs double quotes shouldn't matter
* replace double quotes with %q in logs and errors
2022-08-03 12:32:45 -06:00
Pratyoy Mukhopadhyay
113b6885c3
[VAULT-2852] deprecate req counters in oss ( #12197 )
2021-07-29 10:21:40 -07: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
Brian Kassouf
5e8901b5db
Fix token counters test ( #7867 )
2019-11-12 13:33:28 -05:00
Mike Jarmy
d3bb5d60b2
Fix the token counter test so it doesn't miscount the number of tokens. ( #7760 )
2019-10-30 08:03:03 -04:00
Mike Jarmy
56725e694f
fix token counter test so the token won't time out ( #7737 )
2019-10-25 10:55:38 -04:00
Mike Jarmy
5986ce922d
add counters for active service tokens, and identity entities ( #7541 )
2019-10-08 13:58:19 -04:00
ncabatoff
cd747c9318
Add code for writing and reading request counters to storage. ( #5918 )
...
Increment a counter whenever a request is received.
The in-memory counter is persisted to counters/requests/YYYY/MM.
When the month wraps around, we reset the in-memory counter to
zero.
Add an endpoint for querying the request counters across all time.
2019-03-05 14:55:07 -05:00