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
sync: avoid value-based redaction for locally constructed errors in sync planning #572
These errors still go through redactRegistryError, which redacts based on values from the registry URL. When the registry URL has a query string, the whole message gets replaced. For example, with a registry like https://r.example/?v=1, both of these:
driver mysql: no package for version 1.4.0 on linux_amd64
driver mysql: cannot record artifact location: invalid hash "sha256:01ab"
become registry request failed; details are hidden…, even though they carry no credentials.
Proposed fix
Keep redactRegistryError only for the index fetch and artifact downloads, where the error may come from the remote side.
For locally constructed errors, stripping the registry URL is enough.
Add tests showing that these messages stay readable when the registry URL has a query string.
Activity