forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 6
Ambassador Megapatch on release/v1.17 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
9 changes: 9 additions & 0 deletions
9
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.
This file contains hidden or 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/accesslog/v3:pkg", | ||
| "//envoy/config/core/v3:pkg", | ||
| "@com_github_cncf_udpa//udpa/annotations:pkg", | ||
| ], | ||
| ) |
103 changes: 103 additions & 0 deletions
103
api/envoy/extensions/filters/http/response_map/v3/response_map.proto
This file contains hidden or 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,103 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package envoy.extensions.filters.http.response_map.v3; | ||
|
|
||
| import "envoy/config/accesslog/v3/accesslog.proto"; | ||
| import "envoy/config/core/v3/base.proto"; | ||
| import "envoy/config/core/v3/substitution_format_string.proto"; | ||
|
|
||
| import "google/protobuf/struct.proto"; | ||
| import "google/protobuf/wrappers.proto"; | ||
|
|
||
| import "udpa/annotations/status.proto"; | ||
| import "udpa/annotations/versioning.proto"; | ||
| import "validate/validate.proto"; | ||
|
|
||
| option java_package = "io.envoyproxy.envoy.extensions.filters.http.response_map.v3"; | ||
| option java_outer_classname = "ResponseMapProto"; | ||
| option java_multiple_files = true; | ||
| option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
|
||
| // [#protodoc-title: ResponseMap] | ||
| // Response map filter :ref:`configuration overview <config_http_filters_response_map>`. | ||
| // [#extension: envoy.filters.http.response_map] | ||
|
|
||
| // The configuration to filter and change local response. | ||
| // [#next-free-field: 6] | ||
| message ResponseMapper { | ||
| // Filter to determine if this mapper should apply. | ||
| config.accesslog.v3.AccessLogFilter filter = 1 [(validate.rules).message = {required: true}]; | ||
|
|
||
| // The new response status code if specified. | ||
| google.protobuf.UInt32Value status_code = 2 [(validate.rules).uint32 = {lt: 600 gte: 200}]; | ||
|
|
||
| // The new body text if specified. It will be used in the `%LOCAL_REPLY_BODY%` | ||
| // command operator in the `body_format`. | ||
| config.core.v3.DataSource body = 3; | ||
|
|
||
| config.core.v3.SubstitutionFormatString body_format_override = 4; | ||
|
|
||
| // HTTP headers to add to a local reply. This allows the response mapper to append, to add | ||
| // or to override headers of any local reply before it is sent to a downstream client. | ||
| repeated config.core.v3.HeaderValueOption headers_to_add = 5 | ||
| [(validate.rules).repeated = {max_items: 1000}]; | ||
| } | ||
|
|
||
| // The configuration to customize HTTP responses read by Envoy. | ||
| message ResponseMap { | ||
| // Configuration of list of mappers which allows to filter and change HTTP response. | ||
| // The mappers will be checked by the specified order until one is matched. | ||
| repeated ResponseMapper mappers = 1; | ||
|
|
||
| // The configuration to form response body from the :ref:`command operators <config_access_log_command_operators>` | ||
| // and to specify response content type as one of: plain/text or application/json. | ||
| // | ||
| // Example one: plain/text body_format. | ||
| // | ||
| // .. code-block:: | ||
| // | ||
| // text_format: %LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=$REQ(:path)% | ||
| // | ||
| // The following response body in `plain/text` format will be generated for a request with | ||
| // local reply body of "upstream connection error", response_code=503 and path=/foo. | ||
| // | ||
| // .. code-block:: | ||
| // | ||
| // upstream connection error:503:path=/foo | ||
| // | ||
| // Example two: application/json body_format. | ||
| // | ||
| // .. code-block:: | ||
| // | ||
| // json_format: | ||
| // status: %RESPONSE_CODE% | ||
| // message: %LOCAL_REPLY_BODY% | ||
| // path: $REQ(:path)% | ||
| // | ||
| // The following response body in "application/json" format would be generated for a request with | ||
| // local reply body of "upstream connection error", response_code=503 and path=/foo. | ||
| // | ||
| // .. code-block:: json | ||
| // | ||
| // { | ||
| // "status": 503, | ||
| // "message": "upstream connection error", | ||
| // "path": "/foo" | ||
| // } | ||
| // | ||
| config.core.v3.SubstitutionFormatString body_format = 2; | ||
| } | ||
|
|
||
| // Extra settings on a per virtualhost/route/weighted-cluster level. | ||
| message ResponseMapPerRoute { | ||
| oneof override { | ||
| option (validate.required) = true; | ||
|
|
||
| // Disable the response map filter for this particular vhost or route. | ||
| // If disabled is specified in multiple per-filter-configs, the most specific one will be used. | ||
| bool disabled = 1 [(validate.rules).bool = {const: true}]; | ||
|
|
||
| // Override the global configuration of the response map filter with this new config. | ||
| ResponseMap response_map = 2 [(validate.rules).message = {required: true}]; | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
api/envoy/extensions/filters/http/response_map/v4alpha/BUILD
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now hopefully obviated by envoyproxy#15619