formatter: print request header without query string (#15711)
Signed-off-by: Tero Saarni <tero.saarni@est.tech> Mirrored from https://github.com/envoyproxy/envoy @ 57366300c62f61664965f7d721059758e07f1216pull/624/head
parent
bb44774f9d
commit
ad12d3cdae
6 changed files with 42 additions and 0 deletions
@ -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 { |
||||||
|
} |
Loading…
Reference in new issue