You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cleanup: replace internal/trace/transport.go with remote.NewLoggingTransport() (blocked upstream) #2315
Follow-on to #2008 (phase 2.4). The v2→v3 migration (#2002) has merged; this is the last of the deprecation-cleanup items — and the one that cannot be done as described today.
Intent
internal/trace/transport.go (269 LOC, plus 568 lines of tests) implements --debug HTTP request/response logging. oras-go v3 ships an equivalent at registry/remote/logging_transport.go, usable either directly or via ClientBuilder.Logger:
The upstream version matches ours on header scrubbing, the 16 KiB body cap, and adds per-request IDs for correlating concurrent blob fetches. Net ~−160 LOC.
A straight swap would print user-supplied credential headers in cleartext under --debug. CI would not catch it — it is a silent disclosure, not a build or test failure.
Required first
An oras-go change giving LoggingTransport a configurable scrub list (an exported field, an option, or a NewLoggingTransportWithHeaders variant). Once that is released, this becomes a small mechanical swap on top of the internal/logutil slog bridge from the NewWarningLogger issue.
Do not merge a partial version of this that drops the --header scrubbing. If upstream declines the change, close this and keep internal/trace/transport.go.
Waiting on the next oras-go release. oras-project/oras-go#1775 (extra sensitive headers for LoggingTransport) and oras-project/oras-go#1786 (ClientBuilder from Configs) are merged on oras-go main but are not in v3.0.0, so this can't be picked up until oras-go v3.0.1/v3.1.0 is tagged.
Activity
TerryHowe commentedon Nov 25, 2026
Waiting on the next oras-go release. oras-project/oras-go#1775 (extra sensitive headers for
LoggingTransport) and oras-project/oras-go#1786 (ClientBuilderfromConfigs) are merged on oras-gomainbut are not in v3.0.0, so this can't be picked up until oras-go v3.0.1/v3.1.0 is tagged.