Secret Manager controls for generative AI use casesStay organized with collectionsSave and categorize content based on your preferences.
This document includes the best practices and guidelines for Secret Manager when
running generative AI workloads on Google Cloud. UseSecret Managerwith Vertex AI to help secure the sensitive data and credentials that are used in Vertex AI projects.
Consider the following use cases for Secret Manager with Vertex AI:
Store API keys for accessing external data sources used in model training.
Encrypt database credentials within prediction pipelines for secure access.
Provision temporary access tokens for secure communication between services.
Secure private keys and certificates that you use for encrypting communication channels.
Manage passwords and credentials for third-party services that you use in your ML workflows.
Required Secret Manager controls
The following controls are strongly recommended when using
Secret Manager.
Set up automatic secret rotation
Google control ID
SM-CO-6.2
Category
Required
Description
Automatically rotate secrets and have emergency rotation procedures available in case of a compromise.
Recommended controls based on generative AI use case
If you handle sensitive data or sensitive generative AI workloads, we recommend
that you implement the following controls in your applicable generative AI use
cases.
Replicate secrets automatically
Google control ID
SM-CO-6.1
Category
Recommended
Description
Choose the automatic replication policy to replicate your secrets unless your workload has specific location requirements. The automatic policy meets the availability and performance needs of most workloads. If your workload has specific location requirements, you can use the API to select the locations for the replication policy when you create the secret.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-16 UTC."],[],[]]