Secret Manager documentation
Secret Manager stores API keys, passwords, certificates, and other sensitive
data. It provides convenience while improving security.
Learn more.
Start your proof of concept with $300 in free credit
-
Get access to Gemini 2.0 Flash Thinking
-
Free monthly usage of popular products, including AI APIs and BigQuery
-
No automatic charges, no commitment
Keep exploring with 20+ always-free products
Access 20+ free products for common use cases, including AI APIs, VMs, data warehouses,
and more.
Get started with Secret Manager
About regional secrets and parameter management
Training
Training and tutorials
Secret Manager with Python
Learn to use Secret Manager with Python to store, manage, and access secrets as binary blobs or text strings. With the appropriate permissions, you can view the contents of the secret.
Training
Training and tutorials
Security in Google Cloud
In this training course, you will learn about a variety of Google Cloud security controls and techniques. You'll explore the components of Google Cloud and deploy a secure solution on the platform. You'll also learn how to mitigate attacks at several points in a Google Cloud-based infrastructure, including distributed denial-of-service attacks, phishing attacks, and threats involving content classification and use.
Training
Training and tutorials
Creating and managing secrets with Cloud Code
This interactive tutorial walks you through creating and accessing secrets using Cloud Code's Secret Manager integration.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-29 UTC.
[[["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-08-29 UTC."],[],[],null,["# Secret Manager documentation\n============================\n\n[Read product documentation](/secret-manager/docs/overview)\nSecret Manager stores API keys, passwords, certificates, and other sensitive\ndata. It provides convenience while improving security.\n[Learn more](/secret-manager/docs/overview).\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \ninfo\n\n### Get started with Secret Manager\n\n-\n\n [Product overview](/secret-manager/docs/overview)\n\n-\n\n [Global and regional service options](/secret-manager/docs/secret-manager-secrets-comparison)\n\n-\n\n [Create a secret](/secret-manager/docs/creating-and-accessing-secrets)\n\n-\n\n [Add a secret version](/secret-manager/docs/add-secret-version)\n\n-\n\n [Choose a replication policy](/secret-manager/docs/choosing-replication)\n\n-\n\n [Access control with IAM](/secret-manager/docs/access-control)\n\n-\n\n [Set an expiration date for a secret](/secret-manager/docs/creating-and-managing-expiring-secrets)\n\n-\n\n [Create and manage rotation schedules](/secret-manager/docs/secret-rotation)\n\n-\n\n [Enable CMEK for Secret Manager](/secret-manager/docs/cmek)\n\ninfo\n\n### About regional secrets and parameter management\n\n-\n\n [Compare global and regional service](/secret-manager/regional-secrets/global-regionalized-service-comparison)\n\n-\n\n [Create a regional secret](/secret-manager/regional-secrets/create-regional-secret)\n\n-\n\n [Add CMEK encryption to regional secrets](/secret-manager/regional-secrets/create-secret-cmek-encryption)\n\n-\n\n [Add a regional secret version](/secret-manager/regional-secrets/add-secret-version-rs)\n\n-\n\n [Access a regional secret version](/secret-manager/regional-secrets/access-secret-version-rs)\n\n-\n\n [Overview of Parameter Manager](/secret-manager/parameter-manager/docs/overview)\n\n-\n\n [Create a parameter](/secret-manager/parameter-manager/docs/create-parameter)\n\n-\n\n [Add a parameter version](/secret-manager/parameter-manager/docs/add-parameter-version)\n\n-\n\n [Reference secrets in parameters](/secret-manager/parameter-manager/docs/reference-secrets-in-parameter)\n\ngroup_work\n\n### Reference and resources\n\n-\n\n [Client libraries](/secret-manager/docs/reference/libraries)\n\n-\n\n [REST API](/secret-manager/docs/reference/rest)\n\n-\n\n [RPC API](/secret-manager/docs/reference/rpc)\n\n-\n\n [Pricing](/secret-manager/pricing)\n\n-\n\n [Quotas and limits](/secret-manager/quotas)\n\n-\n\n [Release notes](/secret-manager/docs/release-notes)\n\n-\n\n [Locations](/secret-manager/docs/locations)\n\n-\n\n [Service Level Agreement (SLA)](/secret-manager/sla)\n\nRelated resources\n-----------------\n\nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Secret Manager with Python\n\n\nLearn to use Secret Manager with Python to store, manage, and access secrets as binary blobs or text strings. With the appropriate permissions, you can view the contents of the secret.\n\n\n[Learn more](https://codelabs.developers.google.com/codelabs/secret-manager-python#0) \nTraining \nTraining and tutorials\n\n### Security in Google Cloud\n\n\nIn this training course, you will learn about a variety of Google Cloud security controls and techniques. You'll explore the components of Google Cloud and deploy a secure solution on the platform. You'll also learn how to mitigate attacks at several points in a Google Cloud-based infrastructure, including distributed denial-of-service attacks, phishing attacks, and threats involving content classification and use.\n\n\n[Learn more](/training/course/security-in-google-cloud-platform) \nTraining \nTraining and tutorials\n\n### Creating and managing secrets with Cloud Code\n\n\nThis interactive tutorial walks you through creating and accessing secrets using Cloud Code's Secret Manager integration.\n\n\n[Learn more](https://console.cloud.google.com/?walkthrough_id=shell--secret_manager_cloud_code_create_secret)\n\nRelated videos\n--------------"]]