Client-Side Field Level Encryption客户端字段级加密
On this page本页内容
Introduction介绍
Client-Side Field Level Encryption (CSFLE) is a feature that enables you to encrypt data in your application before you send it over the network to MongoDB. With CSFLE enabled, no MongoDB product has access to your data in an unencrypted form.客户端字段级加密(CSFLE)是一项功能,使您能够在通过网络将数据发送到MongoDB之前对应用程序中的数据进行加密。启用CSFLE后,任何MongoDB产品都无法以未加密的形式访问您的数据。
You can set up CSFLE using the following mechanisms:您可以使用以下机制设置CSFLE:
Automatic Encryption: Enables you to perform encrypted read and write operations without you having to write code to specify how to encrypt fields.自动加密:使您能够执行加密的读写操作,而无需编写代码来指定如何加密字段。Explicit Encryption: Enables you to perform encrypted read and write operations through your MongoDB driver's encryption library. You must specify the logic for encryption with this library throughout your application.显式加密:使您能够通过MongoDB驱动程序的加密库执行加密的读写操作。您必须在整个应用程序中指定使用此库进行加密的逻辑。
The following table shows which MongoDB server products support which CSFLE mechanisms:下表显示了哪些MongoDB服务器产品支持哪些CSFLE机制:
MongoDB Atlas | Yes | Yes |
MongoDB Enterprise Advanced | Yes | Yes |
MongoDB Community Edition | No | Yes |
To learn which MongoDB drivers support CSFLE, see CSFLE Compatibility.要了解哪些MongoDB驱动程序支持CSFLE,请参阅CSFLE兼容性。
Features功能
To learn about the security benefits of CSFLE for your applications, see the Features page.要了解CSFLE为您的应用程序带来的安全优势,请参阅功能页面。
Install安装
To learn what you must install to use CSFLE, see the Installation Requirements page.要了解使用CSFLE必须安装什么,请参阅安装要求页面。
Quick Start快速入门
To start using CSFLE, see the Quick Start.要开始使用CSFLE,请参阅快速入门。
Throughout this guide, code examples use placeholder text. 在本指南中,代码示例使用占位符文本。Before you run the examples, substitute your own values for these placeholders.在运行示例之前,请将这些占位符替换为您自己的值。
For example:例如:
dek_id := "<Your Base64 DEK ID>"
You would replace everything between quotes with your DEK ID.你会用你的DEK ID替换报价之间的所有内容。
dek_id := "abc123"
Fundamentals基础
To learn how CSFLE works and how to set it up, see the Fundamentals section.要了解CSFLE的工作原理和设置方法,请参阅基础知识部分。
The fundamentals section contains the following pages:基本原理部分包含以下页面:
Tutorials教程
To learn how to perform specific tasks with CSFLE, see the Tutorials section.要了解如何使用CSFLE执行特定任务,请参阅教程部分。
Reference参考资料
To view information to help you develop your CSFLE enabled applications, see the Reference section.要查看帮助您开发启用CSFLE的应用程序的信息,请参阅参考部分。
The reference section contains the following pages:参考部分包含以下页面:
CSFLE CompatibilityCSFLE兼容性CSFLE LimitationsCSFLE限制CSFLE Encryption SchemasCSFLE加密架构CSFLE Server-Side Schema EnforcementCSFLE服务器端架构强制Supported Operations for Automatic Encryption支持的自动加密操作CSFLE-Specific MongoClient OptionsCSFLE特定的MongoClient
选项CSFLE KMS ProvidersCSFLE KMS提供商CSFLE Encryption ComponentsCSFLE加密组件How CSFLE Decrypts DocumentsCSFLE如何解密文档CSFLE Cryptographic PrimitivesCSFLE密码基元Install and Configure mongocryptd for CSFLE为CSFLE安装和配置mongocrypted
Install安装libmongocrypt