Navigation

Use Automatic with GCP

Overview

This guide shows you how to build a ()-enabled application using Google Cloud Key Management Service.

After you complete the steps in this guide, you should have:

  • A hosted on Google Cloud Key Management Service.
  • A client application that inserts encrypted documents using your .

Before You Get Started

To complete and run the code in this guide, you need to set up your development environment as shown in the Installation Requirements page.

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 ID.

dek_id := "abc123"

Select the programming language for which you want to see code examples for from the Select your language dropdown menu on the right side of the page.

See

Full Application

To view the complete runnable application code for this tutorial, go to the following link:

Set Up the KMS

# You are viewing the Python driver code examples.
# Use the dropdown menu to select a different driver.
// You are viewing the Java synchronous driver code examples.
// Use the dropdown menu to select a different driver.
// You are viewing the Node.js driver code examples.
// Use the dropdown menu to select a different driver.
// You are viewing the C# driver code examples.
// Use the dropdown menu to select a different driver.
// You are viewing the Golang driver code examples.
// Use the dropdown menu to select a different driver.

Create the Application

Select the tab that corresponds to the MongoDB driver you are using in your application to see relevant code samples.

Learn More

To learn more about the topics mentioned in this guide, see the following links:

  • Learn more about CSFLE components on the Reference page.
  • Learn how s and s work on the <csfle-reference-keys-key-vaults> page
  • See how KMS Providers manage your CSFLE keys on the <csfle-reference-kms-providers> page.