Skip to content

Hide Credentials In Debug Output of Client #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mara-schulke opened this issue Dec 21, 2021 · 0 comments · Fixed by #106
Closed

Hide Credentials In Debug Output of Client #103

mara-schulke opened this issue Dec 21, 2021 · 0 comments · Fixed by #106

Comments

@mara-schulke
Copy link

  • Rust Version: rustc 1.55.0-nightly (868c702d0 2021-06-30)
  • Runtime version: async-std, will probably apply to all
  • OS Version: NixOS 21.11

Steps to Reproduce:

use influxdb::Client;

fn main() {
    println!("{:#?}", Client::new("https://localhost:8086", "db").with_auth("user", "pass"));
}

Results in this output:

Client {
    url: "https://localhost:8086/",
    parameters: {
        "db": "db",
        "u": "user",
        "p": "pass",
    },
    client: Client {},
},

Please think about hiding the username and password from the debug output by implementing debug manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant