lostisland / faraday

Simple, but flexible HTTP client library, with support for multiple backends.
https://lostisland.github.io/faraday
MIT License
5.72k stars 972 forks source link

Question about basic authentication credentials leaking in URL via `run_request` #1424

Closed gregolsen closed 2 years ago

gregolsen commented 2 years ago

This is more of a question at this point.

As part of fixing a credentials leak in Open Telemetry Ruby instrumentation we noticed that run_request doesn't remove credentials from the URL as, for example, this code does https://github.com/lostisland/faraday/blob/main/lib/faraday/connection.rb#L366 Is that a desired behavior or would it be better to remove basic authentication credentials from the URL in run_request too?