[{"data":1,"prerenderedAt":1605},["ShallowReactive",2],{"navigation":3,"\u002Fblog\u002Fdatabrics-governance":62,"\u002Fblog\u002Fdatabrics-governance-surround":1600},[4],{"title":5,"path":6,"stem":7,"children":8,"page":61},"Blog","\u002Fblog","blog",[9,13,17,21,25,29,33,37,41,45,49,53,57],{"title":10,"path":11,"stem":12},"Data Catalog 3.0: Rise of the Active Metadata Platform","\u002Fblog\u002Fdata-catalog-3","blog\u002Fdata-catalog-3",{"title":14,"path":15,"stem":16},"Data Quality on Databricks: A Framework for Lakeflow Jobs","\u002Fblog\u002Fdata_quality","blog\u002Fdata_quality",{"title":18,"path":19,"stem":20},"Data Governance on Databricks: A Unity Catalog Runbook","\u002Fblog\u002Fdatabrics-governance","blog\u002Fdatabrics-governance",{"title":22,"path":23,"stem":24},"Data Platform Solution Architect: Roles, Responsibilities and Design Steps","\u002Fblog\u002Fdataplatform_architect","blog\u002Fdataplatform_architect",{"title":26,"path":27,"stem":28},"dbt on Databricks: Data Transformation Pipelines","\u002Fblog\u002Fdbt-on-databricks","blog\u002Fdbt-on-databricks",{"title":30,"path":31,"stem":32},"Deploying Azure Resources with VS Code","\u002Fblog\u002Fdeploying-azure-resource-with-vs-code","blog\u002Fdeploying-azure-resource-with-vs-code",{"title":34,"path":35,"stem":36},"Dynamic Management Views (DMVs)","\u002Fblog\u002Fdynamic-management-views","blog\u002Fdynamic-management-views",{"title":38,"path":39,"stem":40},"General Delta Table Processing","\u002Fblog\u002Fgeneral-delta-table","blog\u002Fgeneral-delta-table",{"title":42,"path":43,"stem":44},"Microsoft Fabric as an All-in-One Analytics Solution","\u002Fblog\u002Fmicrosoft-fabric","blog\u002Fmicrosoft-fabric",{"title":46,"path":47,"stem":48},"Orchard Core Shapes: Demystifying the View Data Model","\u002Fblog\u002Forchard-core-shapes","blog\u002Forchard-core-shapes",{"title":50,"path":51,"stem":52},"Power BI DAX Masterclass","\u002Fblog\u002Fpower-bi-dax-masterclass","blog\u002Fpower-bi-dax-masterclass",{"title":54,"path":55,"stem":56},"Power BI Incremental Refresh","\u002Fblog\u002Fpower-bi-incremental-refresh","blog\u002Fpower-bi-incremental-refresh",{"title":58,"path":59,"stem":60},"Set Power BI Row-Level Security to SAP Cost Center","\u002Fblog\u002Fpower-bi-row-level-security","blog\u002Fpower-bi-row-level-security",false,{"id":63,"title":18,"author":64,"body":68,"date":1593,"description":1594,"extension":1595,"image":1596,"meta":1597,"minRead":950,"navigation":309,"path":19,"seo":1598,"stem":20,"__hash__":1599},"blog\u002Fblog\u002Fdatabrics-governance.md",{"name":65,"avatar":66},"Radek Řezáč",{"src":67,"alt":65},"\u002Faboutme.png",{"type":69,"value":70,"toc":1578},"minimark",[71,75,80,145,149,160,257,275,329,332,336,347,492,503,507,514,605,608,631,635,640,707,747,750,993,996,1000,1003,1037,1040,1060,1064,1071,1110,1114,1125,1250,1253,1287,1312,1319,1323,1333,1390,1396,1400,1403,1445,1458,1462,1524,1528,1564,1567,1571,1574],[72,73,74],"p",{},"Governance on a lakehouse fails in two typical ways: rights are scattered across BI tools, notebooks and ad-hoc grants, or the model is so manual that every new user or table needs an engineer. This article describes a model that avoids both. Every access right and every protection is defined once, in Unity Catalog, deployed as code, and switched on by tags. It is based on a runbook written for a finance data platform migrating from SQL Server and SSAS to Databricks; the names here are generic.",[76,77,79],"h2",{"id":78},"ten-rules","Ten Rules",[81,82,83,91,97,103,109,115,121,127,133,139],"ol",{},[84,85,86,90],"li",{},[87,88,89],"strong",{},"One rule book."," Every access right and protection is defined once, in Unity Catalog — never in the BI tool, a notebook or an application.",[84,92,93,96],{},[87,94,95],{},"Business sees Gold only."," Bronze and Silver are engineering layers. Business users read certified views of their Gold domain schema.",[84,98,99,102],{},[87,100,101],{},"The schema is the unit."," Each schema has one owner, one writing service principal and one rule for who may read it.",[84,104,105,108],{},[87,106,107],{},"Tags carry the meaning."," Layer, source, domain, classification, personal data and row scope are governed tags.",[84,110,111,114],{},[87,112,113],{},"Tags switch protection on."," A column tagged as personal is masked; a table tagged for row scope is filtered — by one policy per rule.",[84,116,117,120],{},[87,118,119],{},"People come from Entra ID."," No local accounts; SSO with MFA.",[84,122,123,126],{},[87,124,125],{},"Roles, not people, get rights."," Users join a functional role; rights go only to access roles; persona roles join the two.",[84,128,129,132],{},[87,130,131],{},"Business owners decide."," Each Gold domain has a business owner who approves who joins its roles and which rows they see.",[84,134,135,138],{},[87,136,137],{},"Service principals write, people read."," In production only service principals write data.",[84,140,141,144],{},[87,142,143],{},"Everything as code."," Grants, tags, policies and memberships come from Git; anything else is drift.",[76,146,148],{"id":147},"the-namespace","The Namespace",[72,150,151,152,155,156,159],{},"One catalog per environment (dev, test, prod), each bound to its own workspace. Inside, Bronze and Silver are named after the ",[87,153,154],{},"source system",", Gold after the ",[87,157,158],{},"business domain",":",[161,162,163,182],"table",{},[164,165,166],"thead",{},[167,168,169,173,176,179],"tr",{},[170,171,172],"th",{},"Layer",[170,174,175],{},"Schema",[170,177,178],{},"Holds",[170,180,181],{},"Who can see it",[183,184,185,203,218,234],"tbody",{},[167,186,187,191,197,200],{},[188,189,190],"td",{},"Bronze",[188,192,193],{},[194,195,196],"code",{},"erp_bronze",[188,198,199],{},"raw copy of the source",[188,201,202],{},"engineers only",[167,204,205,208,213,216],{},[188,206,207],{},"Silver",[188,209,210],{},[194,211,212],{},"erp_silver",[188,214,215],{},"cleansed, conformed data",[188,217,202],{},[167,219,220,223,228,231],{},[188,221,222],{},"Gold",[188,224,225],{},[194,226,227],{},"finance_gold",[188,229,230],{},"dimensions, facts, metric views, certified serving views",[188,232,233],{},"business users, through certified views",[167,235,236,239,251,254],{},[188,237,238],{},"Shared",[188,240,241,244,245,244,248],{},[194,242,243],{},"shared",", ",[194,246,247],{},"control",[194,249,250],{},"dq",[188,252,253],{},"common functions, run control and entitlements, data-quality results",[188,255,256],{},"engineers and operators",[72,258,259,260,263,264,267,268,270,271,274],{},"When a second source arrives, it adds ",[194,261,262],{},"crm_bronze"," and ",[194,265,266],{},"crm_silver"," and feeds the same ",[194,269,227],{},". Schemas are created and owned by the ",[87,272,273],{},"CI service principal",", so a running job can never re-grant, drop or untag an object.",[276,277,282],"pre",{"className":278,"code":279,"language":280,"meta":281,"style":281},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","CREATE SCHEMA IF NOT EXISTS erp_bronze   COMMENT 'Source raw landing, append-only';\nCREATE SCHEMA IF NOT EXISTS erp_silver   COMMENT 'Source cleansed and conformed';\nCREATE SCHEMA IF NOT EXISTS finance_gold COMMENT 'Dimensions, facts, certified serving views';\n\nALTER SCHEMA erp_bronze   SET TAGS ('layer' = 'bronze', 'source' = 'erp');\nALTER SCHEMA erp_silver   SET TAGS ('layer' = 'silver', 'source' = 'erp');\nALTER SCHEMA finance_gold SET TAGS ('layer' = 'gold', 'business_domain' = 'finance');\n","sql","",[194,283,284,292,298,304,311,317,323],{"__ignoreMap":281},[285,286,289],"span",{"class":287,"line":288},"line",1,[285,290,291],{},"CREATE SCHEMA IF NOT EXISTS erp_bronze   COMMENT 'Source raw landing, append-only';\n",[285,293,295],{"class":287,"line":294},2,[285,296,297],{},"CREATE SCHEMA IF NOT EXISTS erp_silver   COMMENT 'Source cleansed and conformed';\n",[285,299,301],{"class":287,"line":300},3,[285,302,303],{},"CREATE SCHEMA IF NOT EXISTS finance_gold COMMENT 'Dimensions, facts, certified serving views';\n",[285,305,307],{"class":287,"line":306},4,[285,308,310],{"emptyLinePlaceholder":309},true,"\n",[285,312,314],{"class":287,"line":313},5,[285,315,316],{},"ALTER SCHEMA erp_bronze   SET TAGS ('layer' = 'bronze', 'source' = 'erp');\n",[285,318,320],{"class":287,"line":319},6,[285,321,322],{},"ALTER SCHEMA erp_silver   SET TAGS ('layer' = 'silver', 'source' = 'erp');\n",[285,324,326],{"class":287,"line":325},7,[285,327,328],{},"ALTER SCHEMA finance_gold SET TAGS ('layer' = 'gold', 'business_domain' = 'finance');\n",[72,330,331],{},"Because the meaning sits in tags, grant generation, policy scope and audit queries never have to parse a schema name.",[76,333,335],{"id":334},"governed-tags","Governed Tags",[72,337,338,339,342,343,346],{},"All tag keys are ",[87,340,341],{},"governed tags",": account-level tag policies with closed value lists. Only the CI service principal and the data governance steward hold ",[194,344,345],{},"ASSIGN",", so a free-text value or an unauthorised assignment is rejected by the platform rather than found later in a review.",[161,348,349,365],{},[164,350,351],{},[167,352,353,356,359,362],{},[170,354,355],{},"Family",[170,357,358],{},"Key",[170,360,361],{},"Values",[170,363,364],{},"Drives",[183,366,367,399,426,453,471],{},[167,368,369,372,383,396],{},[188,370,371],{},"Namespace",[188,373,374,244,377,244,380],{},[194,375,376],{},"layer",[194,378,379],{},"source",[194,381,382],{},"business_domain",[188,384,385,388,389,388,392,395],{},[194,386,387],{},"bronze"," \u002F ",[194,390,391],{},"silver",[194,393,394],{},"gold"," …, one per source and domain",[188,397,398],{},"grants and policy scope",[167,400,401,404,409,423],{},[188,402,403],{},"Classification",[188,405,406],{},[194,407,408],{},"classification",[188,410,411,244,414,244,417,244,420],{},[194,412,413],{},"public",[194,415,416],{},"internal",[194,418,419],{},"confidential",[194,421,422],{},"restricted",[188,424,425],{},"certification and audit",[167,427,428,430,435,446],{},[188,429,403],{},[188,431,432],{},[194,433,434],{},"personal_data",[188,436,437,244,440,244,443],{},[194,438,439],{},"none",[194,441,442],{},"personal",[194,444,445],{},"sensitive_personal",[188,447,448,449,452],{},"certification ",[87,450,451],{},"and"," masking",[167,454,455,458,463,468],{},[188,456,457],{},"Policy",[188,459,460],{},[194,461,462],{},"rls",[188,464,465],{},[194,466,467],{},"entitlement",[188,469,470],{},"which tables are row-filtered",[167,472,473,475,480,489],{},[188,474,457],{},[188,476,477],{},[194,478,479],{},"entitlement_axis",[188,481,482,244,485,488],{},[194,483,484],{},"legal_entity",[194,486,487],{},"organisational_unit",", …",[188,490,491],{},"which column the row filter evaluates",[72,493,494,497,498,502],{},[87,495,496],{},"One tag, one meaning."," Classifying a column as personal ",[499,500,501],"em",{},"is"," what masks it — there is no second \"mask me\" tag to forget. Tags are part of the DDL change that creates the column, so no window exists in which a personal column is live but unmasked.",[76,504,506],{"id":505},"identities-three-ways-to-bring-entra-id-users-in","Identities: Three Ways to Bring Entra ID Users In",[72,508,509,510,513],{},"What has to be decided is where the ",[87,511,512],{},"functional role"," lives and who changes a membership:",[161,515,516,531],{},[164,517,518],{},[167,519,520,522,525,528],{},[170,521],{},[170,523,524],{},"Automatic identity management",[170,526,527],{},"Entra ID SCIM",[170,529,530],{},"Databricks-managed groups",[183,532,533,549,563,577,591],{},[167,534,535,538,543,546],{},[188,536,537],{},"Verdict",[188,539,540],{},[87,541,542],{},"Recommended",[188,544,545],{},"Fallback",[188,547,548],{},"Dev or a dated interim only",[167,550,551,554,557,560],{},[188,552,553],{},"Functional role lives in",[188,555,556],{},"Entra ID",[188,558,559],{},"Entra ID, copied",[188,561,562],{},"Databricks",[167,564,565,568,571,574],{},[188,566,567],{},"Nested Entra groups",[188,569,570],{},"yes",[188,572,573],{},"no",[188,575,576],{},"n\u002Fa",[167,578,579,582,585,588],{},[188,580,581],{},"Change takes effect",[188,583,584],{},"next sign-in",[188,586,587],{},"next provisioning cycle (~40 min)",[188,589,590],{},"when someone acts",[167,592,593,596,599,602],{},[188,594,595],{},"Leaver",[188,597,598],{},"loses access automatically",[188,600,601],{},"deactivated at next cycle",[188,603,604],{},"stays until removed",[72,606,607],{},"Rules that hold for every option:",[609,610,611,618,625,628],"ul",{},[84,612,613,614,617],{},"Users, groups and service principals exist at the ",[87,615,616],{},"account"," level only — no workspace-local groups.",[84,619,620,621,624],{},"Workspace entitlements are assigned per ",[87,622,623],{},"persona group",", never per user; cluster creation is never granted.",[84,626,627],{},"People use SQL warehouses, serverless or standard-access-mode compute only — all of them enforce row filters and masks.",[84,629,630],{},"Personal access tokens are prohibited: engineers use OAuth U2M, pipelines use service principals with OAuth M2M.",[76,632,634],{"id":633},"the-three-tier-role-model","The Three-Tier Role Model",[72,636,637],{},[87,638,639],{},"Users are members only of functional roles; privileges are granted only to access roles; persona roles join the two.",[161,641,642,658],{},[164,643,644],{},[167,645,646,649,652,655],{},[170,647,648],{},"Tier",[170,650,651],{},"Example",[170,653,654],{},"Owner",[170,656,657],{},"Purpose",[183,659,660,676,692],{},[167,661,662,665,670,673],{},[188,663,664],{},"Functional role",[188,666,667],{},[194,668,669],{},"dp-fr-finance-controller-north",[188,671,672],{},"business owner \u002F IAM",[188,674,675],{},"who the person is in the organisation",[167,677,678,681,686,689],{},[188,679,680],{},"Persona role",[188,682,683],{},[194,684,685],{},"dp-prod-pr-finance-consumer",[188,687,688],{},"data platform",[188,690,691],{},"one job profile",[167,693,694,697,702,704],{},[188,695,696],{},"Access role",[188,698,699],{},[194,700,701],{},"dp-prod-ar-finance-gold-serve",[188,703,688],{},[188,705,706],{},"one schema × one privilege level",[72,708,709,710,713,714,717,718,721,722,725,726,729,730,713,733,735,736,739,740,263,743,746],{},"An organisation change is one membership change; a new schema is one access role added to the personas that need it. Grants stay few and stable. Access-role levels are ",[194,711,712],{},"read"," (",[194,715,716],{},"USE SCHEMA"," + ",[194,719,720],{},"SELECT","), ",[194,723,724],{},"write"," (+ ",[194,727,728],{},"MODIFY",", dev and test only), ",[194,731,732],{},"serve",[194,734,720],{}," on certified objects only) and ",[194,737,738],{},"execute",", plus two exemption roles: ",[194,741,742],{},"pii-unmasked",[194,744,745],{},"unrestricted",".",[72,748,749],{},"The mapping lives in a reviewed file, so adding a team is a pull request, not a console change:",[276,751,755],{"className":752,"code":753,"language":754,"meta":281,"style":281},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# governance\u002Fpersonas.yml - functional -> persona -> access mapping\naccess_roles:\n  erp-silver-read:      {envs: [dev, test, prod]}\n  finance-gold-write:   {envs: [dev, test]}\n  finance-gold-serve:   {envs: [dev, test, prod]}\n  shared-execute:       {envs: [dev, test, prod]}\n\npersonas:\n  finance-consumer:\n    access: [finance-gold-serve, shared-execute]\n    functional: [dp-fr-finance-controller-north, dp-fr-finance-controller-south]\n  finance-engineer:\n    access: [erp-silver-read, finance-gold-write, shared-execute]\n    functional: [dp-fr-analytics-engineer]\n","yaml",[194,756,757,763,773,809,833,860,888,892,900,908,929,948,956,979],{"__ignoreMap":281},[285,758,759],{"class":287,"line":288},[285,760,762],{"class":761},"sHwdD","# governance\u002Fpersonas.yml - functional -> persona -> access mapping\n",[285,764,765,769],{"class":287,"line":294},[285,766,768],{"class":767},"swJcz","access_roles",[285,770,772],{"class":771},"sMK4o",":\n",[285,774,775,778,780,783,786,788,791,795,798,801,803,806],{"class":287,"line":300},[285,776,777],{"class":767},"  erp-silver-read",[285,779,159],{"class":771},[285,781,782],{"class":771},"      {",[285,784,785],{"class":767},"envs",[285,787,159],{"class":771},[285,789,790],{"class":771}," [",[285,792,794],{"class":793},"sfazB","dev",[285,796,797],{"class":771},",",[285,799,800],{"class":793}," test",[285,802,797],{"class":771},[285,804,805],{"class":793}," prod",[285,807,808],{"class":771},"]}\n",[285,810,811,814,816,819,821,823,825,827,829,831],{"class":287,"line":306},[285,812,813],{"class":767},"  finance-gold-write",[285,815,159],{"class":771},[285,817,818],{"class":771},"   {",[285,820,785],{"class":767},[285,822,159],{"class":771},[285,824,790],{"class":771},[285,826,794],{"class":793},[285,828,797],{"class":771},[285,830,800],{"class":793},[285,832,808],{"class":771},[285,834,835,838,840,842,844,846,848,850,852,854,856,858],{"class":287,"line":313},[285,836,837],{"class":767},"  finance-gold-serve",[285,839,159],{"class":771},[285,841,818],{"class":771},[285,843,785],{"class":767},[285,845,159],{"class":771},[285,847,790],{"class":771},[285,849,794],{"class":793},[285,851,797],{"class":771},[285,853,800],{"class":793},[285,855,797],{"class":771},[285,857,805],{"class":793},[285,859,808],{"class":771},[285,861,862,865,867,870,872,874,876,878,880,882,884,886],{"class":287,"line":319},[285,863,864],{"class":767},"  shared-execute",[285,866,159],{"class":771},[285,868,869],{"class":771},"       {",[285,871,785],{"class":767},[285,873,159],{"class":771},[285,875,790],{"class":771},[285,877,794],{"class":793},[285,879,797],{"class":771},[285,881,800],{"class":793},[285,883,797],{"class":771},[285,885,805],{"class":793},[285,887,808],{"class":771},[285,889,890],{"class":287,"line":325},[285,891,310],{"emptyLinePlaceholder":309},[285,893,895,898],{"class":287,"line":894},8,[285,896,897],{"class":767},"personas",[285,899,772],{"class":771},[285,901,903,906],{"class":287,"line":902},9,[285,904,905],{"class":767},"  finance-consumer",[285,907,772],{"class":771},[285,909,911,914,916,918,921,923,926],{"class":287,"line":910},10,[285,912,913],{"class":767},"    access",[285,915,159],{"class":771},[285,917,790],{"class":771},[285,919,920],{"class":793},"finance-gold-serve",[285,922,797],{"class":771},[285,924,925],{"class":793}," shared-execute",[285,927,928],{"class":771},"]\n",[285,930,932,935,937,939,941,943,946],{"class":287,"line":931},11,[285,933,934],{"class":767},"    functional",[285,936,159],{"class":771},[285,938,790],{"class":771},[285,940,669],{"class":793},[285,942,797],{"class":771},[285,944,945],{"class":793}," dp-fr-finance-controller-south",[285,947,928],{"class":771},[285,949,951,954],{"class":287,"line":950},12,[285,952,953],{"class":767},"  finance-engineer",[285,955,772],{"class":771},[285,957,959,961,963,965,968,970,973,975,977],{"class":287,"line":958},13,[285,960,913],{"class":767},[285,962,159],{"class":771},[285,964,790],{"class":771},[285,966,967],{"class":793},"erp-silver-read",[285,969,797],{"class":771},[285,971,972],{"class":793}," finance-gold-write",[285,974,797],{"class":771},[285,976,925],{"class":793},[285,978,928],{"class":771},[285,980,982,984,986,988,991],{"class":287,"line":981},14,[285,983,934],{"class":767},[285,985,159],{"class":771},[285,987,790],{"class":771},[285,989,990],{"class":793},"dp-fr-analytics-engineer",[285,992,928],{"class":771},[72,994,995],{},"A small script built on the Databricks SDK creates the persona and access groups, nests access ← persona ← functional, and assigns personas to the workspace. It runs in the CI\u002FCD pipeline and is re-runnable.",[76,997,999],{"id":998},"grants-generated-from-tags","Grants Generated From Tags",[72,1001,1002],{},"Grants go to access roles and workload service principals only, generated from the schema tags — a new source schema gets its grants by being tagged, not by new grant code.",[276,1004,1006],{"className":278,"code":1005,"language":280,"meta":281,"style":281},"GRANT USE CATALOG ON CATALOG `${catalog}` TO `dp-${env}-ar-finance-gold-serve`;\nGRANT USE SCHEMA ON SCHEMA finance_gold   TO `dp-${env}-ar-finance-gold-serve`;\nGRANT SELECT ON TABLE finance_gold.vw_profit_and_loss TO `dp-${env}-ar-finance-gold-serve`;\n\nGRANT USE SCHEMA, SELECT         ON SCHEMA erp_silver   TO `${sp_finance_gold}`;\nGRANT USE SCHEMA, SELECT, MODIFY ON SCHEMA finance_gold TO `${sp_finance_gold}`;\n",[194,1007,1008,1013,1018,1023,1027,1032],{"__ignoreMap":281},[285,1009,1010],{"class":287,"line":288},[285,1011,1012],{},"GRANT USE CATALOG ON CATALOG `${catalog}` TO `dp-${env}-ar-finance-gold-serve`;\n",[285,1014,1015],{"class":287,"line":294},[285,1016,1017],{},"GRANT USE SCHEMA ON SCHEMA finance_gold   TO `dp-${env}-ar-finance-gold-serve`;\n",[285,1019,1020],{"class":287,"line":300},[285,1021,1022],{},"GRANT SELECT ON TABLE finance_gold.vw_profit_and_loss TO `dp-${env}-ar-finance-gold-serve`;\n",[285,1024,1025],{"class":287,"line":306},[285,1026,310],{"emptyLinePlaceholder":309},[285,1028,1029],{"class":287,"line":313},[285,1030,1031],{},"GRANT USE SCHEMA, SELECT         ON SCHEMA erp_silver   TO `${sp_finance_gold}`;\n",[285,1033,1034],{"class":287,"line":319},[285,1035,1036],{},"GRANT USE SCHEMA, SELECT, MODIFY ON SCHEMA finance_gold TO `${sp_finance_gold}`;\n",[72,1038,1039],{},"Binding consequences:",[609,1041,1042,1048,1051],{},[84,1043,1044,1045,1047],{},"No human group holds ",[194,1046,728],{}," in production.",[84,1049,1050],{},"Consumers hold no grant on any Bronze or Silver schema. A request for one means a serving view is missing.",[84,1052,1053,1054,1056,1057,1059],{},"A consumer never receives schema-wide ",[194,1055,720],{}," on Gold — only ",[194,1058,720],{}," on named, certified objects.",[76,1061,1063],{"id":1062},"service-principals","Service Principals",[72,1065,1066,1067,1070],{},"One workload service principal per ",[87,1068,1069],{},"source × layer function"," — ingest, transform, Gold build — so the blast radius of a defect equals the schema boundary. A shared per-layer principal would let a bug in one source's ingest write another source's Bronze.",[609,1072,1073,1084,1094,1100],{},[84,1074,1075,1078,1079,388,1081,1083],{},[87,1076,1077],{},"DDL by CI, DML by workload SP."," Workload principals hold ",[194,1080,728],{},[194,1082,720],{}," but are never owners.",[84,1085,1086,1089,1090,1093],{},[87,1087,1088],{},"Every job runs as its service principal"," via ",[194,1091,1092],{},"run_as"," in the bundle; a personal identity never runs a production job.",[84,1095,1096,1099],{},[87,1097,1098],{},"Secrets are scoped"," to the one principal that needs them (for example, only the ingest SP can read the source database credentials).",[84,1101,1102,1105,1106,1109],{},[87,1103,1104],{},"Workload SPs are exempt from row filters and masks",", because builds must read complete data — listed by name in every policy's ",[194,1107,1108],{},"EXCEPT"," clause, never implied by ownership.",[76,1111,1113],{"id":1112},"row-level-security-from-tags","Row-Level Security From Tags",[72,1115,1116,1117,1120,1121,1124],{},"One ABAC row-filter policy per entitlement axis, defined once on the Gold schema. Row scope is ",[87,1118,1119],{},"data, not code",": an entitlement table holds one row per functional role and key, loaded with a ",[194,1122,1123],{},"MERGE"," from a reviewed CSV whose required approver is the business owner.",[276,1126,1128],{"className":278,"code":1127,"language":280,"meta":281,"style":281},"CREATE OR REPLACE FUNCTION shared.fn_rls_legal_entity(legal_entity_key STRING)\nRETURNS BOOLEAN\nRETURN EXISTS (\n  SELECT 1 FROM control.entitlements_legal_entity e\n  WHERE is_account_group_member(e.functional_role)\n    AND e.effect = 'allow' AND (e.key_value = legal_entity_key OR e.key_value = '*')\n    AND current_date() BETWEEN e.valid_from AND coalesce(e.valid_to, DATE'9999-12-31')\n) AND NOT EXISTS (\n  SELECT 1 FROM control.entitlements_legal_entity e\n  WHERE is_account_group_member(e.functional_role)\n    AND e.effect = 'deny' AND e.key_value = legal_entity_key\n    AND current_date() BETWEEN e.valid_from AND coalesce(e.valid_to, DATE'9999-12-31')\n);\n\nCREATE OR REPLACE POLICY rls_legal_entity\nON SCHEMA finance_gold\nROW FILTER shared.fn_rls_legal_entity\nTO `account users`\nEXCEPT `dp-${env}-ar-finance-unrestricted`, `${sp_finance_gold}`\nFOR TABLES\nWHEN has_tag_value('rls', 'entitlement')\nMATCH COLUMNS has_tag_value('entitlement_axis', 'legal_entity') AS k\nUSING COLUMNS (k);\n",[194,1129,1130,1135,1140,1145,1150,1155,1160,1165,1170,1174,1178,1183,1187,1192,1196,1202,1208,1214,1220,1226,1232,1238,1244],{"__ignoreMap":281},[285,1131,1132],{"class":287,"line":288},[285,1133,1134],{},"CREATE OR REPLACE FUNCTION shared.fn_rls_legal_entity(legal_entity_key STRING)\n",[285,1136,1137],{"class":287,"line":294},[285,1138,1139],{},"RETURNS BOOLEAN\n",[285,1141,1142],{"class":287,"line":300},[285,1143,1144],{},"RETURN EXISTS (\n",[285,1146,1147],{"class":287,"line":306},[285,1148,1149],{},"  SELECT 1 FROM control.entitlements_legal_entity e\n",[285,1151,1152],{"class":287,"line":313},[285,1153,1154],{},"  WHERE is_account_group_member(e.functional_role)\n",[285,1156,1157],{"class":287,"line":319},[285,1158,1159],{},"    AND e.effect = 'allow' AND (e.key_value = legal_entity_key OR e.key_value = '*')\n",[285,1161,1162],{"class":287,"line":325},[285,1163,1164],{},"    AND current_date() BETWEEN e.valid_from AND coalesce(e.valid_to, DATE'9999-12-31')\n",[285,1166,1167],{"class":287,"line":894},[285,1168,1169],{},") AND NOT EXISTS (\n",[285,1171,1172],{"class":287,"line":902},[285,1173,1149],{},[285,1175,1176],{"class":287,"line":910},[285,1177,1154],{},[285,1179,1180],{"class":287,"line":931},[285,1181,1182],{},"    AND e.effect = 'deny' AND e.key_value = legal_entity_key\n",[285,1184,1185],{"class":287,"line":950},[285,1186,1164],{},[285,1188,1189],{"class":287,"line":958},[285,1190,1191],{},");\n",[285,1193,1194],{"class":287,"line":981},[285,1195,310],{"emptyLinePlaceholder":309},[285,1197,1199],{"class":287,"line":1198},15,[285,1200,1201],{},"CREATE OR REPLACE POLICY rls_legal_entity\n",[285,1203,1205],{"class":287,"line":1204},16,[285,1206,1207],{},"ON SCHEMA finance_gold\n",[285,1209,1211],{"class":287,"line":1210},17,[285,1212,1213],{},"ROW FILTER shared.fn_rls_legal_entity\n",[285,1215,1217],{"class":287,"line":1216},18,[285,1218,1219],{},"TO `account users`\n",[285,1221,1223],{"class":287,"line":1222},19,[285,1224,1225],{},"EXCEPT `dp-${env}-ar-finance-unrestricted`, `${sp_finance_gold}`\n",[285,1227,1229],{"class":287,"line":1228},20,[285,1230,1231],{},"FOR TABLES\n",[285,1233,1235],{"class":287,"line":1234},21,[285,1236,1237],{},"WHEN has_tag_value('rls', 'entitlement')\n",[285,1239,1241],{"class":287,"line":1240},22,[285,1242,1243],{},"MATCH COLUMNS has_tag_value('entitlement_axis', 'legal_entity') AS k\n",[285,1245,1247],{"class":287,"line":1246},23,[285,1248,1249],{},"USING COLUMNS (k);\n",[72,1251,1252],{},"Rules that always hold:",[609,1254,1255,1265,1271,1277],{},[84,1256,1257,1260,1261,1264],{},[87,1258,1259],{},"Precedence:"," unrestricted override → explicit deny → explicit allow → ",[87,1262,1263],{},"default deny",". A tagged table with no matching entitlement row returns nothing.",[84,1266,1267,1270],{},[87,1268,1269],{},"Totals by construction:"," the filter removes rows before aggregation, so every Gold aggregate, metric view and dashboard total covers only permitted rows.",[84,1272,1273,1276],{},[87,1274,1275],{},"The policy sits on the table; the user reads the view."," A row filter cannot be attached to a view — views read the filtered table under the querying user.",[84,1278,1279,1282,1283,1286],{},[87,1280,1281],{},"Validity dates matter:"," a row past its ",[194,1284,1285],{},"valid_to"," stops granting access without a deployment.",[72,1288,1289,1290,388,1293,1296,1297,388,1300,1303,1304,1307,1308,1311],{},"When migrating from SSAS, the rules are converted, not invented: a cube role's Windows group becomes a functional role, ",[194,1291,1292],{},"AllowedSet",[194,1294,1295],{},"DeniedSet"," become ",[194,1298,1299],{},"allow",[194,1301,1302],{},"deny"," rows, and dynamic ",[194,1305,1306],{},"UserName()"," security becomes ",[194,1309,1310],{},"current_user()"," against the same entitlement table.",[72,1313,1314,1315,1318],{},"If tag-driven policies are not yet available on your runtime, the same tags can generate one ",[194,1316,1317],{},"ALTER TABLE … SET ROW FILTER"," per tagged table — the same model with more statements, and the exemptions moved into a wrapper function.",[76,1320,1322],{"id":1321},"column-masking-from-tags","Column Masking From Tags",[72,1324,1325,1326,1329,1330,1332],{},"A mask policy on the ",[87,1327,1328],{},"catalog"," matches columns by classification tag. The function only masks; the policy's ",[194,1331,1108],{}," list decides who sees clear values.",[276,1334,1336],{"className":278,"code":1335,"language":280,"meta":281,"style":281},"CREATE OR REPLACE FUNCTION shared.fn_mask_personal(v STRING) RETURNS STRING\nRETURN CASE WHEN v IS NULL THEN NULL ELSE '***' END;\n\nCREATE OR REPLACE POLICY mask_personal\nON CATALOG `${catalog}`\nCOLUMN MASK shared.fn_mask_personal\nTO `account users`\nEXCEPT `dp-${env}-ar-pii-unmasked`, `${sp_erp_ingest}`, `${sp_erp_transform}`, `${sp_finance_gold}`\nFOR TABLES\nMATCH COLUMNS has_tag_value('personal_data', 'personal') OR has_tag_value('personal_data', 'sensitive_personal') AS c\nON COLUMN c;\n",[194,1337,1338,1343,1348,1352,1357,1362,1367,1371,1376,1380,1385],{"__ignoreMap":281},[285,1339,1340],{"class":287,"line":288},[285,1341,1342],{},"CREATE OR REPLACE FUNCTION shared.fn_mask_personal(v STRING) RETURNS STRING\n",[285,1344,1345],{"class":287,"line":294},[285,1346,1347],{},"RETURN CASE WHEN v IS NULL THEN NULL ELSE '***' END;\n",[285,1349,1350],{"class":287,"line":300},[285,1351,310],{"emptyLinePlaceholder":309},[285,1353,1354],{"class":287,"line":306},[285,1355,1356],{},"CREATE OR REPLACE POLICY mask_personal\n",[285,1358,1359],{"class":287,"line":313},[285,1360,1361],{},"ON CATALOG `${catalog}`\n",[285,1363,1364],{"class":287,"line":319},[285,1365,1366],{},"COLUMN MASK shared.fn_mask_personal\n",[285,1368,1369],{"class":287,"line":325},[285,1370,1219],{},[285,1372,1373],{"class":287,"line":894},[285,1374,1375],{},"EXCEPT `dp-${env}-ar-pii-unmasked`, `${sp_erp_ingest}`, `${sp_erp_transform}`, `${sp_finance_gold}`\n",[285,1377,1378],{"class":287,"line":902},[285,1379,1231],{},[285,1381,1382],{"class":287,"line":910},[285,1383,1384],{},"MATCH COLUMNS has_tag_value('personal_data', 'personal') OR has_tag_value('personal_data', 'sensitive_personal') AS c\n",[285,1386,1387],{"class":287,"line":931},[285,1388,1389],{},"ON COLUMN c;\n",[72,1391,1392,1393,746],{},"Because the policy is on the catalog, it covers Bronze, Silver, Gold and data-quality quarantine alike — an engineer reading production Silver sees personal columns masked exactly as a consumer does in Gold. Deploy the mask policy ",[87,1394,1395],{},"before the first personal column lands",[76,1397,1399],{"id":1398},"serving-bi-tools-correctly","Serving BI Tools Correctly",[72,1401,1402],{},"The BI storage mode decides whose scope applies:",[161,1404,1405,1418],{},[164,1406,1407],{},[167,1408,1409,1412,1415],{},[170,1410,1411],{},"How the BI tool reads",[170,1413,1414],{},"Whose scope applies",[170,1416,1417],{},"Requirement",[183,1419,1420,1431],{},[167,1421,1422,1425,1428],{},[188,1423,1424],{},"Live connection",[188,1426,1427],{},"the viewer's own, on every query",[188,1429,1430],{},"per-user OAuth with Entra ID — never a shared technical account",[167,1432,1433,1436,1439],{},[188,1434,1435],{},"Extract",[188,1437,1438],{},"the refresh principal's, once at refresh",[188,1440,1441,1442],{},"one extract per entitlement scope; the extract principal is ",[87,1443,1444],{},"entitled, not exempt",[72,1446,1447,1448,1451,1452,1454,1455,1457],{},"A Gold object is published only after a ",[87,1449,1450],{},"certification gate",": business description, owners and steward recorded, the full classification tag set (including ",[194,1453,434],{}," on every column), row-scope tags where needed, a freshness expectation, DQ expectations and a recorded storage mode. Only then is ",[194,1456,720],{}," generated for the serve role.",[76,1459,1461],{"id":1460},"operating-it-governance-as-code","Operating It: Governance as Code",[161,1463,1464,1474],{},[164,1465,1466],{},[167,1467,1468,1471],{},[170,1469,1470],{},"Control",[170,1472,1473],{},"Rule",[183,1475,1476,1484,1492,1500,1508,1516],{},[167,1477,1478,1481],{},[188,1479,1480],{},"Everything in Git",[188,1482,1483],{},"groups, memberships, grants, ownership, tags, entitlement rows, functions, policies",[167,1485,1486,1489],{},[188,1487,1488],{},"Deployment",[188,1490,1491],{},"CI\u002FCD under the CI service principal, promoted dev → test → prod",[167,1493,1494,1497],{},[188,1495,1496],{},"Test = prod",[188,1498,1499],{},"test carries the same policies and grants, so the model is proven before cutover",[167,1501,1502,1505],{},[188,1503,1504],{},"Daily drift check",[188,1506,1507],{},"reports anything present but not in Git, any user directly in a persona or access role, any grant to a persona",[167,1509,1510,1513],{},[188,1511,1512],{},"Break-glass",[188,1514,1515],{},"incident only, with ticket, owner and expiry; the equivalent change is committed before closure",[167,1517,1518,1521],{},[188,1519,1520],{},"Audit",[188,1522,1523],{},"system tables (access, lineage) reviewed monthly by Security",[76,1525,1527],{"id":1526},"worked-example-a-new-controller-joins","Worked Example: A New Controller Joins",[81,1529,1530,1533,1539,1542,1549,1558,1561],{},[84,1531,1532],{},"The new controller requests access to finance reporting.",[84,1534,1535,1536,1538],{},"The business owner adds them to ",[194,1537,669],{}," in Entra ID.",[84,1540,1541],{},"At sign-in, the user appears in the Databricks account automatically.",[84,1543,1544,1545,1548],{},"The functional role is already a member of the ",[194,1546,1547],{},"finance-consumer"," persona — in Git.",[84,1550,1551,1552,1554,1555,1557],{},"The persona already holds ",[194,1553,920],{}," → ",[194,1556,720],{}," on certified views.",[84,1559,1560],{},"The entitlement row for that functional role is already approved.",[84,1562,1563],{},"The user opens the dashboard and sees their region's rows, with personal names masked.",[72,1565,1566],{},"No grant was typed, no engineer was involved, no BI filter was set up. When the controller leaves, disabling the Entra account removes everything.",[76,1568,1570],{"id":1569},"conclusion","Conclusion",[72,1572,1573],{},"The model rests on a few ideas: the schema is the governance unit, tags carry meaning and switch protection on, rights flow through three role tiers, row scope is approved data owned by the business, and everything is deployed as code with drift detection. The result is a platform where onboarding a user is a group membership, onboarding a table is a set of tags, and every protection is provable from Git.",[1575,1576,1577],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":281,"searchDepth":294,"depth":294,"links":1579},[1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592],{"id":78,"depth":294,"text":79},{"id":147,"depth":294,"text":148},{"id":334,"depth":294,"text":335},{"id":505,"depth":294,"text":506},{"id":633,"depth":294,"text":634},{"id":998,"depth":294,"text":999},{"id":1062,"depth":294,"text":1063},{"id":1112,"depth":294,"text":1113},{"id":1321,"depth":294,"text":1322},{"id":1398,"depth":294,"text":1399},{"id":1460,"depth":294,"text":1461},{"id":1526,"depth":294,"text":1527},{"id":1569,"depth":294,"text":1570},"2026-09-20","A step-by-step model for governing a Databricks lakehouse with Unity Catalog: schemas as the governance unit, governed tags, three-tier roles from Entra ID, tag-driven row filters and column masks, service principals, and governance as code.","md","\u002Fblog\u002Fdatabrics-governance.png",{},{"title":18,"description":1594},"4dRxih4YRGGG6KGJHYSaxLC1y261bDH0RExSj5nqTxQ",[1601,1603],{"title":14,"path":15,"stem":16,"description":1602,"children":-1},"A step-by-step data quality framework for a Databricks lakehouse built on Lakeflow Jobs: three lines of defence, a rule catalogue seeded from Git, a runner that warns, quarantines or fails, thresholds and alerts routed to owner groups, monitoring that never gates, and a scorecard.",{"title":22,"path":23,"stem":24,"description":1604,"children":-1},"What a data platform solutions architect does and how to design a data platform step by step: roles, responsibilities, pipeline foundations, architecture patterns, 23 design steps in six phases, a validation checklist and common pitfalls.",1795279086526]