Skip to content

fix(browser): module loader and fetch op logs still print a URL with its credentials #382

Closed

Description

@tobocop2

After #357, more browser-crate lines still print a page-supplied URL with its credentials:

  • the module loader's debug log and its fetch, HTTP-status and body-read errors (js/module_loader.rs:135-139, :146, :149, :155);
  • three debug logs in the page's fetch operation and request interception (js/ops.rs:388, :468, :579).

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

Where

crates/crawlberg-browser/src/js/module_loader.rs and crates/crawlberg-browser/src/js/ops.rs.

Fix

Pass each URL through the browser crate's redactor (#357 adds one; #377 adds a shared one), and add a log-capture or error test per site.

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