机密管理 Secret management

有时,访问数据需要通过 JDBC 对外部数据源进行身份验证。Sometimes accessing data requires that you authenticate to external data sources through JDBC. 如果不直接在笔记本中输入凭据,可以使用 Azure Databricks 机密来存储凭据并在笔记本和作业中引用这些凭据。Instead of directly entering your credentials into a notebook, use Azure Databricks secrets to store your credentials and reference them in notebooks and jobs. 若要管理机密,可以使用 Databricks CLI 访问机密 APITo manage secrets, you can use the Databricks CLI to access the Secrets API.

若要设置机密,请执行以下操作:To set up secrets you:

  1. 创建机密范围Create a secret scope. 机密范围名称不区分大小写。Secret scope names are case insensitive.
  2. 将机密添加到范围Add secrets to the scope. 机密名称不区分大小写。Secret names are case insensitive.
  3. 如果你有 Azure Databricks Premium 计划,请将访问控制分配到机密范围。If you have the Azure Databricks Premium Plan, assign access control to the secret scope.

本指南介绍如何执行这些设置任务以及管理机密。This guide shows you how to perform these setup tasks and manage secrets. 有关详细信息,请参阅:For more information, see:

本指南内容:In this guide: