http: add new early header mutation extension and simple implementation (#23949)
* complete extension except HCM update and test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * complete HCM and just waiting test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * complete almost all test except unit test of HCM Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * add unit test for HCM Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * add release note Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix format Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix mock Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix another mock Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix mock Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix clang tidy and compile options Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * injectable regex engine Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * Update api/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * used header value options Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * remove unnecessary update Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix docs Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * avoid deprecated configuration Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * make mutation order sensitive Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * add death test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix proto Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * address all comments Signed-off-by: wbpcode <wangbaiping@corp.netease.com> Signed-off-by: wbpcode <wangbaiping@corp.netease.com> Signed-off-by: code <wangbaiping@corp.netease.com> Co-authored-by: Matt Klein <mattklein123@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 48687d1a81ab3567abb768f9e7f40b47dcf04e71pull/626/head
parent
6ed9cdca7d
commit
000b551baa
7 changed files with 65 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||||||
|
# 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/common/mutation_rules/v3:pkg", |
||||||
|
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||||
|
], |
||||||
|
) |
@ -0,0 +1,23 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.extensions.http.early_header_mutation.header_mutation.v3; |
||||||
|
|
||||||
|
import "envoy/config/common/mutation_rules/v3/mutation_rules.proto"; |
||||||
|
|
||||||
|
import "udpa/annotations/status.proto"; |
||||||
|
import "validate/validate.proto"; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.extensions.http.early_header_mutation.header_mutation.v3"; |
||||||
|
option java_outer_classname = "HeaderMutationProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/http/early_header_mutation/header_mutation/v3;header_mutationv3"; |
||||||
|
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||||
|
|
||||||
|
// [#protodoc-title: Default early header mutation extension] |
||||||
|
// [#extension: envoy.http.early_header_mutation.header_mutation] |
||||||
|
|
||||||
|
// This extension allows for early header mutation by the substitution formatter. |
||||||
|
message HeaderMutation { |
||||||
|
repeated config.common.mutation_rules.v3.HeaderMutation mutations = 1 |
||||||
|
[(validate.rules).repeated = {min_items: 1}]; |
||||||
|
} |
Loading…
Reference in new issue