-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into flood-disconnect-goaway
Signed-off-by: Yan Avlasov <yavlasov@google.com>
- Loading branch information
Showing
306 changed files
with
5,509 additions
and
2,515 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.16.0-dev | ||
1.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
api/envoy/extensions/filters/http/ext_authz/v4alpha/ext_authz.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
api/envoy/extensions/filters/http/local_ratelimit/v3/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. | ||
|
||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") | ||
|
||
licenses(["notice"]) # Apache 2 | ||
|
||
api_proto_package( | ||
deps = [ | ||
"//envoy/config/core/v3:pkg", | ||
"//envoy/type/v3:pkg", | ||
"@com_github_cncf_udpa//udpa/annotations:pkg", | ||
], | ||
) |
70 changes: 70 additions & 0 deletions
70
api/envoy/extensions/filters/http/local_ratelimit/v3/local_rate_limit.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.extensions.filters.http.local_ratelimit.v3; | ||
|
||
import "envoy/config/core/v3/base.proto"; | ||
import "envoy/type/v3/http_status.proto"; | ||
import "envoy/type/v3/token_bucket.proto"; | ||
|
||
import "udpa/annotations/status.proto"; | ||
import "udpa/annotations/versioning.proto"; | ||
import "validate/validate.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.extensions.filters.http.local_ratelimit.v3"; | ||
option java_outer_classname = "LocalRateLimitProto"; | ||
option java_multiple_files = true; | ||
option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
||
// [#protodoc-title: Local Rate limit] | ||
// Local Rate limit :ref:`configuration overview <config_http_filters_local_rate_limit>`. | ||
// [#extension: envoy.filters.http.local_ratelimit] | ||
|
||
// [#next-free-field: 7] | ||
message LocalRateLimit { | ||
// The human readable prefix to use when emitting stats. | ||
string stat_prefix = 1 [(validate.rules).string = {min_len: 1}]; | ||
|
||
// This field allows for a custom HTTP response status code to the downstream client when | ||
// the request has been rate limited. | ||
// Defaults to 429 (TooManyRequests). | ||
// | ||
// .. note:: | ||
// If this is set to < 400, 429 will be used instead. | ||
type.v3.HttpStatus status = 2; | ||
|
||
// The token bucket configuration to use for rate limiting requests that are processed by this | ||
// filter. Each request processed by the filter consumes a single token. If the token is available, | ||
// the request will be allowed. If no tokens are available, the request will receive the configured | ||
// rate limit status. | ||
// | ||
// .. note:: | ||
// It's fine for the token bucket to be unset for the global configuration since the rate limit | ||
// can be applied at a the virtual host or route level. Thus, the token bucket must be set | ||
// for the per route configuration otherwise the config will be rejected. | ||
// | ||
// .. note:: | ||
// When using per route configuration, the bucket becomes unique to that route. | ||
// | ||
// .. note:: | ||
// In the current implementation the token bucket's :ref:`fill_interval | ||
// <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive | ||
// refills. | ||
type.v3.TokenBucket token_bucket = 3; | ||
|
||
// If set, this will enable -- but not necessarily enforce -- the rate limit for the given | ||
// fraction of requests. | ||
// Defaults to 0% of requests for safety. | ||
config.core.v3.RuntimeFractionalPercent filter_enabled = 4; | ||
|
||
// If set, this will enforce the rate limit decisions for the given fraction of requests. | ||
// | ||
// Note: this only applies to the fraction of enabled requests. | ||
// | ||
// Defaults to 0% of requests for safety. | ||
config.core.v3.RuntimeFractionalPercent filter_enforced = 5; | ||
|
||
// Specifies a list of HTTP headers that should be added to each response for requests that | ||
// have been rate limited. | ||
repeated config.core.v3.HeaderValueOption response_headers_to_add = 6 | ||
[(validate.rules).repeated = {max_items: 10}]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
api/envoy/extensions/filters/network/ext_authz/v4alpha/BUILD
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
api/envoy/extensions/filters/network/ext_authz/v4alpha/ext_authz.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.