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
Implement mTLS support in both the mysql backend and probes. #139
Conversation
…robe and mysqlInventory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@miguelff neither of us own this repo anymore yet here we are again 😂. Left some comments inline. Let me know what you think!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Thank you for fixing password redaction.
if err != nil { | ||
return nil, err | ||
} | ||
|
||
db.SetMaxOpenConns(maxConnections) | ||
db.SetMaxIdleConns(maxConnections) | ||
log.Debugf("created db at: %s", uri) | ||
log.Debugf("created db at: %s", url.Redacted()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL url.Redacted()
Closing as stale |
Implements the enhancement described in #112
The following docs describe how to use the new feature:
Changes include a small refactoring to remove some unused code and to have a single source of truth for creating DB connection strings, and I pulled most of the TLS setup from gh-ost
This has been tested successfully using the following configuration against docker
mysql:5.7
cc @shlomi-noach