Skip to content

fix(engine): three logs and the crawl result still record a URL with its credentials #372

Closed

Description

@tobocop2

Three places still record a URL with its credentials:

  • the robots check warning in scrape.rs logs the raw URL;
  • the proxy-rotation warning in engine/fetch.rs logs the raw URL;
  • a refused redirect target becomes the crawl result's final_url without redaction (engine/crawl_loop.rs:138).

A URL that carries user:password@ then shows the password in the log or in the result.

Where

crates/crawlberg/src/scrape.rs (robots warning), crates/crawlberg/src/engine/fetch.rs (RotateProxy warning), crates/crawlberg/src/engine/crawl_loop.rs:138.

Fix

Pass each URL through redact_url_credentials before it is logged or stored in the result. Add a test per site with a URL that carries credentials.

Activity

  1. self-assigned this
    on Sep 27, 2026
  2. added
    bugSomething isn't working
    hardeningDefence in depth: credential handling, SSRF policy and input validation
    P1Operator-facing: wrong output on a common path, or a secret reaching logs or errors
    on Sep 27, 2026
  3. added theissue type on Sep 27, 2026
  4. added
    operatorAn operator would hit this in normal use; ranks above dev, test and edge cases
    P2Wrong behaviour in an edge case
    and removed
    P1Operator-facing: wrong output on a common path, or a secret reaching logs or errors
    operatorAn operator would hit this in normal use; ranks above dev, test and edge cases
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Wrong behaviour in an edge casebugSomething isn't workinghardeningDefence in depth: credential handling, SSRF policy and input validation

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions