obfuscate auth header (#254)

This commit is contained in:
Adil Hafeez 2024-11-08 15:17:39 -06:00 committed by GitHub
parent 88d0f99866
commit 9081eb0f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 49 additions and 3 deletions

View file

@ -13,7 +13,7 @@ use common::{
HEALTHZ_PATH, REQUEST_ID_HEADER, TOOL_ROLE, TRACE_PARENT_HEADER, USER_ROLE,
},
errors::ServerError,
http::{CallArgs, Client},
http::{CallArgs, Client}, pii::obfuscate_auth_header,
};
use http::StatusCode;
use log::{debug, trace, warn};
@ -48,7 +48,7 @@ impl HttpContext for StreamContext {
trace!(
"on_http_request_headers S[{}] req_headers={:?}",
self.context_id,
self.get_http_request_headers()
obfuscate_auth_header(&mut self.get_http_request_headers())
);
self.request_id = self.get_http_request_header(REQUEST_ID_HEADER);