<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hari Selvarajan on Medium]]></title>
        <description><![CDATA[Stories by Hari Selvarajan on Medium]]></description>
        <link>https://medium.com/@hari.selvarajan?source=rss-69473959aa88------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yEwOGNQal2FflZBY</url>
            <title>Stories by Hari Selvarajan on Medium</title>
            <link>https://medium.com/@hari.selvarajan?source=rss-69473959aa88------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:47:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hari.selvarajan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Privileged Identity Management with Databricks Automatic Identity Management]]></title>
            <link>https://medium.com/databricks-platform-sme/privileged-identity-management-with-databricks-automatic-identity-management-bbf4549adf6c?source=rss-69473959aa88------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf4549adf6c</guid>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Hari Selvarajan]]></dc:creator>
            <pubDate>Thu, 06 Mar 2025 15:51:40 GMT</pubDate>
            <atom:updated>2025-03-06T16:02:21.497Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction and Background:</h3><p>In the previous <a href="https://medium.com/databricks-platform-sme/privileged-identity-management-for-databricks-with-microsoft-entra-id-e5491790f64c">blog</a>, we explained how the Privileged Identity Management feature of Azure Entra can be used to achieve just-in-time, time-bound, peer-approved access for users to perform tasks that require elevated permissions. We also explained how you could use SCIM to get temporary elevated access to Azure Databricks.</p><p>While the setup works great, there are certain limitation that comes with using SCIM:</p><ul><li>SCIM sync process of identities to Databricks is on a fixed schedule which introduces a lag from when a PIM access was provided and when it is reflected in Databricks</li><li>While you can use this to sync users and groups, the SCIM process doesn’t support nested groups, and service principals cannot be synced to Databricks. These limitations also apply when used for PIM.</li></ul><p>Privileged Identity Management (PIM) allows organizations to:</p><ul><li>Provide Just in Time (JIT) access to critical resources for eligible users</li><li>Ensure time-bound access to those resources</li><li>Enforce an approval workflow to monitor access requests and the justification behind them</li><li>Monitor access reviews for privileged identities in one centralized place</li></ul><p>Azure Databricks recently introduced <a href="https://www.databricks.com/blog/announcing-automatic-identity-management-azure-databricks">Automatic Identity Management</a>, which is designed to address some of SCIM’s limitations. In this blog, we will see how using Automatic Identity Management and PIM, one could achieve just-in-time, time-bound, approved access to the Databricks Platform.</p><h3>Databricks Automatic Identity Management:</h3><p>Automatic identity management leverages Microsoft Entra Graph API to instantly add users, groups and service principals into Databricks. When automatic identity management is enabled, an identity can be searched directly in Microsoft Entra ID and added to the Databricks workspace (as shown in the image below). Any changes to group memberships are reflected immediately in Azure Databricks.</p><p>Groups that are added using automatic identity management are shown as External in Azure Databricks. External identities cannot be updated using the Azure Databricks UI which also helps in ensuring group membership is maintained in Entra only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c45kUBnNLYqPunz2tJROAQ.gif" /></figure><h3>Databricks Identity Management:</h3><p>Databricks has a number of key roles which have administrative access in Databricks:</p><ul><li>Account Admin: Administrative access on the account console to configure account-level components (workspaces, NCC, etc)</li><li>Metastore Admin: Manage Unity Catalog metastore and its components and design downstream permissions model</li><li>Workspace Admin: Administrative access on a Databricks workspace to configure workspace-level components (clusters, jobs, users/groups, warehouses etc)</li></ul><p>In addition to the above, there are other examples whereby organizations might want to manage access on a JIT basis — for example, even a non-admin workspace user may need a temporary privileged role for a production workspace, similarly in certain scenarios even access to specific Unity Catalog securable should be time-bound and subject to approvals.</p><p>Databricks recommends giving access to groups (instead of users) for all privileged roles. These groups and their members can be synced from an IDP to Databricks. In all the above scenarios, it’s vital to control which users get access to these roles. With Azure PIM, it is possible to only provide Just In Time access to selected users on these roles to carry out the required tasks. Some of the scenarios where PIM can be used with Databricks are:</p><ul><li>Perform production workspace or account level configuration as part of a Change Management process where elevated access is required for a small duration of time only and the change cannot be performed via automation and CI/CD managed code</li><li>Onboarding an external user or contractor to access Databricks workspaces for a limited period of time</li><li>Break-glass scenarios are when elevated access is required for exceptional workflows or when it is beneficial to involve a trusted admin in resolving a problem.</li></ul><h3>PIM Set up:</h3><p>Let us now understand how to set up PIM. We will use an example of an account admin role and how using PIM and SCIM one can set up JIT access to the account console to perform administrative tasks. The key requirements are:</p><ul><li>By default, no users have permanent account admin access to Databricks</li><li>Only certain eligible users can request account admin access on Databricks (Support team for making production changes, Network team)</li><li>An access request should be raised with a justification provided</li><li>An approval workflow should be in place where only certain key approvers are allowed to review and approve access (business owners or Platform owners)</li><li>The access should be restricted to only 1 hour</li><li>The details of of access request should be auditable</li></ul><h3>AD group set up in Databricks:</h3><p>This step is to create an AD Group in Entra ID and make the group account admin in Databricks:</p><p>1. Create the AD Group in Entra ID, initially with empty members. Let’s call it DBAccountAdmin</p><p>2. Add the AD group into the account console. At present there is no way to add an Entra group in the account console through the UI, but using Databricks cli this can be achieved as shown below:</p><pre>databricks account groups create - display-name DBAccountAdmin - external-id b94251f8–6330–46e8–9c74-c4a49db48c2a - profile &lt;profile-name&gt;</pre><p>Note: Make sure to set the external-id property to map to the group’s object ID in Entra; that’s how Databricks links the group to its equivalent in Entra.</p><p>3. Make the group DBAccountAdmin an Account admin in Databricks. This can be done using Terraform or through Databricks <a href="https://docs.databricks.com/api/azure/account/accountgroups/patch">API</a>. It can be verified from cli like below:</p><pre>databricks account groups get 780692776839477 - profile anvayaccoun<br>output:<br>{<br>&quot;displayName&quot;:&quot;DBAccountAdmin&quot;,<br>&quot;externalId&quot;:&quot;b94251f8–6330–46e8–9c74-c4a49db48c2a&quot;,<br>&quot;id&quot;:&quot;780692776839477&quot;,<br>&quot;roles&quot;: [<br>{<br>&quot;type&quot;:&quot;direct&quot;,<br>&quot;value&quot;:&quot;account_admin&quot;<br>}<br>],<br>&quot;schemas&quot;: [<br>&quot;urn:ietf:params:scim:schemas:core:2.0:Group&quot;<br>]<br>}</pre><p>4. The account group is added as account admin and instantly updated with Entra with no SCIM sync required. Initially, it contains 0 members. As you can see we have the DBAccountAdmin group with no members.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4sEKHnHB8IOmhM3E" /></figure><h3>Activate Group for PIM:</h3><p>1. Select an AD Group, which was created in the previous step, and client “Enable PIM for this group”. This will add the AD group to PIM management:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5KtJnc8lOmbY4RVL" /></figure><p>2. Go to Privileged Identity Management, select Manage→Groups and select the group DBAccountAdmin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RoWXNH1-gz9W0a3v" /></figure><p>3. Click on Settings and select Role “Member” to configure the setting for it as per the requirement defined above. Change the following</p><p>— Activation maximum duration (hours) — 1 hours</p><p>— Require justification on activation — yes</p><p>— Add Approvers (an email address or an AD Group)</p><p>— Configure other notification parameters as needed and click Update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pi8OkwCnuy43_J53" /></figure><p>5. Click on the Assignment section under Manage and select Eligible Assignment. Here, only the list of users eligible to join the DBAccount_Admin group is added. We will add them as eligible so that they are only added to the group by way of requesting access and triggering an approval workflow. In the example, I have added User2 as an eligible user. The start and end dates are derived from the Settings table we defined in the previous step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i9jxwFQ61Nk6aiXU" /></figure><p>With the above steps, the PIM set-up for the DBAccountAdmin group is complete.</p><h3>Walkthrough of a scenario</h3><p>Let us assume a scenario in which User2 wants to do some account admin work in the account console and needs access temporarily. We will see the steps the user goes through:</p><ol><li>Test User logs to EntraID and goes to PIM selects the group DBAccountAdmin and click Tasks→ MyRoles</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*djXcOQvZQKvZsRkU" /></figure><p>The TestUser is shown as eligible but not active (as configured earlier)</p><p>2. TestUser clicks on Activate and gives a justification for the activation (note the duration is auto-set to max 1 hour as configured earlier) and clicks Activate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y1VfhNondMUVg8Th" /></figure><p>3. This action initiates an approval workflow to the approver list of this PIM group. The approver now logs into PIM and selects Tasks→ApproveRequests→Groups and notices a request waiting for his approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KNsqxb2n1kFh5BX1" /></figure><p>4. The approver reviews the request and approves it.</p><p>5. TestUser can now verify this approval and notices his name shown under Active Assignment for DBAccountAdmin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6SY86qho7HMNsKv6" /></figure><p>6. TestUser is now a member of DBAccountAdmin, and this is instantly reflected in the account console as soon as the user logs in. Again, no need for the SCIM sync process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VZ5SYvFnQqpAlkzv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xpjkZvpN1wOTAnzH" /></figure><p>7. TestUser completes his admin work. At the end of the hour, the TestUser membership is removed from the DBAccountAdmin membership (it moves from Active Assignment to Eligible assignment), and the change is reflected in the account console as well</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LRrAPhSDRR_-vGag" /></figure><h3>Monitoring and Auditing:</h3><p>One of the key aspects of any security feature is the ability to monitor and audit the detailed activity log of users and service principals. Azure PIM also helps with auditing of privileged access for each Role, Group and Resources. In the above example, an administrator can go to PIM and review the audit history for DBAccountGroup to check which users requested AccountAdmin access and for what purpose. This can also be cross-referenced with Databricks <a href="https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/audit-logs">audit logs</a> to determine if the action the user performed indeed matches the justification given. This gives a complete picture of users’ actions.</p><p>PIM Group Audit History:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tB0sZ66XK1KvqIar" /></figure><p>Databricks Audit Log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U2XiklWDDQhHVoGc" /></figure><h3>Conclusion:</h3><p>In this blog, we have seen how Azure Privileged Identity Management can be used by enterprises to secure access to privileged identities and protect access to critical roles. Along with the new Automatic identity management feature in Azure Databricks, customers can provide Just In Time access to perform admin operations without the requirement for SCIM or a sync process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf4549adf6c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/databricks-platform-sme/privileged-identity-management-with-databricks-automatic-identity-management-bbf4549adf6c">Privileged Identity Management with Databricks Automatic Identity Management</a> was originally published in <a href="https://medium.com/databricks-platform-sme">Databricks Platform SME</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Privileged Identity Management for Databricks with Microsoft Entra ID]]></title>
            <link>https://medium.com/databricks-platform-sme/privileged-identity-management-for-databricks-with-microsoft-entra-id-e5491790f64c?source=rss-69473959aa88------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5491790f64c</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[identity-management]]></category>
            <dc:creator><![CDATA[Hari Selvarajan]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 23:42:49 GMT</pubDate>
            <atom:updated>2024-11-06T23:43:33.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction and Background:</h3><p>Identity and Access management is a key pillar of any effective security program. Balancing empowering people to innovate and collaborate on the one hand, while not exceeding their privileges on the other, is an unenviable task, and with an ever-increasing number of resources to manage, it is a challenge that is only becoming harder.</p><p>One way that organizations are tackling this challenge is via Privileged Identity Management.</p><p>Privileged Identity Management (PIM) allows organizations to:</p><ul><li>Provide Just in Time (JIT) access to critical resources for eligible users</li><li>Ensure time-bound access to those resources</li><li>Enforce an approval workflow to monitor access requests and the justification behind them</li><li>Monitor access reviews for privileged identities in one centralized place</li></ul><p>The Databricks platform integrates with all leading identity providers (IdP) via SCIM — an open standard for synchronizing users, groups and service principals to cloud platforms. In this blog, we will explain how you can use <a href="https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-configure">Azure Privileged Identity Management</a> to provide just-in-time access to privileged Databricks resources such as account and workspace admin groups. Whilst this example focuses on Azure Databricks and Microsoft Entra ID, the same approach would work equally well for Microsoft Entra ID with Databricks on AWS or GCP and should work similarly for other leading identity providers that support privileged identity management too.</p><h3>Azure Privileged Access Management:</h3><h3>Access Management Types:</h3><p><a href="https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-configure">Azure PIM</a> offers three types of access management:</p><ol><li>Microsoft Entra Roles: This is used to assign users, groups or service principals to built-in Entra ID roles or custom roles created by a user. Ex: Application Administrator, DevOps Administrator, Network Administrator etc. Depending on the role, the assignment can be also controlled at a particular scope level.</li><li>Azure Resources: This is used to assign users, groups and service principals to Azure resources. Access to Azure resources is done by RBAC role assignment which can be built-in and custom role. Assignment can also be done at the management group, subscription, resources group and resource level. Ex: Storage Blog Data Reader, SQLServer Contributor, Data Factory Contributor etc.</li><li>Groups: This is used to assign Just In Time access to groups for users and service principals. Users or service principals can be assigned to be a member of the group or the owner of the group</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KxhWTjyVlMmA5mkX" /></figure><p><strong>Note</strong>: <em>While PIM supports all the above three access management types, in order to use effectively with Databricks, Groups access management is the recommended way, as the other two types don’t have rich support to use with Databricks</em></p><h3>Assignment Types:</h3><p>There are two types of assignments that can be performed in PIM</p><ul><li><strong>Eligible Assignment</strong>: This identifies identities which are marked eligible for a given access set up. The access is not set up by default, the user will have to initiate an access assignment which depending on the setting goes through a workflow</li><li><strong>Active Assignment</strong>: Here the identities are always assigned the access permissions without requiring initiation.</li></ul><p>In addition to that additional settings can be done for each assignment to control the access like:</p><ul><li>Require approval for assignment from designated approvers,</li><li>Set the duration of the active assignment,</li><li>Request for justification every time the user initiates an assignment request etc.</li></ul><h3>Databricks Identity Management:</h3><p>Databricks integrates with leading Identity Data Providers (IdP) to onboard users, groups and service principals. There are a number of key roles which have administrative access in Databricks:</p><ul><li><strong>Account Admin</strong>: Administrative access on the account console to configure account-level components (workspaces, NCC, etc)</li><li><strong>Metastore Admin</strong>: Manage Unity Catalog metastore and its components and design downstream permissions model</li><li><strong>Workspace Admin</strong>: Administrative access on a Databricks workspace to configure workspace-level components (clusters, jobs, users/groups, warehouses etc)</li></ul><p>In addition to the above, there are other examples whereby organizations might want to manage access on a JIT basis — for example, even a non-admin workspace user may be in a privileged role for a production workspace, similarly in certain scenarios even access to specific Unity Catalog securable should be time-bound and subject to approvals.</p><p>Databricks recommends giving access to groups (instead of users) for all privileged roles. These groups and their members can be synced from an IDP to Databricks. In all the above scenarios, it’s vital to control which users get access to these roles. With Azure PIM, it is possible to only provide Just In Time access to selected users on these roles to carry out the required tasks. Some of the scenarios where PIM can be used with Databricks are:</p><ul><li>Perform production workspace or account level configuration as part of a Change Management process where elevated access is required for a small duration of time only and the change cannot be performed via automation and CI/CD managed code</li><li>Onboarding an external user or contractor to access Databricks workspaces for a limited period of time</li><li>Break-glass scenarios are when elevated access is required for exceptional workflows or when it is beneficial to involve a trusted admin in resolving a problem.</li></ul><h3>PIM Set up:</h3><p>Let us now understand how to set up PIM. we will use an example of an account admin role and how using PIM and SCIM one can set up JIT access to the account console to perform administrative tasks. The key requirements are:</p><ul><li>Only certain eligible users can request account admin access on Databricks (Support team for making production changes, Network team)</li><li>An access request should be raised with a justification provided</li><li>An approval workflow should be in place where only certain key approvers are allowed to review and approve access (business owners or Platform owners)</li><li>The access should be restricted to only 1 hour</li><li>The details of of access request should be auditable</li></ul><h3>AD group set up in Databricks:</h3><p>This step is to create an AD Group in Entra ID and make the group account admin in Databricks:</p><ol><li>Create the AD Group in Entra ID, initially with empty members. Let’s call it DBAccountAdmin</li><li>Set up SCIM Integration between Entra ID and the Databricks account console to sync a User or Group to Databricks using the steps described <a href="https://learn.microsoft.com/en-us/azure/databricks/admin/users-groups/scim/aad">here</a>.</li><li>Make the group DBAccountAdmin an Account admin in Databricks. This can be done using Terraform or through Databricks <a href="https://docs.databricks.com/api/azure/account/accountgroups/patch">API</a></li><li>The account group is added as account admin with initially 0 members. The SCIM sync is also configured to periodically sync the users from Entra ID.</li></ol><p>As you can see we have the DBAccountAdmin group with no members</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*Da3gkuxAGY-H7SUb" /></figure><h3>Activate Group for PIM:</h3><ol><li>Select an AD Group which was created in the previous step and client “Enable PIM for this group”. This will add the AD group to PIM management.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9DAfjGRaUYAdx62a" /></figure><p>2. Go to Privileged Identity Management, select Manage→Groups and select the group DBAccountAdmin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AnJau1lmUp7S8tGZ" /></figure><p>3. Click on Settings and select Role “Member” to configure the setting for it as per the requirement defined above. Change the following</p><ul><li>Activation maximum duration (hours) — 1 hours</li><li>Require justification on activation — yes</li><li>Add Approvers (an email address or an AD Group)</li><li>Configure other notification parameters as needed and click Update.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bM9ZNDjScfjzvz1Z" /></figure><p>4. Click on the Assignment section under Manage and select Eligible Assignment. Here, only the list of users eligible to join the DBAccountAdmin group is added. We will add them as eligible so that they are only added to the group by way of requesting access and triggering an approval workflow. In the example, I have added User2 as an eligible user. The start and end dates are derived from the Settings table we defined in the previous step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XYZ5ayE3TW5ke9bf" /></figure><p>With the above steps, the PIM set-up for the DBAccountAdmin group is complete.</p><h3>Walkthrough of a scenario</h3><p>Let us assume a scenario in which User2 wants to do some account admin work in the account console and needs access temporarily. We will see the steps the user goes through:</p><ol><li>User2 logs to EntraID goes to PIM selects the group DBAccountAdmin and click Tasks→ MyRoles</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-bX7BR8n45CwyKD4" /></figure><p>The User2 is shown as eligible but not active (as configured earlier)</p><p>2. User2 clicks on Activate and gives a justification for the activation (note the duration is auto-set to max 1 hour as configured earlier) and clicks Activate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BCVE-NcIWe1gy-Ws" /></figure><p>3. This action initiates an approval workflow to the approver list of this PIM group. The approver now logs into PIM and selects Tasks→ApproveRequests→Groups and notices a request waiting for his approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LAsh93EZTeccNu_i" /></figure><p>4. The approver reviews the request and approves it.</p><p>5. User2 can now verify this approval and notices his name shown under Active Assignment for DBAccountAdmin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tOi0Fe3hrClMfSUz" /></figure><p>6. User2 is now a member of DBAccountAdmin, but this will not be reflected in the Databricks account console until the SCIM sync runs next.</p><p>7. After the SCIM syncs, User2 logs into the Account console and can see User2 being added and also configured as Account Admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BlMwtC63GUk1PcQ3" /></figure><p>8. User2 completes his admin work. At the end of the hour, User2 is removed from the DBAccountAdmin membership (moves from Active Assignment to Eligible assignment) and the next SCIM sync updates his role back to the normal user in the Account console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YeDREvqANm5zcEpm" /></figure><p><strong>Note</strong>: <em>It is important to note that, while the PIM activation and revocation of group membership is instant, there would be a delay to reflect the group membership in Databricks due to the SCIM sync schedule. This delay could be anywhere from 0 to max 40 mins.</em></p><h3>Monitoring and Auditing:</h3><p>One of the key aspects of any security feature is the ability to monitor and audit the detailed activity log of users and service principals. Azure PIM also helps with auditing of privileged access for each Role, Group and Resources. In the above example, an administrator can go to PIM and review the audit history for DBAccountGroup to check which users requested AccountAdmin access and for what purpose. This can also be cross-referenced with Databricks <a href="https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/audit-logs">audit logs</a> to determine if the action the user performed indeed matches the justification given. This gives a complete picture of users’ actions.</p><p><strong>PIM Group Audit History:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jo7WG_jqV2Vrybwv" /></figure><p><strong>Databricks Audit Log:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z8BdEci0_55A9QOs" /></figure><h3>Conclusion:</h3><p>We have seen in this blog how Azure Privileged Identity Management can be used by enterprises to secure access to privileged identities and protect access to critical roles. We also saw how Azure PIM can be used to secure the Databricks account admin role, providing Just In Time access to perform admin operations. The same principle can be applied to any Databricks role which needs to be secure (Production Workspace Admin, Production Workspace User, Catalog Owner, Metastore Admin etc)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5491790f64c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/databricks-platform-sme/privileged-identity-management-for-databricks-with-microsoft-entra-id-e5491790f64c">Privileged Identity Management for Databricks with Microsoft Entra ID</a> was originally published in <a href="https://medium.com/databricks-platform-sme">Databricks Platform SME</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Private Cross-Cloud Delta Sharing using Databricks]]></title>
            <link>https://medium.com/databricks-platform-sme/private-cross-cloud-delta-sharing-using-databricks-bc6239d134c6?source=rss-69473959aa88------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc6239d134c6</guid>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[data-sharing]]></category>
            <category><![CDATA[delta-sharing]]></category>
            <dc:creator><![CDATA[Hari Selvarajan]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 16:07:55 GMT</pubDate>
            <atom:updated>2024-03-15T19:16:09.384Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: <br><a href="https://www.linkedin.com/in/te-tan-0949b813b/"><em>Te Tan</em></a><em>, </em><a href="https://www.linkedin.com/in/gubyb/"><em>Gustav Byberg Skyle</em></a><em>, </em><a href="https://www.linkedin.com/in/ulmasov/"><em>Nikolay Ulmasov</em></a><em>, </em><a href="https://www.linkedin.com/in/andrew-weaver-94948b58/"><em>Andrew Weaver</em></a><em>, </em><a href="https://www.linkedin.com/in/hariganeshanselvarajan/"><em>Hari Selvarajan</em></a></p><h3>Introduction</h3><p>In today’s dynamic business landscape, organizations are increasingly embracing multi-cloud strategies to optimize functionality, enhance security, and achieve scalability. By harnessing the distinctive capabilities of multiple clouds, companies can streamline workloads, boost agility, and reduce costs, effectively avoiding vendor lock-in and enabling negotiations for favourable deals from diverse providers. Despite these benefits, challenges like data fragmentation and duplication may arise.</p><p>In the realm of cloud storage, many organizations choose to restrict public access to their data, driven by heightened concerns about data security and privacy. This intentional decision aims to safeguard sensitive information from unauthorized access and cyber threats. Consequently, as organizations implement multi-cloud strategies, they grapple with the need to strike a balance between accessibility and robust security measures.</p><p>To address these concerns, Delta Sharing, an open protocol for secure data sharing, emerges as a crucial asset. It facilitates secure data sharing across different clouds without replication, enabling organizations to maintain a nuanced balance between accessibility and stringent security.</p><h3>Secure Delta Sharing Challenge</h3><p>The below diagram explains the architecture of delta sharing. As it is evident, delta sharing requires the recipient to have direct access to the storage of the producer. While the delta sharing protocol ensures that only authorized recipients are allowed to access the data, this still requires the storage to be openly accessible, which is not widely acceptable for many customers.</p><p>To address network security, we have looked at different ways to secure the network route to ensure secure delta sharing takes place cross-cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F76b0HBjtbQnnWwY" /></figure><p>In general, we observe four types of policies that can be adopted by organizations pursuing a cross-cloud strategy:</p><ol><li>Utilizing IP allows for a specific portion of storage or a data lake to grant access to external consumers outside the cloud network. For most customers this option is the simplest and best solution already.</li><li>Using R2 Cloudflare and Databricks to share data with joint customers and reduce egress costs. More details <a href="https://www.databricks.com/blog/architecting-global-data-collaboration-delta-sharing">here</a>.</li><li>Implementing a cross-cloud VPN to access data provider storage, allowing for a no-public-access policy while routing traffic through the public internet in an encrypted mode.</li><li>Establishing an on-premises edge connection to access data provider storage, ensuring a no-public-access policy over a completely private connection.</li></ol><p>In this article, we will look at the 3rd option above. We will explain how to set up a cross-cloud VPC connection and use that to set up private delta sharing between two entities. We will also look at the added cost involved in setting up such infrastructure for example use case.</p><p>The details of implementing each cloud-to-cloud VPN connection can be found in the GitHub repo <a href="https://github.com/HariGS-DB/private_delta_share">here</a>.</p><h3>Solution</h3><h3>Prerequisites</h3><p>Before we go into the details of the secure delta share architecture, it’s important to list the prerequisite with respect to Databricks workspace/account set-up and the cloud infra that should be in place.</p><p><strong>Databricks</strong>:</p><ul><li>UC metastore created in the respective cloud account console with delta sharing enabled</li><li>Databricks workspace set up on two clouds (aws-azure, aws-gcp, gcp-azure) and mapped to the metastore</li><li>D2D delta share set up between two clouds workspaces:<br> — Add consumer DB ID as a recipient<br> — Create a share<br> — Add tables to the share<br> — Grant access to that share to the recipient</li></ul><p><strong>Cloud Infrastructure:</strong></p><ul><li>Customer VNet/VPC set-up</li><li>Data stored in customer storage (s3, adls, gcs)</li><li>Securing the cloud storage (explained below in the respective section)</li><li>Cloud permission to create the necessary infrastructure for secure VPN gateway connectivity</li></ul><h3>Network Architecture</h3><p>The below diagram shows the VPN set up between Azure (as the data producer) and AWS (as the data consumer).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JZ_wmcOy2_hPYx72" /></figure><p>In addition to the Databricks infra mentioned in the prerequisites, setting up the additional set requires two main activities: Securing the Storage and Setting up the VPN connection.</p><h3>Private Storage Network</h3><p>Cloud storage often comes with rich security features to protect the data from unintended access. For each cloud there are different ways to implement restrictions to cloud storage on the network level and force network traffic to go through the cloud vendor backbone. Here we will introduce the ways to make cloud storage “private” in Azure, AWS and GCP.</p><h3>Azure Storage Account</h3><p>To ensure the storage account in Azure Databricks is private, we disable public access on the storage account and create dedicated private endpoints between the workspace VNet and the storage account (here is the doc <a href="https://learn.microsoft.com/en-us/azure/storage/common/storage-private-endpoints">Use private endpoints for Azure Storage</a>)</p><h3>AWS S3 Bucket</h3><ol><li>In the AWS case, we first need to ensure “Block public access” configuration of the S3 bucket is set. It will deny incoming unauthorized access to data but does not block any network traffic from the internet.</li><li>To restrict access based on source IP, we can configure the bucket policy with the Deny effect, with the condition to whitelist the following IP addresses:<br> — VPC CIDR of Databricks workspace on AWS (Ep. 10.10.0.0/16)<br> — Network CIDR of Azure Databricks workspace or Databricks workspace on GCP (Ep. 10.20.0.0/16)<br> — Public IP of control plane NAT in your region (check <a href="https://docs.databricks.com/en/resources/supported-regions.html#control-plane-and-storage-bucket-addresses">here</a> for your region)<br> — Public CIDR of Databricks standby infrastructure in your region (check <a href="https://docs.databricks.com/en/resources/supported-regions.html#control-plane-infrastructure-addresses">here</a> for your region)<br> — Further IPs which need to be whitelisted in your corporate (check here as a reference: <a href="https://docs.databricks.com/en/administration-guide/cloud-configurations/aws/customer-managed-vpc.html#optional-restrict-access-to-s3-buckets">link</a>)</li><li>To enforce network traffic accessing the S3 bucket through the AWS backbone, we will configure the S3 VPC endpoint for our VPC. Here are the steps:<br> — If your VPC only contains 2 subnets dedicated to Databricks, create a subnet to host the VPC endpoints.<br> — Create a Gateway type of VPC endpoint to be used by workloads within AWS VPC<br> — Since the Gateway type Endpoint is not reachable from other networks (no private IP address routable), we should create an Interface type of S3 VPC endpoint for cross-cloud access (check AWS doc for Interface type VPC endpoint creation <a href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html">here</a>). Enable “private DNS only for inbound endpoints” for the endpoint. Make sure the security group allows traffic from the network CIDR of Azure or GCP workspace.</li></ol><p>In this way, the traffic from AWS VPC will go through the Gateway type endpoint (which is not billed), while inbound traffic from Azure and GCP through VPN will go to the Interface type endpoint. (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html#updating-on-premises-dns-config">here</a> for more details).</p><h3>Google Cloud Storage</h3><ol><li>Setup Service Perimeter to restrict access to Google Cloud Storage:<br> — Create a Service Perimeter In our specific case we only secure Cloud Storage service, so select “Cloud Storage API” as “Restricted Service”<br> — Follow the steps <a href="https://cloud.google.com/access-context-manager/docs/create-basic-access-level#corporate-network-example">here</a> to create an Access Level to include the following public IPs that need to be whitelisted for accessing Cloud Storage APIs:<br> — Public IP of control plane NAT in your region (check <a href="https://docs.gcp.databricks.com/en/resources/supported-regions.html#ip-addresses-and-domains">here</a>)<br> — Further IPs which need to be whitelisted in your corporate (check here as a reference: <a href="https://docs.databricks.com/en/administration-guide/cloud-configurations/aws/customer-managed-vpc.html#optional-restrict-access-to-s3-buckets">link</a>)<br> — Follow the steps <a href="https://cloud.google.com/vpc-service-controls/docs/configuring-ingress-egress-policies">here</a> to configure the Ingress Policy of our Service Perimeter, which will allow the Access Level created above to access Cloud Storage API.</li><li>Create a Private Service Connect endpoint in the VPC to enable private access to Google APIs including storage (see Google doc <a href="https://cloud.google.com/vpc/docs/configure-private-service-connect-apis">here</a>). As we are targeting Cloud Storage service, we can select either “All Google APIs” or “VPC-SC” as “Target” when creating the endpoint.</li></ol><h3>Cross-Cloud Connection Setup</h3><p>The approach to building a site-to-site VPN across clouds varies between cloud providers. Here we only describe the steps at a high level. For cloud-specific instructions please check the conclusion where links will be given.</p><ol><li>Create VPN gateways: VPN gateways are virtual devices you need to create in the cloud as a prerequisite to building VPN tunnels. Create VPN gateways in both clouds with the following considerations:<br> — Align with your network architecture: Put the VPN gateway in its own subnet, which is different from the ones dedicated to Databricks workspaces. In AWS you can choose between Virtual Private Gateway and Transit Gateway. If you have the vision to set up a Hub-Spoke model, Transit Gateway is the option.<br> — Routing configuration: Depending on cloud vendors, you may configure static or BGP as the routing mechanism. If you enabled BGP, you need to specify a valid ASN value. ASN values of 2 VPN gateways cannot be the same.<br> — Enable active-active mode for high availability.</li><li>Create “customer gateways” to host VPN gateway information: You will need to create an abstract object (named customer gateway in AWS, local network gateway in Azure, peer gateway in GCP) in the cloud to host the information of the VPN gateway in another cloud. The information to gather is mainly public IP addresses assigned to VPN gateways. This acts as a representation of “foreign” gateway devices in the cloud.</li><li>Create VPN tunnels: Create multiple VPN tunnels between the VPN gateway and the “customer gateway”. You need to do this in both clouds.</li><li>Configure routing rules: We want to enforce cross-cloud traffic to storage through VPN channels. If the VPN tunnel is BGP enabled, the VPN gateway is able to dynamically learn the IP addresses of the connected network in another cloud. If the VPN tunnel relies on static routing, we need to explicitly provide CIDR or the connected network. <br>In addition, unlike in Azure and GCP, in AWS you need to specifically adjust the routing table associated with the cluster subnets, making the VPN gateway the destination for cross-cloud traffic.</li><li>Configure private DNS: Lastly, data consumer clusters need to resolve the FQDN of cloud storage to the IP address of the private interface in another cloud. So we need to configure private DNS and assign it to the VPC of data consumer clusters.</li></ol><h3>Cost Estimates</h3><p>A Delta Sharing solution described in this document will likely be more expensive than a standard Delta Sharing solution (when the Data Consumer fetches the Delta Sharing files directly from the Data Publisher’s bucket). This incremental cost will vary depending on the cloud providers used by the Data Publisher and Data Consumer, but the main cost components should be the same for any provider/consumer pairs. These are (this is not an exhaustive list and only includes incremental cost contributors, e.g. Compute and Storage costs should be the same/similar for any Delta Sharing type used) :</p><ol><li>Storage egress costs</li><li>VPN (or Azure Express Route/AWS Direct Connect/GCP Interconnect) costs</li><li>Private Link costs</li><li>DNS costs</li></ol><p>There could also be cost savings resulting in reduced incremental costs. For example, using S3 VPC Endpoint means there is no direct transfer out from S3 to the internet, likely resulting in savings that may cover data transfer costs over VPN.</p><h3>Example use case cost</h3><p>As an example, here is an estimated incremental cost for sharing a 1GB table stored in S3 for 1 month via a Private Delta Sharing solution described here over an Azure-2-AWS VPN connection * (as opposed to a standard Delta Sharing). The data Provider is on AWS (US East (Ohio)) and the Data Consumer is on Azure (North Europe) **.</p><p>Let’s say that this table is used in a dashboard refreshed once every hour.</p><ol><li>Total amount of data transferred: 30 * 24 * 1GB = 720GB</li><li>AWS VPN (without Accelerators):<br>- Connection: 30 * 24 * $0.05 = $36<br>- Data transfer out: 100GB * 0 + 620 * $0.09 = $55.80</li><li>AWS S3 Interface VPC Endpoint:<br>- VPC Endpoint: 30 * 24 * $0.01 = $7.20<br>- Data transfer: 720 * $0.01 = $7.20</li><li>Azure VPN Gateway (basic): 30 * 24 * $0.04 = $28.80</li><li>Azure DNS (no Private Resolver): $1</li></ol><p>__________________________________________________</p><p>Sub-Total: $136</p><p>S3 Transfer OUT savings: 100GB * 0 + 620 * $0.09 = +$55.80</p><p>__________________________________________________</p><p>Total: $80.20 (per month)</p><p>__________________________________________________</p><p>* Calculations are made for basic VPN features on both clouds. Enabling extra VPN features or additional services will result in higher connectivity costs (e.g. Accelerated Connection or Transit Gateway on AWS, non-basic Gateway Types or Availability Zones on Azure, etc).</p><p>** Prices used in this calculation were valid at the time the calculation was made. For the latest prices check the following links</p><h3>Conclusion</h3><p>In this article, we have shown how organizations can create private delta sharing using Databricks. The approach mentioned above helps organizations share data between clouds in a secure manner without incurring significant costs. You can find more details on the implementation details of the VPN between clouds <a href="https://github.com/HariGS-DB/private_delta_share">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc6239d134c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/databricks-platform-sme/private-cross-cloud-delta-sharing-using-databricks-bc6239d134c6">Private Cross-Cloud Delta Sharing using Databricks</a> was originally published in <a href="https://medium.com/databricks-platform-sme">Databricks Platform SME</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>