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

MySQL: add the option to force sending the password as plain text #18252

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jafl
Copy link

@jafl jafl commented Apr 4, 2025

The use case is authenticating to AWS RDS with an IAM token, which has to be sent in the clear.

  • This re-uses the pam authentication method
  • pdo_mysql: added option MYSQL_ATTR_SEND_CLEAR_PASSWORD
  • mysqlnd: implemented CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA option in order to send auth data longer than 255 bytes

This may solve #10800

* This re-uses the pam authentication method
* pdo_mysql: added option MYSQL_ATTR_SEND_CLEAR_PASSWORD
* mysqlnd: implemented CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA option in order to send auth data longer than 255 bytes
@jafl
Copy link
Author

jafl commented Apr 4, 2025

Ideally, a similar option should be added to mysqli, but I'll wait with that until people have a chance to review this and decide whether it's the right approach.

@jafl jafl force-pushed the mysql-aws-iam-token branch from a0f9e24 to 93e6505 Compare April 5, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant