ProxySQL-Admin 2.x Encryption of Credential InformationStarting with the release of proxysql-admin 2.0.15,  the proxysql-admin 2.x series can now encrypt the credentials needed to access proxysql and cluster nodes. This only applies to the proxysql-admin configuration, this does not change the ProxySQL config, so those credentials are still unencrypted.

The credentials file is the unencrypted file containing the usernames, passwords, hostnames, and ports needed to connect to ProxySQL and PXC (Percona XtraDB Cluster).

The proxysql-login-file tool is used to encrypt the credentials file. This encrypted file is known as a login-file. This login-file can then be used by the proxysql-admin and proxysql-status scripts.

Note: This feature requires OpenSSL v1.1.1 and above (with the exception of Ubuntu 16.04). Please see the supported platforms topic below.

Configuration Precedence

  1. command-line options
  2. the encrypted login-file options (if the login-file is used)
  3. the unencrypted proxysql-admin configuration file values

Example Usage

Credentials File Format

 

Requirements and Supported Platforms

OpenSSL 1.1.1 (and higher) is an installation requirement (with the exception of Ubuntu 16.04 (xenial), see the comment below).

  • Centos 7

The OpenSSL 1.1.1+ package must be installed. This can be installed with

This command will install OpenSSL 1.1 alongside the system installation and the script will use the openssl11 binary.

  •  Centos 8

The default version of OpenSSL is v1.1.1

  • Ubuntu 16.04 (xenial)

For Ubuntu xenial (16.04), installation of OpenSSL v1.1.1+ is not required, a purpose-built binary used for the encryption/decryption (proxysql-admin-openssl) will be installed alongside the proxysql-admin scripts.

  • Ubuntu 18.04 (bionic)

The default version of OpenSSL is v1.1.1

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments