Abhishek Manjegowda
c1283c2875
fix(controller): Allow wildcard resources with specific actions in rate limit config ( #6550 )
...
* Wildcard API rate limit added
* changes updated
* reviwed changes added
2026-04-17 12:01:13 +05:30
aditya2548
f8363dd06e
[COMPLIANCE] Update Copyright & License Headers
2026-04-06 15:48:57 +05:30
429247f407
[COMPLIANCE] Update Copyright Headers ( #6282 )
...
* [COMPLIANCE] Update Copyright and License Headers
* chore: make gen to generate files with copyright headers
* chore: update missed copyright headers
---------
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com >
2026-01-28 11:05:07 -06:00
dependabot[bot] and Johan Brandhorst-Satzkorn
959fe3ebd3
chore(deps): bump the go group across 7 directories with 5 updates ( #6035 )
...
* chore(deps): bump the go group across 7 directories with 5 updates
Bumps the go group with 4 updates in the / directory: [github.com/coder/websocket](https://github.com/coder/websocket ), [github.com/docker/docker](https://github.com/docker/docker ), [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) and [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt ).
Bumps the go group with 2 updates in the /api directory: [github.com/coder/websocket](https://github.com/coder/websocket ) and [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary ).
Bumps the go group with 1 update in the /plugins/boundary/mains/aws directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary ).
Bumps the go group with 1 update in the /plugins/boundary/mains/azure directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary ).
Bumps the go group with 1 update in the /plugins/boundary/mains/gcp directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary ).
Bumps the go group with 1 update in the /plugins/boundary/mains/minio directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary ).
Bumps the go group with 1 update in the /sdk directory: [github.com/coder/websocket](https://github.com/coder/websocket ).
Updates `github.com/coder/websocket` from 1.8.13 to 1.8.14
- [Release notes](https://github.com/coder/websocket/releases )
- [Commits](https://github.com/coder/websocket/compare/v1.8.13...v1.8.14 )
Updates `github.com/docker/docker` from 28.3.3+incompatible to 28.4.0+incompatible
- [Release notes](https://github.com/docker/docker/releases )
- [Commits](https://github.com/docker/docker/compare/v28.3.3...v28.4.0 )
Updates `github.com/prometheus/client_golang` from 1.23.0 to 1.23.2
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.23.0...v1.23.2 )
Updates `mvdan.cc/gofumpt` from 0.8.0 to 0.9.0
- [Release notes](https://github.com/mvdan/gofumpt/releases )
- [Changelog](https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mvdan/gofumpt/compare/v0.8.0...v0.9.0 )
Updates `github.com/coder/websocket` from 1.8.13 to 1.8.14
- [Release notes](https://github.com/coder/websocket/releases )
- [Commits](https://github.com/coder/websocket/compare/v1.8.13...v1.8.14 )
Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases )
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55 )
Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases )
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55 )
Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases )
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55 )
Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases )
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55 )
Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases )
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55 )
Updates `github.com/coder/websocket` from 1.8.13 to 1.8.14
- [Release notes](https://github.com/coder/websocket/releases )
- [Commits](https://github.com/coder/websocket/compare/v1.8.13...v1.8.14 )
---
updated-dependencies:
- dependency-name: github.com/coder/websocket
dependency-version: 1.8.14
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/docker/docker
dependency-version: 28.4.0+incompatible
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go
- dependency-name: github.com/prometheus/client_golang
dependency-version: 1.23.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: mvdan.cc/gofumpt
dependency-version: 0.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go
- dependency-name: github.com/coder/websocket
dependency-version: 1.8.14
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
dependency-version: 0.0.55
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
dependency-version: 0.0.55
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
dependency-version: 0.0.55
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
dependency-version: 0.0.55
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
dependency-version: 0.0.55
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
- dependency-name: github.com/coder/websocket
dependency-version: 1.8.14
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go
...
Signed-off-by: dependabot[bot] <support@github.com >
* Format files with latest gofumpt
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com >
2025-09-08 15:17:46 -04:00
Hugo
a65d5d8573
feat: Normalize fields across various Boundary components ( #5599 )
...
Normalizes various IP/Address/Host fields across Boundary resources/components to comply with IPv6 specifications.
2025-05-13 16:55:28 +01:00
Damian Debkowski
9576ed40dc
test: improve test to ensure ipv6 compatability ( #5113 )
2024-09-19 08:55:27 -07:00
Michael Milton
280e9abb89
feat(billing): Add service handlers for monthly active user counts
2024-02-23 15:44:09 +00:00
Jeff Mitchell and Damian Debkowski
35cef97bd4
Linter fixes PR 3 ( #4415 )
...
* Linter fixes
* fix(bsr): update test to register TEST protocol once
---------
Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com >
2024-02-16 08:30:16 -05:00
Hugo
edbb33de5b
feat(handlers): Implement Policy Service
...
This also includes adding new grant and type primitives, as well as
package domain names.
2024-01-16 13:53:43 -08:00
Timothy Messier
a77c88ae5d
feat(ratelimit): Increase default values ( #4129 )
...
This increases the default rate limits to:
- 1,500 reqs / 30 seconds for list actions in total
- 1,500 reqs / 30 seconds for list actions per IP address
- 150 reqs / 30 seconds for list actions per auth token
And for all other actions:
- 30,000 reqs / 30 seconds for list actions in total
- 30,000 reqs / 30 seconds for list actions per IP address
- 3,000 reqs / 30 seconds for list actions per auth token
This seems to be a reasonable default for a small to medium size cluster
based on some scale testing.
(cherry picked from commit 237c8b6084f42655edaba49055e511163fdf1c53)
2023-12-08 14:53:49 +00:00
Timothy Messier
6e233c879f
fix(ratelimit): Round up when setting Retry-After header
...
Previously this would truncate to the nearest integer, which could
result in clients retrying before the quota has reset, and getting rate
limited again. This also includes an update from go-rate that will round
up when reporting the reset time for the RateLimit header.
Note that in the case of a 503, the Retry-After header was already being
set correctly.
See: https://github.com/hashicorp/go-rate/pull/8
2023-12-04 21:35:20 +00:00
Timothy Messier
35b91c66de
refact(ratelimit): Rename MaxEntries to MaxQuotas
2023-12-04 17:25:16 +00:00
Timothy Messier
9438be4506
feat(ratelimier): Support disabling rate limiting
2023-12-04 16:24:20 +00:00
Timothy Messier
d0c3da5f1d
refact(ratelimiter): Updates due to refactor in go-rate
2023-12-04 16:24:19 +00:00
Timothy Messier
3c2bed92b0
feat(ratelimit): Expose metrics on quota usage
...
This provides two prometheus metrics to monitor the rate limiter:
boundary_controller_api_ratelimiter_quota_storage_capacity:
This is a gague that shows the total number of quotas that can be stored
at a given moment by the rate limiter.
boundary_controller_api_ratelimiter_quota_storage_usage:
This is a gague that shows the number of quotas currently being stored
by the limiter. If this becomes equal to the capacity, requests that
would result in a new quota being created will get limited and receive a
429 status code.
2023-12-04 16:24:04 +00:00
Timothy Messier
0bc423ebd8
feat(controller): Reload api rate limits on SIGHUP
2023-12-04 16:24:04 +00:00
Timothy Messier
f54f2c0fc4
fix(ratelimit): Correctly extract ids from paths with punctuation
2023-12-04 16:24:04 +00:00
Timothy Messier
26854b01a8
feat(ratelimit): Set RateLimit and RateLimit-Policy headers
2023-12-04 16:24:04 +00:00
Timothy Messier
059d4992de
feat(ratelimit): Add support for limits per ip address and auth token
2023-12-04 16:24:00 +00:00
Timothy Messier
2853324479
feat(ratelimit): Add http middleware handler function
2023-12-04 16:20:44 +00:00
Timothy Messier
6da47443fd
feat(ratelimit): Create rate limits from configs
2023-12-04 16:20:44 +00:00
Timothy Messier
0fb77358e5
feat(ratelimit): Define initial ratelimit package and Config
2023-12-04 16:20:28 +00:00