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
refactor(config): hold provider and header secrets in a type that never prints #386
Provider API keys, bypass secrets and sensitive header values are held in plain strings, so any Debug output or error that includes the containing struct prints them. This umbrella covers that class: #89, #118, #141, #152, #175.
Where
The provider, bypass and header configuration types, and every Debug derive or error that includes them.
Fix
Hold these values in a secret wrapper type whose Debug and Display never print the value, and use it at the configuration boundary. Add a test that the Debug output of each configuration type never contains a planted secret.
Also covers #402: the Elixir and Ruby bindings print sensitive header values from DownloadedDocument, which the secret type fixes at the same boundary.
Patch hardening landed on main in 10119b7: every rejected browser.chrome_args branch now reports only the entry index, so malformed, uppercase, and duplicate caller input cannot leak credentials through CrawlError Display/Debug. The umbrella issue remains open: converting the public Rust String/map fields to a non-printing wrapper is source-breaking, and Alef-generated Python/Ruby/Elixir representations still need sensitive-field metadata/custom repr support for a complete cross-language fix.
Patch-level mitigation is on main: Rust/Python diagnostics and Rust-side Ruby/Elixir binding diagnostics redact the classified sensitive values while serialization remains lossless. The complete request remains open because replacing public raw-string/map fields with secret-wrapper types, plus equivalent host-language representations, is source-breaking and belongs in the next major release.
Closing per maintainer decision. The patch-level mitigation is on main: diagnostics redact the classified sensitive values across Rust, Python, Ruby and Elixir. Replacing the public raw-string/map fields with a non-printing wrapper is source-breaking and is deferred to the next major release.
Activity
tobocop2 commentedon Sep 27, 2026
Also covers #402: the Elixir and Ruby bindings print sensitive header values from DownloadedDocument, which the secret type fixes at the same boundary.
fix(browser): print chrome_args as a count and record the constructor…
feat(browser): let a caller choose the Chrome binary and add Chrome f…
Goldziher commentedon Oct 4, 2026
Patch hardening landed on main in 10119b7: every rejected browser.chrome_args branch now reports only the entry index, so malformed, uppercase, and duplicate caller input cannot leak credentials through CrawlError Display/Debug. The umbrella issue remains open: converting the public Rust String/map fields to a non-printing wrapper is source-breaking, and Alef-generated Python/Ruby/Elixir representations still need sensitive-field metadata/custom repr support for a complete cross-language fix.
Goldziher commentedon Oct 5, 2026
Patch-level mitigation is on main: Rust/Python diagnostics and Rust-side Ruby/Elixir binding diagnostics redact the classified sensitive values while serialization remains lossless. The complete request remains open because replacing public raw-string/map fields with secret-wrapper types, plus equivalent host-language representations, is source-breaking and belongs in the next major release.
Goldziher commentedon Oct 6, 2026
Closing per maintainer decision. The patch-level mitigation is on main: diagnostics redact the classified sensitive values across Rust, Python, Ruby and Elixir. Replacing the public raw-string/map fields with a non-printing wrapper is source-breaking and is deferred to the next major release.