<?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 Jan Scharnetzky on Medium]]></title>
        <description><![CDATA[Stories by Jan Scharnetzky on Medium]]></description>
        <link>https://medium.com/@jan.scharnetzky_12127?source=rss-f3c8d131d5c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xX-V2_qzZyoApYf3</url>
            <title>Stories by Jan Scharnetzky on Medium</title>
            <link>https://medium.com/@jan.scharnetzky_12127?source=rss-f3c8d131d5c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:05:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jan.scharnetzky_12127/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[Mastering Automated Data Governance in Databricks]]></title>
            <link>https://medium.com/d-one/mastering-automated-data-governance-in-databricks-0025a44369c3?source=rss-f3c8d131d5c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0025a44369c3</guid>
            <category><![CDATA[automated-governance]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[Jan Scharnetzky]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 13:42:17 GMT</pubDate>
            <atom:updated>2024-10-11T13:42:17.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HHZ6oKzDUavoJLAT" /><figcaption>On the journey to decentralise your data products, federated administration is the key towards a successful data mesh.</figcaption></figure><h3>Abstract</h3><p>Managing large-scale data access control can be a complex task, especially as businesses increasingly demand self-service. In this blog post, we delve into our approach to computational governance and fully-automated Unity Catalog Management. We discuss the core principles that guide our approach, explain how to automate data governance with Terraform and Github Actions, and offer insights into managing Azure Databricks with Infrastructure-as-Code (IaaS). We also explore how to manage different components such as the complete Databricks Application with Unity Catalog and Entra ID groups with Terraform. We conclude by providing a glimpse into the future of our scalable and automated data governance solution. This post is for technical users and business decision makers interested in creating a streamlined and efficient data governance system to enable data value creation.</p><h3>Introduction</h3><p>Managing data access control for large corporations can be a daunting task, especially with the increasing demand for self-service among business end-users. However, with the progress towards becoming a Data Mesh organization, having a scalable and maintainable solution for data access control is crucial. In this blogpost, we present our approach based on three core principles:</p><ol><li>The data and its access is owned by the data owner for each business domain.</li><li>The platform is owned by a central team providing services to the business domains.</li><li>Maximize both: Federation for every business domain and Automation for the central platform team.</li></ol><h3>How to achieve automated Data Governance?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bsQtr8oiYWEtUNGT" /><figcaption>Overview of the responsibilities and services, details in the text.</figcaption></figure><p>The scetch displays the overall setup, having the responsibilities of the business on the left and of the central platform team on the right. It showcasts our use of Azure Databricks as a data analytics platform in conjunction with Azure Entra ID for managing access groups. An enterprise IAM system is in place to manage Access Roles which typically consists of multiple Entra ID groups. End Users can request Access Roles within the Enterprise IAM System. These roles, owned by the respective domain business owners, are then granted and the users are added into the groups in Entra ID. The same Entra ID groups are synced with Databricks through SCIM, and using configuration-as-code (Terraform), access rights for data objects (read/write) are granted to individual groups. A complete IAM role consists of multiple Entra ID groups that can serve as application, data access and workspace roles in Databricks.</p><p>An example describing the automated flow:</p><ol><li>For a newly created data product the data scientist of the business team requests an additional entitlement to access a new data product with read only access.</li><li>In the entitlement.yaml a new Entra ID group with read permissions for a schema in the gold catalog is added.</li><li>The entitlement.yaml is read by the Service of the platform team leading to following actions:</li><li>A Python Script performs various validation checks such as integrity of the YAML and the uniqueness of names on the platform</li><li>The Entra ID Manager adds one group to Entra ID</li><li>The Databricks App Manager adds the end user group the the workspace of the business Team</li><li>The Unity Catalog Manager adds one read-only permissions to the new data product</li><li>In the enterprise IAM System, the business data owner fills out the required information (e.g. criticality of the role, description) in the enterprise IAM and allows/denies end users requests to have the role.</li></ol><h3>Automation with Terraform and Github Actions</h3><p>The management steps involved in management of Data Governance described above can be fully automated using Terraform and Github Actions. The following sections describe the process and the resources involved.</p><h3>Azure Databricks with Infrastructure-as-Code</h3><p>First, we create the Azure Databricks infrastructure from scratch. This includes various objects such as the Azure Databricks workspace, the Unity Catalog metastore, and the associated Azure Storage account. Databricks has an extensive code base for various deployment scenarios that we based our deployment on: <a href="https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-unity-catalog-basic-demo.">https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-unity-catalog-basic-demo.</a></p><h3>Databricks App Manager</h3><p>We can manage the configuration of Databricks Workspaces with Terraform in an automated way with the Databricks App Manager. This includes — but is not limited to — the configuration of cluster policies, workspace user and service principal settings. We read the YAMLs created from the Single Source of Truth and pass them to each Manager. We can read the YAML file with the following code snippet, i.e. for the Databricks App Manager:</p><pre><br> yaml_data = yamldecode(file(&quot;${path.module}/yaml/app.yaml&quot;))</pre><p>Then, we can create a cluster policy and set permissions for specific groups of users as shown in the following code snippet. For readability purposes, we have omitted looping over the YAML data with `for each` and only show reading one cluster policy definition and permission setting. In the example we define the cluster policy for T-Shirt size S in a YAML file that we read with Terraform.</p><pre>resource &quot;databricks_cluster_policy&quot; &quot;S&quot; {<br>    name = &quot;Cluster S&quot;<br>    definition = jsonencode(...) # Here we need to provide the definition of the cluster policy in YAML format<br>}<br><br>resource &quot;databricks_permissions&quot; S {<br>    cluster_policy_id = databricks_cluster_policy.S.id<br>    access_control {<br>        principal = var.principal<br>        permission = var.permission<br>    }<br>}</pre><h3>Unity Catalog Manager</h3><p>We also use Terraform to automate the management of Unity Catalog. This includes the creation of catalogs, schema, tables, and views, as well as the management of access control. We provide various code snippets that illustrate how automated management of the Unity Catalog works. These were created using the Databricks Terraform Provider version 1.52.0 (https://registry.terraform.io/providers/databricks/databricks/latest/docs).</p><p>After reading the yaml with the previously shown `yamldecode()`, we can create a catalog with a schema and set permissions for specific groups of users as shown in the code snippet below.</p><pre>resource &quot;databricks_catalog&quot; &quot;managed_catalog&quot; {<br>  storage_root   = var.external_location_storage_url<br>  metastore_id   = var.metastore_id<br>  name           = var.catalog_name<br>  ...<br>  owner          = var.catalog_owner<br>}<br><br>resource &quot;databricks_schema&quot; &quot;managed_schema&quot; {<br>  catalog_name  = var.catalog_name<br>  name          = var.schema_name<br>  ...<br>  owner         = var.schema_owner<br>}<br><br>resource &quot;databricks_grants&quot; &quot;catalog_grants&quot; {<br>  catalog  = databricks_catalog.managed_catalog.name<br><br>  grant {<br>    principal  = var.principal<br>    privileges = var.privileges<br>  }<br>}<br><br>resource &quot;databricks_grants&quot; &quot;schema_grants&quot; {<br>  schema   = databricks_schema.managed_schema.name<br><br>  grant {<br>    principal  = var.principal<br>    privileges = var.privileges<br>  }<br>}</pre><p>For brevity, we did not include all of the attributes that can be set for these resources and omit looping over the YAML data with `for each`. The full list of attributes and explanation for the resource blocks can be found in the Terraform documentation: <a href="https://registry.terraform.io/providers/databricks/databricks/latest/docs.">https://registry.terraform.io/providers/databricks/databricks/latest/docs.</a></p><h3>Entra ID Manager</h3><p>We can also manage Entra ID groups with Terraform. As the leading system, we provide the single source of truth for the access control to allow for a federated governance setup. Membership of the groups is managed by the respective domain business owners in an IAM system as depicted in the diagram above. We can read the YAML file and create the groups with the following code snippet:</p><pre>locals {<br>  yaml_data = yamldecode(file(&quot;${path.module}/entitlements.yaml&quot;))<br>}<br><br>resource &quot;azuread_group&quot; &quot;group&quot; {<br>  for_each = { for e in local.yaml_data.entitlements : e.name =&gt; e }<br><br>  display_name     = each.value.name<br>  security_enabled = true<br>}</pre><p>All the Entra ID groups are synced to Databricks using the SCIM Sync. More information about Entra ID integration with Terraform can be found in the official documentation: <a href="https://developer.hashicorp.com/terraform/tutorials/it-saas/entra-id.">https://developer.hashicorp.com/terraform/tutorials/it-saas/entra-id.</a></p><h3>Deployment with Github Actions</h3><p>In many deployment scenarios, we want to automate the deployment of the infrastructure and the management of the Databricks App, Unity Catalog, and Entra ID settings. We can use Github Actions for a fully automated CI/CD pipeline. With Terraform, we have the option of manually intervening in the deployment process by requiring approval of the deployment plan within a Pull Request. This allows us to review the changes before they are deployed. While this does slow down the deployment process compared to no humans in the loop, it ensures that we have full control over the changes that are made to the infrastructure and the Unity Catalog.</p><p>Both centralized and decentralized solutions can be implemented with this setup. The diagram below illustrates a centralized approach where the central Platform Team manages and maintains the Terraform configuration files in a Git repository. This repository exposes services for the Databricks App Manager, Unity Catalog Manager, and Entra ID Manager for Business Users to consume in their repository. Depending on the level of familiarity with Terraform, the Plan output can be exposed as well to facilitate decision making on a pull request. With the setup that we have defined, we can fully adapt to the needs of the organization and the deployment process. The diagram below illustrates the fully automated deployment process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8m7mMbk6b0n-9fWV" /><figcaption>Deployment Process, details in the text</figcaption></figure><h3>Conclusion</h3><p>We hope that this brief overview has given you a glimpse of our scalable and automated data governance solution. However, this is just the tip of the iceberg: Scaling the solution to very large organizations solely requires an additional Github repo with their definition of Access Rights (entitlement.yaml). The central team will make sure that naming conventions and additional requirements are fulfilled (Python checker scripts). This truly allows federation of governance, as required in decentralized Data Mesh organizations.</p><p>Additional features in our solution include fine-grained access control for personally identifiable information (PII data) combined with column and row masking. Furthermore. temporary access rights for critical administrative roles have been introduced.</p><p>If you’re interested in learning on how to build scalable governance setups, reach out to us, Heiko (heiko.kromer@d-one.ai) and Jan (jan.scharnetzky@d-one.ai). We would be more than happy to work with you towards achieving a fully automated and federated governance setup that meets your specific needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0025a44369c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/d-one/mastering-automated-data-governance-in-databricks-0025a44369c3">Mastering Automated Data Governance in Databricks</a> was originally published in <a href="https://medium.com/d-one">D-ONE.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unchain your (Data-)Heart]]></title>
            <link>https://medium.com/d-one/d-one-pax-our-journey-from-sap-bw-to-databricks-eca3133a517b?source=rss-f3c8d131d5c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/eca3133a517b</guid>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-lakehouse]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[Jan Scharnetzky]]></dc:creator>
            <pubDate>Thu, 11 Jul 2024 14:52:23 GMT</pubDate>
            <atom:updated>2024-07-31T06:29:52.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OCXMvKJsavZC8MY_" /></figure><h3>D ONE &amp; Pax: Our Journey from SAP BW to Databricks</h3><p>Recently, Clemens Nickel, PO of Data &amp; Analytics at Pax, Timo Welti, and I had the opportunity to present Pax’s migration from SAP Business Warehouse (BW) to Databricks at the Data + AI Summit in San Francisco. Our presentation was met with great interest due to the widespread use of legacy SAP BW systems and the end-of-life for the BW on Hana in 2028. Our talk was so popular that it was completely booked out.</p><p>In retrospect, it is evident that Pax’s decision to build the PaxDataHub on Databricks was driven by a strategic business decision to advance their goal of becoming a data-driven company with the technological aspects being only one part of the decision. This post will address both the technical feasibility of the migration in the first part and the business decision-making process that led to this move, utilizing the D ONE’s foundation for data-driven value creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*LTYt_deq3e5m73ae" /><figcaption>Image 1: The principle architecture of the PaxDataHub</figcaption></figure><p><strong>Lakehouse approach</strong><br>The objective of establishing a unified data analytics system as a single source of truth is widely acknowledged; however, consolidating data from multiple operating systems into one analytics system poses significant challenges. Our lakehouse approach revolves around Databricks for transformation and relies on Azure Data Factory for ingestion. Reports are generated using Power BI, as depicted in Graphic 1. The transformation section of our lakehouse is divided into a factory (corresponding to one Databricks workspace) for production workflows with no end-user access, while an additional workspace serves as a laboratory for self-service purposes. The laboratory has read-only access to all data products of the factory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/0*a5ZScW5lAg-F88F-" /><figcaption>Image 2: Zoom-In on the data ingestion of SAP ERP Sources.</figcaption></figure><p>The Azure Data Factory regulates ingestion, with native, Azure-supported connectors to all our relevant data sources, here categorized into SAP and non-SAP data sources. The SAP CDC connector enables direct access to the ODP framework of the SAP ERP system. Setting up the virtual machine with a self-hosted integration runtime is well-documented, and the change-data-capture feature enables incremental data loading into the Azure storage account, as indicated in Image 2.</p><p><strong>Concentrate on creating business value</strong></p><p>With the ingestion and transformation parts established, our architecture is ready for its first use case, and we can concentrate on creating business value. But as previously highlighted in the introduction, it is evident that this transformation was not only a technical one, but also a significant business transformation. We addressed the setup by making use of D ONE’s foundation for data-driven value creation (image 3): Together we set up a culture of work, namely co-creation, conducted interviews within the organization, deep-dived into the data modeling and visualization and of course also tackled the technological challenges. All leading to Pax’ decision to migrate to Databricks to advance the company’s goal of becoming a data-driven company.</p><p><strong>Success through collaboration</strong><br>The success of the project does not solely depend on the technicalities of our architecture, but on the collaboration between skilled SAP BW experts with years of experience in the life insurance business and experienced Databricks &amp; Cloud Engineers. Together, we decided to tackle the most complex use case implemented in the BW to demonstrate the value of the PaxDataHub. Although it was not an easy start, we were able to deliver within the set timeline and budget while also enjoying a productive work environment.</p><p>Furthermore, we gained many technical insights from the initial use case. For instance, we could calculate the total costs of Databricks as we knew how much time a computationally expensive job took in both SAP BW and Databricks. The total cost of ownership for the new PaxDataHub was calculated to be around 1/3 of the previous setup with a 80% decrease of runtime for the job tested.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/0*LMK2eNEC4whFfzKl" /><figcaption>Image 3: D ONE’s foundation for data driven value creation.</figcaption></figure><p><strong>Proof of value drives the project</strong></p><p>The completion of the proof of value instilled confidence in the entire company that the PaxDataHub could serve as the company-wide analytics platform. Furthermore, we conducted interviews across all business units to understand their requirements for a modern analytics platform, addressing Pax’s needs. The outcome was summarized into four key features: a unified datalake with a business-ready data model, a company-wide self-service platform, and with that a common understanding of the data across the entire company. Analyzing the requirements revealed that the proposed setup fulfilled most of the demands. Although there were platform-independent needs, addressing them required considerable effort, particularly in data modeling and establishing a shared business comprehension of the data. Currently, we are actively working to overcome these challenges, and despite the complexity of the situation, we are progressing well and are enjoying the benefits.</p><p><strong>Call for action</strong></p><p>If you are considering migrating from SAP BW to Databricks, know now that you are not alone. Many companies are facing similar situations and are taking large steps towards the transition to modern analytics platforms. If I can support on that journey please reach out to me</p><p>Jan Scharnetzky</p><p>jan.scharnetzky@d-one.ai</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eca3133a517b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/d-one/d-one-pax-our-journey-from-sap-bw-to-databricks-eca3133a517b">Unchain your (Data-)Heart</a> was originally published in <a href="https://medium.com/d-one">D-ONE.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>