Skip to content

Hide Credentials In Debug Output of Client #103

Closed
@mara-schulke

Description

@mara-schulke
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions