-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: authentication using tidb_auth_token
plugin
#38773
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 6a62a58
|
/hold |
/unhold |
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.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ce5d9af
|
/run-mysql-test |
/run-build |
There is a workaround for the mysql-test failure, you can run |
/run-mysql-test tidb-test=pr/2007 |
2 similar comments
/run-mysql-test tidb-test=pr/2007 |
/run-mysql-test tidb-test=pr/2007 |
TiDB MergeCI notify🔴 Bad News! [2] CI still failing after this pr merged.
|
What problem does this PR solve?
Issue Number: close #38504
Problem Summary:
Using the
tidb_auth_token
plugin for authentication.What is changed and how it works?
Check List
Tests
Manual test
Preparation
go install github.com/cbcwestwolf/generate_jwt
cd tidb && wget https://raw.githubusercontent.com/CbcWestwolf/generate_jwt/master/JWKS.json
config.toml
./bin/tidb-server -config config.toml
root
user:mysql -h 127.0.0.1 -P 4000 -uroot -D test --prompt="tidb> "
Success to auth
Note that the mysql client should support
mysql_clear_password
auth plugin.mycli
enablesmysql_clear_password
by default. If you are usingmysql
, you should use an--enable-cleartext-plugin
option that enables the plugin.Fail to auth
Just change the claim like
sub
to "[email protected]".jwt.io may help.
Side effects
Documentation
Release note