Skip to content
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

[v9] Advertise correct MySQL server version #12340

Merged
merged 6 commits into from
May 2, 2022

Conversation

jakule
Copy link
Contributor

@jakule jakule commented Apr 29, 2022

Teleport now will try to extract MySQL server version from initial handshake package instead of sending 8.0.0-Teleport every time. This string can be overridden by new configuration option mysql.server_version. On DB service start Teleport will also try to fetch the current version from MySQL/MariaDB instance. After that the server version will be updated on every successful connection to keep it up to date.

Co-authored-by: STeve (Xin) Huang xin.huang@goteleport.com
Co-authored-by: Paul Gottschling paul.gottschling@goteleport.com

Backport of #12196, #12344, #12347

TODO:

Teleport now will try to extract MySQL server version from initial handshake package instead of sending `8.0.0-Teleport` every time. This string can be overridden by new configuration option `mysql.server_version`. On DB service start Teleport will also try to fetch the current version from MySQL/MariaDB instance. After that the server version will be updated on every successful connection to keep it up to date.

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
@github-actions github-actions bot added database-access Database access related issues and PRs documentation tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Apr 29, 2022
@r0mant r0mant mentioned this pull request Apr 30, 2022
jakule and others added 3 commits May 2, 2022 13:04
Remove `tsh` dependency on "github.com/gravitational/teleport/lib/srv/db/common" to fix WIndows build.
Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
@jakule jakule enabled auto-merge (squash) May 2, 2022 17:21
@jakule jakule merged commit 4bf2de3 into branch/v9 May 2, 2022
@jakule jakule deleted the jakule/v9/mysql-server-version branch May 2, 2022 17:54
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database-access Database access related issues and PRs documentation tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants