<?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 Understanding Databricks Workspace IP Access List in Community Articles</title>
    <link>https://community.databricks.com/t5/community-articles/understanding-databricks-workspace-ip-access-list/m-p/101012#M328</link>
    <description>&lt;H3&gt;What is a Databricks Workspace IP Access List?&lt;/H3&gt;&lt;P class=""&gt;The &lt;STRONG&gt;Databricks Workspace IP Access List&lt;/STRONG&gt; is a security feature that allows administrators to control access to the Databricks workspace by specifying which IP addresses or IP ranges are allowed or denied access. This feature is crucial for enhancing the security of your Databricks environment, especially when working in sensitive or regulated industries&lt;/P&gt;&lt;H3&gt;Key Features&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Allows configuration of &lt;STRONG&gt;allow lists&lt;/STRONG&gt; and &lt;STRONG&gt;block lists&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Supports IPv4 and IPv6 address ranges.&lt;/LI&gt;&lt;LI&gt;Ensures that unauthorized users outside the specified IP ranges cannot access the workspace.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;Why Do We Use It?&lt;/H3&gt;&lt;P class=""&gt;The primary reason for implementing an IP access list is &lt;STRONG&gt;security&lt;/STRONG&gt;. Here are some scenarios where this feature is indispensable:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Restrict Unauthorized Access&lt;/STRONG&gt;: By allowing only known IP ranges, you reduce the risk of unauthorized access to your data and computations.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Compliance with Regulations&lt;/STRONG&gt;: Many industries, such as finance and healthcare, require strict access controls to comply with data protection regulations.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Network Segmentation&lt;/STRONG&gt;: Organizations often want to ensure that only users within their corporate network or VPN can access sensitive data and resources.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Auditing and Monitoring&lt;/STRONG&gt;: Helps identify and block unexpected IP addresses attempting to access the workspace.&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;How Does It Operate?&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Definition of Rules&lt;/STRONG&gt;: Administrators define a list of IP addresses or CIDR ranges to either allow or block access to the workspace.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Priority of Rules&lt;/STRONG&gt;: Allow rules take precedence over deny rules. If no allow rules match, access is denied by default.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Propagation&lt;/STRONG&gt;: Once configured, the rules are applied to all endpoints of the Databricks workspace, including the web UI, REST APIs, and notebooks.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Enforcement&lt;/STRONG&gt;: Any attempt to access the workspace from an IP not on the allow list will be blocked.&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;Real-World Use Case&lt;/H3&gt;&lt;H3&gt;Scenario: Securing Access to a Healthcare Analytics Workspace&lt;/H3&gt;&lt;P class=""&gt;A healthcare organization uses Databricks for advanced analytics on patient data. To ensure compliance with &lt;STRONG&gt;HIPAA regulations&lt;/STRONG&gt;, they need to secure the workspace. They:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Allow access only from their corporate VPN, which operates within the IP range 203.0.113.0/24.&lt;/LI&gt;&lt;LI&gt;Block all other IP ranges by default.&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Using the IP access list, they configure the allow rule for their corporate network and prevent any external unauthorized access.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Implementation&lt;/H3&gt;&lt;H3&gt;Using REST API&lt;/H3&gt;&lt;P class=""&gt;You can configure the IP access list via the Databricks REST API.&lt;/P&gt;&lt;H3&gt;1. Authentication&lt;/H3&gt;&lt;P class=""&gt;First, generate a Databricks Personal Access Token (PAT) from your workspace.&lt;/P&gt;&lt;H3&gt;2. Add an IP Access List&lt;/H3&gt;&lt;PRE&gt;curl -X POST \
  -H "Authorization: Bearer &amp;lt;your_pat_token&amp;gt;" \
  -H "Content-Type: application/json" \
  https://&amp;lt;your-databricks-instance&amp;gt;/api/2.0/ip-access-lists \
  -d '{
    "label": "Corporate Network",
    "list_type": "ALLOW",
    "ip_addresses": ["203.0.113.0/24"]
  }' &lt;/PRE&gt;&lt;H3&gt;3. Retrieve Current Lists&lt;/H3&gt;&lt;PRE&gt;curl -X GET \
  -H "Authorization: Bearer &amp;lt;your_pat_token&amp;gt;" \
  https://&amp;lt;your-databricks-instance&amp;gt;/api/2.0/ip-access-lists &lt;/PRE&gt;&lt;H3&gt;4. Remove an IP Access List&lt;/H3&gt;&lt;PRE&gt;curl -X DELETE \
  -H "Authorization: Bearer &amp;lt;your_pat_token&amp;gt;" \
  https://&amp;lt;your-databricks-instance&amp;gt;/api/2.0/ip-access-lists/&amp;lt;ip_access_list_id&amp;gt; &lt;/PRE&gt;&lt;HR /&gt;&lt;H3&gt;Using Terraform&lt;/H3&gt;&lt;P class=""&gt;You can also use Terraform to manage your Databricks IP access list.&lt;/P&gt;&lt;H3&gt;Terraform Code&lt;/H3&gt;&lt;PRE&gt;provider "databricks" {
  host  = "https://&amp;lt;your-databricks-instance&amp;gt;"
  token = var.databricks_pat_token
}

resource "databricks_ip_access_list" "corporate_network" {
  label       = "Corporate Network"
  list_type   = "ALLOW"
  ip_addresses = [
    "203.0.113.0/24"
  ]
} &lt;/PRE&gt;&lt;H3&gt;Steps&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Save the above configuration as main.tf.&lt;/LI&gt;&lt;LI&gt;Initialize Terraform: terraform init&lt;/LI&gt;&lt;LI&gt;Apply the configuration: terraform apply&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;Conclusion&lt;/H3&gt;&lt;P class=""&gt;The Databricks Workspace IP Access List is a critical feature for securing your environment, ensuring compliance, and protecting sensitive data. Whether using REST APIs or Terraform, it’s easy to implement and highly effective in controlling access to your Databricks workspace. By leveraging this feature, you can significantly reduce the attack surface and ensure that only authorized users can interact with your Databricks resources.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imresizer-1733377644213.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13329i041B729B149B1F79/image-size/large?v=v2&amp;amp;px=999" role="button" title="imresizer-1733377644213.jpg" alt="imresizer-1733377644213.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2024 06:16:02 GMT</pubDate>
    <dc:creator>Ajay-Pandey</dc:creator>
    <dc:date>2024-12-05T06:16:02Z</dc:date>
    <item>
      <title>Understanding Databricks Workspace IP Access List</title>
      <link>https://community.databricks.com/t5/community-articles/understanding-databricks-workspace-ip-access-list/m-p/101012#M328</link>
      <description>&lt;H3&gt;What is a Databricks Workspace IP Access List?&lt;/H3&gt;&lt;P class=""&gt;The &lt;STRONG&gt;Databricks Workspace IP Access List&lt;/STRONG&gt; is a security feature that allows administrators to control access to the Databricks workspace by specifying which IP addresses or IP ranges are allowed or denied access. This feature is crucial for enhancing the security of your Databricks environment, especially when working in sensitive or regulated industries&lt;/P&gt;&lt;H3&gt;Key Features&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Allows configuration of &lt;STRONG&gt;allow lists&lt;/STRONG&gt; and &lt;STRONG&gt;block lists&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Supports IPv4 and IPv6 address ranges.&lt;/LI&gt;&lt;LI&gt;Ensures that unauthorized users outside the specified IP ranges cannot access the workspace.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;Why Do We Use It?&lt;/H3&gt;&lt;P class=""&gt;The primary reason for implementing an IP access list is &lt;STRONG&gt;security&lt;/STRONG&gt;. Here are some scenarios where this feature is indispensable:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Restrict Unauthorized Access&lt;/STRONG&gt;: By allowing only known IP ranges, you reduce the risk of unauthorized access to your data and computations.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Compliance with Regulations&lt;/STRONG&gt;: Many industries, such as finance and healthcare, require strict access controls to comply with data protection regulations.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Network Segmentation&lt;/STRONG&gt;: Organizations often want to ensure that only users within their corporate network or VPN can access sensitive data and resources.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Auditing and Monitoring&lt;/STRONG&gt;: Helps identify and block unexpected IP addresses attempting to access the workspace.&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;How Does It Operate?&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Definition of Rules&lt;/STRONG&gt;: Administrators define a list of IP addresses or CIDR ranges to either allow or block access to the workspace.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Priority of Rules&lt;/STRONG&gt;: Allow rules take precedence over deny rules. If no allow rules match, access is denied by default.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Propagation&lt;/STRONG&gt;: Once configured, the rules are applied to all endpoints of the Databricks workspace, including the web UI, REST APIs, and notebooks.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Enforcement&lt;/STRONG&gt;: Any attempt to access the workspace from an IP not on the allow list will be blocked.&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;Real-World Use Case&lt;/H3&gt;&lt;H3&gt;Scenario: Securing Access to a Healthcare Analytics Workspace&lt;/H3&gt;&lt;P class=""&gt;A healthcare organization uses Databricks for advanced analytics on patient data. To ensure compliance with &lt;STRONG&gt;HIPAA regulations&lt;/STRONG&gt;, they need to secure the workspace. They:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Allow access only from their corporate VPN, which operates within the IP range 203.0.113.0/24.&lt;/LI&gt;&lt;LI&gt;Block all other IP ranges by default.&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Using the IP access list, they configure the allow rule for their corporate network and prevent any external unauthorized access.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Implementation&lt;/H3&gt;&lt;H3&gt;Using REST API&lt;/H3&gt;&lt;P class=""&gt;You can configure the IP access list via the Databricks REST API.&lt;/P&gt;&lt;H3&gt;1. Authentication&lt;/H3&gt;&lt;P class=""&gt;First, generate a Databricks Personal Access Token (PAT) from your workspace.&lt;/P&gt;&lt;H3&gt;2. Add an IP Access List&lt;/H3&gt;&lt;PRE&gt;curl -X POST \
  -H "Authorization: Bearer &amp;lt;your_pat_token&amp;gt;" \
  -H "Content-Type: application/json" \
  https://&amp;lt;your-databricks-instance&amp;gt;/api/2.0/ip-access-lists \
  -d '{
    "label": "Corporate Network",
    "list_type": "ALLOW",
    "ip_addresses": ["203.0.113.0/24"]
  }' &lt;/PRE&gt;&lt;H3&gt;3. Retrieve Current Lists&lt;/H3&gt;&lt;PRE&gt;curl -X GET \
  -H "Authorization: Bearer &amp;lt;your_pat_token&amp;gt;" \
  https://&amp;lt;your-databricks-instance&amp;gt;/api/2.0/ip-access-lists &lt;/PRE&gt;&lt;H3&gt;4. Remove an IP Access List&lt;/H3&gt;&lt;PRE&gt;curl -X DELETE \
  -H "Authorization: Bearer &amp;lt;your_pat_token&amp;gt;" \
  https://&amp;lt;your-databricks-instance&amp;gt;/api/2.0/ip-access-lists/&amp;lt;ip_access_list_id&amp;gt; &lt;/PRE&gt;&lt;HR /&gt;&lt;H3&gt;Using Terraform&lt;/H3&gt;&lt;P class=""&gt;You can also use Terraform to manage your Databricks IP access list.&lt;/P&gt;&lt;H3&gt;Terraform Code&lt;/H3&gt;&lt;PRE&gt;provider "databricks" {
  host  = "https://&amp;lt;your-databricks-instance&amp;gt;"
  token = var.databricks_pat_token
}

resource "databricks_ip_access_list" "corporate_network" {
  label       = "Corporate Network"
  list_type   = "ALLOW"
  ip_addresses = [
    "203.0.113.0/24"
  ]
} &lt;/PRE&gt;&lt;H3&gt;Steps&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Save the above configuration as main.tf.&lt;/LI&gt;&lt;LI&gt;Initialize Terraform: terraform init&lt;/LI&gt;&lt;LI&gt;Apply the configuration: terraform apply&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;Conclusion&lt;/H3&gt;&lt;P class=""&gt;The Databricks Workspace IP Access List is a critical feature for securing your environment, ensuring compliance, and protecting sensitive data. Whether using REST APIs or Terraform, it’s easy to implement and highly effective in controlling access to your Databricks workspace. By leveraging this feature, you can significantly reduce the attack surface and ensure that only authorized users can interact with your Databricks resources.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imresizer-1733377644213.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13329i041B729B149B1F79/image-size/large?v=v2&amp;amp;px=999" role="button" title="imresizer-1733377644213.jpg" alt="imresizer-1733377644213.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 06:16:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/understanding-databricks-workspace-ip-access-list/m-p/101012#M328</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-12-05T06:16:02Z</dc:date>
    </item>
  </channel>
</rss>

