aboutsummaryrefslogtreecommitdiffstats
path: root/bundle-uri.c
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2022-11-11 22:35:06 +0000
committerTaylor Blau <me@ttaylorr.com>2022-11-14 17:42:46 -0500
commitb637a41ebe0e65b6d64dd65efaf848b4705dcbed (patch)
tree3007cb8026fb16a7a4a4ff619fac90f247898b18 /bundle-uri.c
parentt: run t5551 tests with both HTTP and HTTP/2 (diff)
downloadgit-b637a41ebe0e65b6d64dd65efaf848b4705dcbed.tar.gz
git-b637a41ebe0e65b6d64dd65efaf848b4705dcbed.zip
http: redact curl h2h3 headers in info
With GIT_TRACE_CURL=1 or GIT_CURL_VERBOSE=1, sensitive headers like "Authorization" and "Cookie" get redacted. However, since [1], curl's h2h3 module (invoked when using HTTP/2) also prints headers in its "info", which don't get redacted. For example, echo 'github.com TRUE / FALSE 1698960413304 o foo=bar' >cookiefile && GIT_TRACE_CURL=1 GIT_TRACE_CURL_NO_DATA=1 git \ -c 'http.cookiefile=cookiefile' \ -c 'http.version=' \ ls-remote https://github.com/git/git refs/heads/main 2>output && grep 'cookie' output produces output like: 23:04:16.920495 http.c:678 == Info: h2h3 [cookie: o=foo=bar] 23:04:16.920562 http.c:637 => Send header: cookie: o=<redacted> Teach http.c to check for h2h3 headers in info and redact them using the existing header redaction logic. This fixes the broken redaction logic that we noted in the previous commit, so mark the redaction tests as passing under HTTP2. [1] https://github.com/curl/curl/commit/f8c3724aa90472c0e617ddbbc420aa199971eb77 Helped-by: Jeff King <peff@peff.net> Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'bundle-uri.c')
0 files changed, 0 insertions, 0 deletions
ipts/kconfig/confdata.c?id=aff11cd983ec0850651ee9b1c2a88b33358cb2f2&follow=1'>kconfig: Terminate menu blocks with a comment in the generated configAlexander Popov1-1/+12 2019-05-18kbuild: add LICENSES to KBUILD_ALLDIRSMasahiro Yamada1-1/+1 2019-05-18kbuild: remove 'addtree' and 'flags' magic for header search pathsMasahiro Yamada3-33/+13 2019-05-18treewide: prefix header search paths with $(srctree)/Masahiro Yamada17-26/+25 2019-05-18media: prefix header search paths with $(srctree)/Masahiro Yamada30-49/+47 2019-05-18media: remove unneeded header search pathsMasahiro Yamada7-11/+0 2019-05-18alpha: move arch/alpha/defconfig to arch/alpha/configs/defconfigMasahiro Yamada2-0/+2 2019-05-18kbuild: terminate Kconfig when $(CC) or $(LD) is missingMasahiro Yamada2-1/+9 2019-05-18kbuild: turn auto.conf.cmd into a mandatory include fileMasahiro Yamada1-1/+1 2019-05-18.gitignore: exclude .get_maintainer.ignore and .gitattributesMasahiro Yamada1-3/+5 2019-05-18kbuild: add all Clang-specific flags unconditionallyMasahiro Yamada2-11/+11 2019-05-18kbuild: Don't try to add '-fcatch-undefined-behavior' flagNathan Chancellor1-1/+0 2019-05-18kbuild: add some extra warning flags unconditionallyMasahiro Yamada1-6/+7 2019-05-18kbuild: add -Wvla flag unconditionallyMasahiro Yamada1-1/+1 2019-05-18arch: remove dangling asm-generic wrappersMasahiro Yamada5-13/+0 2019-05-18samples: guard sub-directories with CONFIG optionsMasahiro Yamada3-6/+22 2019-05-18kbuild: re-enable int-in-bool-context warningMasahiro Yamada1-1/+0 2019-05-18MAINTAINERS: kbuild: Add pattern for scripts/*vmlinux*Krzysztof Kozlowski1-0/+1 2019-05-18sh: exclude vmlinux.scr from .gitignore patternMasahiro Yamada1-0/+1 2019-05-18sh: vsyscall: drop unnecessary cc-ldoptionNick Desaulniers1-2/+1 2019-05-18ia64: require -Wl,--hash-style=sysvNick Desaulniers1-1/+1 2019-05-18csky: remove deprecated arch/csky/boot/dts/include/dt-bindingsMasahiro Yamada1-1/+0 2019-05-17ext4: avoid panic during forced reboot due to aborted journalJan Kara1-1/+1 2019-05-17i2c: core: add device-managed version of i2c_new_dummyHeiner Kallweit3-0/+50 2019-05-17i2c: core: improve return value handling of i2c_new_device and i2c_new_dummyHeiner Kallweit1-13/+61 2019-05-17powerpc/cacheinfo: Remove double freeTobin C. Harding1-1/+0 2019-05-17powerpc/mm/hash: Fix get_region_id() for invalid addressesAneesh Kumar K.V1-0/+4 2019-05-17kvm: fix compilation on aarch64Paolo Bonzini1-1/+1 2019-05-17objtool: Allow AR to be overridden with HOSTARNathan Chancellor1-1/+2 2019-05-17fbdev/efifb: Ignore framebuffer memmap entries that lack any memory typesArd Biesheuvel1-2/+6 2019-05-16riscv: fix locking violation in page fault handlerAndreas Schwab1-1/+2 2019-05-16RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCsYash Shah3-0/+192