Skip to content

fix(tools): redact URLs in scrape audit log and fix IPI tracing span#4730

Merged
bug-ops merged 1 commit into
mainfrom
4713-scrape-audit-ipi
May 30, 2026
Merged

fix(tools): redact URLs in scrape audit log and fix IPI tracing span#4730
bug-ops merged 1 commit into
mainfrom
4713-scrape-audit-ipi

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 30, 2026

Summary

Changes

  • crates/zeph-tools/src/scrape.rs: four &instruction.url / &p.url replaced with &redact_url_for_log(...), manual span replaced with attribute macro
  • CHANGELOG.md: two entries under [Unreleased] ### Fixed

Test plan

  • cargo check -p zeph-tools — clean
  • cargo +nightly fmt --check — clean
  • cargo clippy -p zeph-tools -- -D warnings — clean
  • RUSTFLAGS="-D warnings" cargo check -p zeph-tools --all-targets — clean
  • cargo nextest run -p zeph-tools --lib --bins — 1228 passed, 0 skipped

@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes bug Something isn't working size/S Small PR (11-50 lines) labels May 30, 2026
Apply redact_url_for_log() at all four audit call sites in scrape.rs
(log_audit success/error in execute(), run_with_audit in execute_tool_call
for web_scrape and fetch). Previously raw URLs with sensitive query
parameters were written to audit JSONL. Closes #4713.

Replace manual tracing::info_span! + span.enter()-after-await in
apply_ipi_filter with #[tracing::instrument], so the span correctly
covers filter_async().await. Closes #4712.
@bug-ops bug-ops enabled auto-merge (squash) May 30, 2026 01:56
@bug-ops bug-ops force-pushed the 4713-scrape-audit-ipi branch from 77ed84b to c63c600 Compare May 30, 2026 01:56
@bug-ops bug-ops merged commit a01a162 into main May 30, 2026
32 checks passed
@bug-ops bug-ops deleted the 4713-scrape-audit-ipi branch May 30, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

1 participant