From 83411783c3ebd0ffb55a05e8ad63b13b8530747f Mon Sep 17 00:00:00 2001 From: Jonathan Tan Date: Thu, 18 Jan 2018 16:28:01 -0800 Subject: http: support cookie redaction when tracing When using GIT_TRACE_CURL, Git already redacts the "Authorization:" and "Proxy-Authorization:" HTTP headers. Extend this redaction to a user-specified list of cookies, specified through the "GIT_REDACT_COOKIES" environment variable. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- Documentation/git.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Documentation') diff --git a/Documentation/git.txt b/Documentation/git.txt index 3f4161a799..5446d21438 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -646,6 +646,12 @@ of clones and fetches. variable. See `GIT_TRACE` for available trace output options. +`GIT_REDACT_COOKIES`:: + This can be set to a comma-separated list of strings. When a curl trace + is enabled (see `GIT_TRACE_CURL` above), whenever a "Cookies:" header + sent by the client is dumped, values of cookies whose key is in that + list (case-sensitive) are redacted. + `GIT_LITERAL_PATHSPECS`:: Setting this variable to `1` will cause Git to treat all pathspecs literally, rather than as glob patterns. For example, -- cgit v1.2.3