<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Managing Secrets for Different Groups in a Databricks Workspace in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/managing-secrets-for-different-groups-in-a-databricks-workspace/m-p/101648#M40759</link>
    <description>&lt;P class="_1t7bu9h1 paragraph"&gt;Managing secrets within Databricks when you have different groups or teams in the same workspace can be approached in several ways, each with its own advantages. Here are some best practices and methods based on the context provided:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Using Azure Key Vaults:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;STRONG&gt;Separate Key Vaults for Each Group/User:&lt;/STRONG&gt; You can create separate Azure Key Vaults for each group or user and then integrate them into Databricks. This method allows for fine-grained access control and isolation of secrets. Each Key Vault can have its own access policies, ensuring that only the intended group or user can access the secrets.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Azure Key Vault-backed Secret Scopes:&lt;/STRONG&gt; Databricks allows you to create secret scopes that are backed by Azure Key Vault. This means that secrets are stored in Azure Key Vault and accessed through Databricks. This method leverages Azure's robust security features and integrates seamlessly with Databricks.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Databricks-backed Secret Scopes:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Creating Secret Scopes with Different Permissions:&lt;/STRONG&gt; You can create Databricks-backed secret scopes and assign different permissions to each group or user. This method is straightforward and allows you to manage secrets directly within Databricks. You can use the Databricks CLI or the Secrets API to create and manage these scopes.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Managing Permissions:&lt;/STRONG&gt; By default, the user who creates the secret scope has the MANAGE permission, which allows them to read, write, and manage permissions on the scope. You can grant other users or groups specific permissions (READ, WRITE, MANAGE) on the secret scope using the Databricks CLI or Secrets API.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Automation of Secret Management:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;STRONG&gt;Using Terraform:&lt;/STRONG&gt; Terraform can be used to automate the creation and management of Azure Key Vaults, secret scopes, and access policies. This approach ensures that your infrastructure is defined as code and can be versioned and managed consistently.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;ARM Templates:&lt;/STRONG&gt; Azure Resource Manager (ARM) templates can also be used to automate the deployment and configuration of Azure Key Vaults and their access policies.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Databricks API:&lt;/STRONG&gt; The Databricks API can be used to programmatically create and manage secret scopes and secrets. This can be integrated into your CI/CD pipelines to ensure that secrets are managed dynamically as teams and their access needs change&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Tue, 10 Dec 2024 18:23:33 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2024-12-10T18:23:33Z</dc:date>
    <item>
      <title>Managing Secrets for Different Groups in a Databricks Workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/managing-secrets-for-different-groups-in-a-databricks-workspace/m-p/88263#M37522</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm looking for some advice on how people are managing secrets within Databricks when you have &lt;STRONG&gt;different groups&lt;/STRONG&gt; (or teams) in the &lt;STRONG&gt;same workspace&lt;/STRONG&gt;, each requiring access to different sets of secrets.&lt;/P&gt;&lt;P&gt;Here’s the challenge:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We have multiple groups within the same Databricks workspace, and each group needs different sets of secrets.&lt;/LI&gt;&lt;LI&gt;Some groups or even individual users need specific secrets with tightly controlled access.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;My Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Do you create separate Azure Key Vaults&lt;/STRONG&gt; for each group or user, and then integrate them into Databricks? Or,&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Do you use Databricks-backed secret scopes&lt;/STRONG&gt; with different permissions per group?&lt;/LI&gt;&lt;LI&gt;Is there a &lt;STRONG&gt;best practice&lt;/STRONG&gt; to ensure security while maintaining flexibility?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Additionally, if anyone has &lt;STRONG&gt;automated this process&lt;/STRONG&gt;, I’d love to hear how:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Are you automating secret management&lt;/STRONG&gt; using tools like Terraform, ARM templates, or the Databricks API?&lt;/LI&gt;&lt;LI&gt;Any tips on managing secret scope permissions dynamically as teams and their access needs change?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 10:01:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/managing-secrets-for-different-groups-in-a-databricks-workspace/m-p/88263#M37522</guid>
      <dc:creator>Direo</dc:creator>
      <dc:date>2024-09-04T10:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Secrets for Different Groups in a Databricks Workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/managing-secrets-for-different-groups-in-a-databricks-workspace/m-p/101648#M40759</link>
      <description>&lt;P class="_1t7bu9h1 paragraph"&gt;Managing secrets within Databricks when you have different groups or teams in the same workspace can be approached in several ways, each with its own advantages. Here are some best practices and methods based on the context provided:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Using Azure Key Vaults:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;STRONG&gt;Separate Key Vaults for Each Group/User:&lt;/STRONG&gt; You can create separate Azure Key Vaults for each group or user and then integrate them into Databricks. This method allows for fine-grained access control and isolation of secrets. Each Key Vault can have its own access policies, ensuring that only the intended group or user can access the secrets.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Azure Key Vault-backed Secret Scopes:&lt;/STRONG&gt; Databricks allows you to create secret scopes that are backed by Azure Key Vault. This means that secrets are stored in Azure Key Vault and accessed through Databricks. This method leverages Azure's robust security features and integrates seamlessly with Databricks.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Databricks-backed Secret Scopes:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Creating Secret Scopes with Different Permissions:&lt;/STRONG&gt; You can create Databricks-backed secret scopes and assign different permissions to each group or user. This method is straightforward and allows you to manage secrets directly within Databricks. You can use the Databricks CLI or the Secrets API to create and manage these scopes.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Managing Permissions:&lt;/STRONG&gt; By default, the user who creates the secret scope has the MANAGE permission, which allows them to read, write, and manage permissions on the scope. You can grant other users or groups specific permissions (READ, WRITE, MANAGE) on the secret scope using the Databricks CLI or Secrets API.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Automation of Secret Management:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;STRONG&gt;Using Terraform:&lt;/STRONG&gt; Terraform can be used to automate the creation and management of Azure Key Vaults, secret scopes, and access policies. This approach ensures that your infrastructure is defined as code and can be versioned and managed consistently.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;ARM Templates:&lt;/STRONG&gt; Azure Resource Manager (ARM) templates can also be used to automate the deployment and configuration of Azure Key Vaults and their access policies.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Databricks API:&lt;/STRONG&gt; The Databricks API can be used to programmatically create and manage secret scopes and secrets. This can be integrated into your CI/CD pipelines to ensure that secrets are managed dynamically as teams and their access needs change&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 10 Dec 2024 18:23:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/managing-secrets-for-different-groups-in-a-databricks-workspace/m-p/101648#M40759</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-12-10T18:23:33Z</dc:date>
    </item>
  </channel>
</rss>

