Skip to content

Commit

Permalink
Disable dumping of headers on trace
Browse files Browse the repository at this point in the history
Some headers (e.g.: Authorization) contains sensitive information
which should not be logged.
  • Loading branch information
slavak committed Dec 22, 2024
1 parent cbda1d1 commit 019d209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bazel/repository_locations.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ REPOSITORY_LOCATIONS_SPEC = dict(
# Static snapshot of https://quiche.googlesource.com/googleurl/+archive/9cdb1f4d1a365ebdbcbf179dadf7f8aa5ee802e7.tar.gz.
version = "9cdb1f4d1a365ebdbcbf179dadf7f8aa5ee802e7",
sha256 = "a1bc96169d34dcc1406ffb750deef3bc8718bd1f9069a2878838e1bd905de989",
urls = ["https://storage.googleapis.com/quiche-envoy-integration/googleurl_{version}.tar.gz"],
urls = ["https://storage.googleapis.com/quiche-envoy-integration/googleurl-{version}.tar.gz"],
use_category = ["controlplane", "dataplane_core"],
extensions = [],
release_date = "2022-04-04",
Expand Down
3 changes: 2 additions & 1 deletion source/common/http/filter_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,8 @@ class FilterManager : public ScopeTrackedObject,
const char* spaces = spacesForLevel(indent_level);
os << spaces << "FilterManager " << this << DUMP_MEMBER(state_.has_1xx_headers_) << "\n";

DUMP_DETAILS(filter_manager_callbacks_.requestHeaders());
// Disabled to avoid dumping sensitive information (such as AUTHORIZATION header)
// DUMP_DETAILS(filter_manager_callbacks_.requestHeaders());
DUMP_DETAILS(filter_manager_callbacks_.requestTrailers());
DUMP_DETAILS(filter_manager_callbacks_.responseHeaders());
DUMP_DETAILS(filter_manager_callbacks_.responseTrailers());
Expand Down

0 comments on commit 019d209

Please sign in to comment.