Skip to content

Support of MariaDB Parsec plugin authentication#386

Open
lawrinn wants to merge 2 commits intoblackbeam:masterfrom
lawrinn:master
Open

Support of MariaDB Parsec plugin authentication#386
lawrinn wants to merge 2 commits intoblackbeam:masterfrom
lawrinn:master

Conversation

@lawrinn
Copy link

@lawrinn lawrinn commented Feb 18, 2026

Actual support is enabled by client_parsec feature.

Introduced new test 'parsec_connect' that is also enabled by before-mentioned feature. To the test 'should_change_user' added covering of the case when user authenticated via parsec plugin.

Most of the logic of the work with the plugin is in the method continue_parsec_auth
perform_auth_switch sends additional empty packet to request ext-salt packet. After that continue_parsec_auth calls AuthPlugin methods to read that packet info and to generate response.

Actual support is enbaled by `client_parsec` feature.

Introduced new test 'parsec_connect' that is also enabled by
beforementioned feature. To the test 'should_change_user' added covering
of the user authenticated via parsec plugin.

Most of the logic of the work with the plugin is in the method continue_parsec_auth
perform_auth_switch sends additional empty packet to request ext-salt
packet. After that continue_parsec_auth calls AuthPlugin methods to read
that packet info and to generate response.

Updated azure pipeline configuration to use the new feature for testing
or 1 byte as a result of some evil forces.
debug = true

[patch.crates-io]
mysql_common = { git = "https://github.com/lawrinn/rust_mysql_common", branch = "master" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be removed now that blackbeam/rust_mysql_common@dbc64c4 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants