go-sql-driver / go-sql-driver/mysql

Allow to specify tls certificate path though DSN

Open
#926 5 comments 8 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
15.3k
Forks
2.3k
Avg merge
2h 23m
Merged PRs (30d)
10

Description

### Feature request description

For now the only way to add TLS validation is though code with [RegisterTLSConfig](https://godoc.org/github.com/go-sql-driver/mysql#RegisterTLSConfig). With providing certificate path though DSN ([like pq is doing it](https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters)) all existing applications will receive TLS certificate validation out of the box without code changes. It will also help the applications that supports both pq and mysql as this will eliminate mysql-specific initialisation code before `sql.Open()` call.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.