8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

8.4.4 MySQL 密钥环8.4.4 The MySQL Keyring

MySQL 服务器支持一个密钥环,它使内部服务器组件和插件能够安全地存储敏感信息以便日后检索。该实现包括以下几个元素: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:

Warning

对于加密密钥管理,component_keyring_file 和 component_keyring_encrypted_file 组件并非用于满足监管合规要求。像 PCI、FIPS 等安全标准要求使用密钥管理系统在密钥库或硬件安全模块 (HSM) 中保护、管理和维护加密密钥的安全性。For encryption key management, the component_keyring_file and component_keyring_encrypted_file components 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 modules (HSMs).

在 MySQL 中,keyring 服务的使用者包括:Within MySQL, keyring service consumers include:

  • InnoDB 存储引擎使用 keyring 来存储表空间加密的密钥。请参阅 第 17.13 节,“InnoDB 数据静态加密”。The InnoDB storage engine uses the keyring to store its key for tablespace encryption. See Section 17.13, “InnoDB Data-at-Rest Encryption”.

  • MySQL 企业审计使用 keyring 来存储审计日志文件的加密密码。请参阅 加密审计日志文件。MySQL Enterprise Audit uses the keyring to store the audit log file encryption password. See Encrypting Audit Log Files.

  • 二进制日志和中继日志管理支持基于 keyring 的日志文件加密。启用日志文件加密后,keyring 存储用于加密二进制日志文件和中继日志文件密码的密钥。请参阅 第 19.3.2 节,“加密二进制日志文件和中继日志文件”。Binary log and relay log management supports keyring-based encryption of log files. With log file encryption activated, the keyring stores the keys used to encrypt passwords for the binary log files and relay log files. See Section 19.3.2, “Encrypting Binary Log Files and Relay Log Files”.

  • 用于解密文件密钥(该文件密钥用于解密敏感系统变量的持久化值)的主密钥存储在密钥环中。必须在 MySQL 服务器实例上启用密钥环组件,以支持持久化系统变量值的安全存储,而不是使用密钥环插件,因为它们不支持此功能。请参见 持久化敏感系统变量。The master key to decrypt the file key that decrypts the persisted values of sensitive system variables is stored in the keyring. A keyring component must be enabled on the MySQL Server instance to support secure storage for persisted system variable values, rather than a keyring plugin, which do not support the function. See Persisting Sensitive System Variables.

有关一般钥匙串安装说明,请参见第 8.4.4.2 节,“钥匙串组件安装”,以及第 8.4.4.3 节,“钥匙串插件安装”。有关特定钥匙串组件或插件的安装和配置信息,请参见描述该组件或插件的章节。For general keyring installation instructions, see Section 8.4.4.2, “Keyring Component Installation”, and Section 8.4.4.3, “Keyring Plugin Installation”. For installation and configuration information specific to a given keyring component or plugin, see the section describing it.

有关使用钥匙串功能的信息,请参见第 8.4.4.12 节,“通用钥匙串密钥管理功能”。For information about using the keyring functions, see Section 8.4.4.12, “General-Purpose Keyring Key-Management Functions”.

钥匙圈组件、插件和函数访问提供钥匙圈接口的钥匙圈服务。有关如何访问此服务和编写钥匙圈插件的信息,请参阅 第 7.6.9.2 节,“钥匙圈服务”,以及 编写钥匙圈插件。Keyring components, plugins, and functions access a keyring service that provides the interface to the keyring. For information about accessing this service and writing keyring plugins, see Section 7.6.9.2, “The Keyring Service”, and Writing Keyring Plugins.