Secret Manager 可存储 API 密钥、密码、证书和其他敏感数据。在提供便捷性的同时还能提高安全性。了解详情。
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
培训
培训和教程
Secret Manager 搭配 Python
了解如何将 Secret Manager 与 Python 搭配使用,以二进制 blob 或文本字符串的形式存储、管理和访问密文。如果您具有适当的权限,则可以查看密文的内容。
培训
培训和教程
Google Cloud中的安全性
在该培训课程中,您会了解各种 Google Cloud 安全控制措施和技术,探索 Google Cloud 的组件并在该平台上部署安全的解决方案。您还会了解如何缓解基于 Google Cloud的基础架构中多个方面的攻击,包括分布式拒绝服务攻击、网上诱骗攻击以及涉及内容分类和使用的威胁。
培训
培训和教程
使用 Cloud Code 创建和管理 Secret
本互动教程将引导您使用 Cloud Code 的 Secret Manager 集成创建和访问密文。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-18。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],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--------------"]]