- 188.8.131.52 Keyring Plugin Installation
- 184.108.40.206 Using the keyring_file File-Based Plugin
- 220.127.116.11 Using the keyring_encrypted_file Keyring Plugin
- 18.104.22.168 Using the keyring_okv KMIP Plugin
- 22.214.171.124 Using the keyring_aws Amazon Web Services Keyring Plugin
- 126.96.36.199 Using the HashiCorp Vault Keyring Plugin
- 188.8.131.52 Using the Oracle Cloud Infrastructure Vault Keyring Plugin
- 184.108.40.206 Supported Keyring Key Types and Lengths
- 220.127.116.11 Migrating Keys Between Keyring Keystores
- 18.104.22.168 General-Purpose Keyring Key-Management Functions
- 22.214.171.124 Plugin-Specific Keyring Key-Management Functions
- 126.96.36.199 Keyring Command Options
- 188.8.131.52 Keyring System Variables
MySQL Server supports a keyring that enables internal server components and plugins to securely store sensitive information for later retrieval. The implementation comprises these elements:
Keyring plugins that manage a backing store or communicate with a storage back end. These keyring plugins are available:
keyring_filestores keyring data in a file local to the server host. This plugin is available in MySQL Community Edition and MySQL Enterprise Edition distributions. See Section 184.108.40.206, “Using the keyring_file File-Based Plugin”.
keyring_encrypted_filestores keyring data in an encrypted file local to the server host. This plugin is available in MySQL Enterprise Edition distributions. See Section 220.127.116.11, “Using the keyring_encrypted_file Keyring Plugin”.
keyring_okvis a KMIP 1.1 plugin for use with KMIP-compatible back end keyring storage products such as Oracle Key Vault and Gemalto SafeNet KeySecure Appliance. This plugin is available in MySQL Enterprise Edition distributions. See Section 18.104.22.168, “Using the keyring_okv KMIP Plugin”.
keyring_awscommunicates with the Amazon Web Services Key Management Service for key generation and uses a local file for key storage. This plugin is available in MySQL Enterprise Edition distributions. See Section 22.214.171.124, “Using the keyring_aws Amazon Web Services Keyring Plugin”.
keyring_hashicorpcommunicates with HashiCorp Vault for back end storage. This plugin is available in MySQL Enterprise Edition distributions as of MySQL 8.0.18. See Section 126.96.36.199, “Using the HashiCorp Vault Keyring Plugin”.
keyring_ocicommunicates with Oracle Cloud Infrastructure Vault for back end storage. This plugin is available in MySQL Enterprise Edition distributions as of MySQL 8.0.22. See Section 188.8.131.52, “Using the Oracle Cloud Infrastructure Vault Keyring Plugin”.
A key migration capability. A MySQL server operational mode enables migration of keys between underlying keyring keystores, permitting DBAs to switch a MySQL installation from one keyring plugin to another. See Section 184.108.40.206, “Migrating Keys Between Keyring Keystores”.
A keyring service interface for keyring key management, accessible at two levels:
SQL interface: In SQL statements, call the user-defined functions (UDFs) described in Section 220.127.116.11, “General-Purpose Keyring Key-Management Functions”.
C interface: In C-language code, call the keyring service functions described in Section 18.104.22.168, “The Keyring Service”.
Key metadata access. In MySQL 8.0.16 and higher, the Performance Schema
keyring_keystable exposes metadata for keys in the keyring. Key metadata includes key IDs, key owners, and backend key IDs. The
keyring_keystable does not expose any sensitive keyring data such as key contents. See Section 22.214.171.124, “The keyring_keys table”.
keyring_encrypted_file plugins for encryption
key management are not intended as a regulatory compliance
solution. Security standards such as PCI, FIPS, and others
require use of key management systems to secure, manage, and
protect encryption keys in key vaults or hardware security
Within MySQL, uses of the keyring include:
InnoDBstorage engine uses the keyring to store its key for tablespace encryption.
InnoDBcan use any supported keyring plugin. See Section 15.13, “InnoDB Data-at-Rest Encryption”.
MySQL Enterprise Audit uses the keyring to store the audit log file encryption password. The audit log plugin can use any supported keyring plugin. See Encrypting Audit Log Files.
Binary log and relay log management supports keyring-based encryption of log files. With log file encryption activated, the keys used to encrypt passwords for the binary log files and relay log files are stored in the keyring. This capability can use any supported keyring plugin. See Section 17.3.2, “Encrypting Binary Log Files and Relay Log Files”.
For general keyring installation instructions, see Section 126.96.36.199, “Keyring Plugin Installation”. For installation and configuration information specific to a given keyring plugin, see the section describing that plugin.
For information about using the keyring UDFs, see Section 188.8.131.52, “General-Purpose Keyring Key-Management Functions”.
Keyring plugins and UDFs access a keyring service that provides the interface for components to the keyring. For information about accessing the keyring plugin service and writing keyring plugins, see Section 184.108.40.206, “The Keyring Service”, and Writing Keyring Plugins.