mirror of
https://github.com/curl/curl.git
synced 2026-08-02 04:10:29 +03:00
creds: mask OAuth bearer token in trace logs
Masked OAuth bearer tokens in credential trace output by emitting *** when a bearer token is present, matching the existing password redaction behavior and preventing sensitive token disclosure in verbose/debug logs. Closes #21659
This commit is contained in:
parent
b190c803e3
commit
38cd720f76
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ void Curl_creds_trace(struct Curl_easy *data, struct Curl_creds *creds,
|
|||
Curl_creds_user(creds),
|
||||
Curl_creds_has_passwd(creds) ? "***" : "",
|
||||
Curl_creds_sasl_authzid(creds),
|
||||
Curl_creds_oauth_bearer(creds),
|
||||
Curl_creds_has_oauth_bearer(creds) ? "***" : "",
|
||||
creds->source);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue