* Default to tls=preferred for mysql connection
For communication from manager to mysql server, use `tls=preferred`
parameter to enable TLS whenever possible.
Signed-off-by: Edward Broeder <eddie.broeder@intel.com>
* Make mysql tls parameter configurable
Allow the user to specify the tls setting for the
mysql connection. An example would be setting tls
to "preferred", or "true". This is separate to
the tlsConfig config parameter, which is used to
set up a custom tls config, where tls key/certs
are specified.
See the tls parameter section in the below link:
https://pkg.go.dev/github.com/go-sql-driver/mysql#section-readme
Signed-off-by: Edward Broeder <eddie.broeder@intel.com>
* feat: manager support mysql ssl connection
Signed-off-by: Gaius <gaius.qi@gmail.com>
* refactor: manager config
Signed-off-by: Gaius <gaius.qi@gmail.com>
* chore: run `go fmt ./...`
This commit synchronizes `//go:build` lines with `// +build` lines.
Reference: https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>