We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce:
package main import ( "fmt" influxdb2 "github.com/influxdata/influxdb-client-go/v2" influxdb2log "github.com/influxdata/influxdb-client-go/v2/log" ) func main() { client := influxdb2.NewClientWithOptions( "https://influx.example.com:8086", "username:password", influxdb2.DefaultOptions().SetLogLevel(influxdb2log.InfoLevel), ) _ = client }
Expected behavior: The token/password should be hidden or scrambled for InfoLevel. Maybe being shown in plain text for DebugLevel.
InfoLevel
DebugLevel
Actual behavior: The token/password is logged in plain text at info level
2022/03/01 12:23:08 influxdb2client I! Using URL 'https://influx.example.com:8087', token 'my-username:my-super-sensitive-password'
Specifications:
The text was updated successfully, but these errors were encountered:
fix: masking token for logging (influxdata#312)
b9a194a
6aedde3
Thanks! Well done :)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Steps to reproduce:
Expected behavior:
The token/password should be hidden or scrambled for
InfoLevel
. Maybe being shown in plain text forDebugLevel
.Actual behavior:
The token/password is logged in plain text at info level
Specifications:
The text was updated successfully, but these errors were encountered: