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
Commit 48e3a8e
Browse filesBrowse the repository at this point in the historyBrowse files
fix: close two gaps in the credential-redaction contract
Config promises that a config object is safe to log, and the transport
promises the same for its debug output. Both leaked.
Config#inspect rendered proxy verbatim, and a proxy URL carries its
credentials inline, so `http://user:pass@proxy:8080` printed the
password in full. The userinfo is now blanked while the host stays
visible, which is the part worth seeing in a bug report.
Transport#redact matched payload keys against an exact list, so the
keys Zammad and OAuth actually send went straight to the log in clear
text: password_confirm (Zammad's own object attribute), access_token,
refresh_token and client_secret. Matching a substring instead covers
those and every key the old list held.
Config also stored caller-supplied strings as-is. Data members are
mutable in Ruby, so `config.url << "..."` worked and mutated the
caller's own string object at the same time, and any Transport built
from that config afterwards would pick up the change. Each string
member is now a frozen copy — copied rather than interned with
String#-@, so a credential does not outlive its config in the global
fstring table.
Reported by CodeRabbit on #53.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments