Repository navigation
Errors and Debug output no longer print the session's credential URLs (0.6.2) - #14
Conversation
… (0.6.2) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015oB9MJ9RWqvreBqgtBJfWN
|
ARCHI-SIGNOFF browser cf39478 Read the diff and ran it.
Not covered by this PR, for a follow-up: REST error messages still contain the request path, for example Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015oB9MJ9RWqvreBqgtBJfWN
|
ARCHI-SIGNOFF browser a88855a (diff against
Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com |
What
SDK audit item (2026-11-03): connect errors print the full CDP URL, which is a credential (it carries the session in its path).
connect()/connect_endpoint()failures now sayfailed to connect to wss://host/…, and the underlying library's text has the URL removed (chromiumoxide prints the URL it was given).get_presigned*) no longer print the signed URL either.Session'sDebughides the session id and the endpoint paths ({:?}in a log line used to print them)./sessions/<id>(the credential inside the ws/cdp URLs) is cut to its first 8 characters in REST error messages (redact_path; API errors and transport failures; the reqwest text is scrubbed of the URL).redact_url(scheme://host[:port]/…,<url>for anything unparseable) andscrub_url_frominhttp.rs.Tests
tests/redact_url.rs(connect error to a refused port with a secret path and token;Debugof aSession) and three unit tests inhttp.rs(redaction table, scrubbing of a library message, a failed presigned GET). Mutation-checked: removing the redaction inconnect.rsturnsa_failed_connect_does_not_print_the_cdp_endpointred.cargo test --all-features: all pass.Release
0.6.1 to 0.6.2 and a CHANGELOG entry. Publish to crates.io after merge (James's go).
🤖 Generated with Claude Code
https://claude.ai/code/session_015oB9MJ9RWqvreBqgtBJfWN