Azure Database for MySQL - AAD Authentication + ClearText Plugin

31 views
Skip to first unread message

Adam Coulter

unread,
Nov 24, 2020, 10:17:07 PM11/24/20
to proxysql
We are trying to use ProxySQL for caching / retry / connection pooling / etc for our PHP application. The database is hosted using Azure Database for MySQL, and the application is hosted in Azure App Services for containers.

We need to use an OAuth token to authenticate from ProxySQL to the Azure MySQL server. This token can be set in ProxySQL as a user password in clear text, using an hourly script to handle token rotation. In order to authenticate to Azure MySQL, the enable-cleartext-plugin option needs to be specified, as the OAuth token needs to be provided in clear text over a TLS connection.

We need help on how to configure this, as we seem to be stuck with how to enable the cleartext-plugin even though this GitHub issue 1168 says it has been implemented.

Also, how do we setup the client/backend user passwords to be different?

ProxySQL.png

Derek Downey

unread,
Nov 25, 2020, 1:58:44 PM11/25/20
to proxysql
What version of ProxySQL are you using?

Regarding this: 

Also, how do we setup the client/backend user passwords to be different?

It's not possible currently.

Adam Coulter

unread,
Nov 25, 2020, 10:05:04 PM11/25/20
to proxysql
Version 2.x, try and stay up to date.

Without the ability to set different passwords, how would you suggest we proceed?

Sakti Soumyakanta

unread,
Jul 1, 2025, 6:18:33 PMJul 1
to proxysql
Is Azure AAD based authentication is still not supported by Proxysql?
Reply all
Reply to author
Forward
0 new messages