diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2020-06-05 21:21:36 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-05 22:05:04 (GMT) |
commit | 827e7d4da470e8b9b222b2cf3b4a3b7f8c3c671f (patch) | |
tree | 34d7ad0f2cb56442cdffd9d102179ad9396277c4 /Documentation/git.txt | |
parent | 7167a62b9e2f648adc11411446f876f2458722a5 (diff) | |
download | git-827e7d4da470e8b9b222b2cf3b4a3b7f8c3c671f.zip git-827e7d4da470e8b9b222b2cf3b4a3b7f8c3c671f.tar.gz git-827e7d4da470e8b9b222b2cf3b4a3b7f8c3c671f.tar.bz2 |
http: redact all cookies, teach GIT_TRACE_REDACT=0
In trace output (when GIT_TRACE_CURL is true), redact the values of all
HTTP cookies by default. Now that auth headers (since the implementation
of GIT_TRACE_CURL in 74c682d3c6 ("http.c: implement the GIT_TRACE_CURL
environment variable", 2016-05-24)) and cookie values (since this
commit) are redacted by default in these traces, also allow the user to
inhibit these redactions through an environment variable.
Since values of all cookies are now redacted by default,
GIT_REDACT_COOKIES (which previously allowed users to select individual
cookies to redact) now has no effect.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r-- | Documentation/git.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt index 427ea70..d451f46 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -775,11 +775,10 @@ for full details. See `GIT_TRACE2` for available trace output options and link:technical/api-trace2.html[Trace2 documentation] for full details. -`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_TRACE_REDACT`:: + By default, when tracing is activated, Git redacts the values of + cookies, the "Authorization:" header, and the "Proxy-Authorization:" + header. Set this variable to `0` to prevent this redaction. `GIT_LITERAL_PATHSPECS`:: Setting this variable to `1` will cause Git to treat all |