Skip to content

fix(cache): two cache logs record a URL with its credentials #375

Closed as not planned

Description

@tobocop2

Two cache paths log a URL without redacting credentials. A URL that carries user:password@ then shows the password in the log.

  • A debug event in the tower cache layer logs url raw.
  • A warning in the default cache logs page.url raw.

Where

crates/crawlberg/src/tower/cache.rs:244 and crates/crawlberg/src/defaults/cache.rs:239.

Fix

Pass each URL through redact_url_credentials before it is logged, and add a log-capture test for each 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. Goldziher commented on Sep 27, 2026

    @Goldziher
    Member

    Duplicate of #256. The two sites named here (tower/cache.rs, defaults/cache.rs) are a strict subset of the fifteen #256 enumerates, and #256 is both the lower number and the better-specified one. Tracking there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1Operator-facing: wrong output on a common path, or a secret reaching logs or errorsbugSomething isn't workinghardeningDefence in depth: credential handling, SSRF policy and input validation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions