formatter: print request header without query string (#15711)

Signed-off-by: Tero Saarni <tero.saarni@est.tech>

Mirrored from https://github.com/envoyproxy/envoy @ 57366300c62f61664965f7d721059758e07f1216
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent bb44774f9d
commit ad12d3cdae
  1. 1
      BUILD
  2. 1
      envoy/config/core/v3/substitution_format_string.proto
  3. 1
      envoy/config/core/v4alpha/substitution_format_string.proto
  4. 9
      envoy/extensions/formatter/req_without_query/v3/BUILD
  5. 29
      envoy/extensions/formatter/req_without_query/v3/req_without_query.proto
  6. 1
      versioning/BUILD

@ -245,6 +245,7 @@ proto_library(
"//envoy/extensions/filters/network/zookeeper_proxy/v3:pkg",
"//envoy/extensions/filters/udp/dns_filter/v3alpha:pkg",
"//envoy/extensions/filters/udp/udp_proxy/v3:pkg",
"//envoy/extensions/formatter/req_without_query/v3:pkg",
"//envoy/extensions/health_checkers/redis/v3:pkg",
"//envoy/extensions/http/header_formatters/preserve_case/v3:pkg",
"//envoy/extensions/http/original_ip_detection/custom_header/v3:pkg",

@ -109,5 +109,6 @@ message SubstitutionFormatString {
// Specifies a collection of Formatter plugins that can be called from the access log configuration.
// See the formatters extensions documentation for details.
// [#extension-category: envoy.formatter]
repeated TypedExtensionConfig formatters = 6;
}

@ -96,5 +96,6 @@ message SubstitutionFormatString {
// Specifies a collection of Formatter plugins that can be called from the access log configuration.
// See the formatters extensions documentation for details.
// [#extension-category: envoy.formatter]
repeated TypedExtensionConfig formatters = 6;
}

@ -0,0 +1,9 @@
# 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 = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -0,0 +1,29 @@
syntax = "proto3";
package envoy.extensions.formatter.req_without_query.v3;
import "udpa/annotations/status.proto";
option java_package = "io.envoyproxy.envoy.extensions.formatter.req_without_query.v3";
option java_outer_classname = "ReqWithoutQueryProto";
option java_multiple_files = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Formatter extension for printing request without query string]
// [#extension: envoy.formatter.req_without_query]
// ReqWithoutQuery formatter extension implements REQ_WITHOUT_QUERY command operator that
// works the same way as :ref:`REQ <config_access_log_format_req>` except that it will
// remove the query string. It is used to avoid logging any sensitive information into
// the access log.
// See :ref:`here <config_access_log>` for more information on access log configuration.
// %REQ_WITHOUT_QUERY(X?Y):Z%
// An HTTP request header where X is the main HTTP header, Y is the alternative one, and Z is an
// optional parameter denoting string truncation up to Z characters long. The value is taken from
// the HTTP request header named X first and if it's not set, then request header Y is used. If
// none of the headers are present '-' symbol will be in the log.
// Configuration for the request without query formatter.
message ReqWithoutQuery {
}

@ -129,6 +129,7 @@ proto_library(
"//envoy/extensions/filters/network/zookeeper_proxy/v3:pkg",
"//envoy/extensions/filters/udp/dns_filter/v3alpha:pkg",
"//envoy/extensions/filters/udp/udp_proxy/v3:pkg",
"//envoy/extensions/formatter/req_without_query/v3:pkg",
"//envoy/extensions/health_checkers/redis/v3:pkg",
"//envoy/extensions/http/header_formatters/preserve_case/v3:pkg",
"//envoy/extensions/http/original_ip_detection/custom_header/v3:pkg",

Loading…
Cancel
Save