Skip to content

Commit 6071bee

Browse files
authored
Merge branch 'main' into fix/install-script-bugs
2 parents 77d0aee + 2da5d13 commit 6071bee

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

dashboards/SAT_Dashboard_definition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3186,7 +3186,7 @@
31863186
"dataType": "STRING",
31873187
"values": [
31883188
{
3189-
"value": "Network Security"
3189+
"value": "Identity & Access"
31903190
}
31913191
]
31923192
}

notebooks/Includes/workspace_analysis.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,19 +1311,21 @@ def models_in_uc(df):
13111311

13121312
check_id='105' #GOV-34,Governance,Monitor audit logs with system tables
13131313
enabled, sbp_rec = getSecurityBestPracticeRecord(check_id, cloud_type)
1314-
metastores= {} # hold all the metastores that have no 'access' schema with state ENABLE_COMPLETED
1314+
metastores= {} # hold all the metastores that have no 'access' schema enabled (ENABLE_COMPLETED or MANAGED)
13151315
def uc_systemschemas(df):
13161316
if df is not None and not isEmpty(df):
1317-
return (check_id, 0, {'enable_serverless_compute':'access schema with state ENABLE_COMPLETED found'} )
1317+
return (check_id, 0, {'enable_serverless_compute':'access schema enabled (ENABLE_COMPLETED or MANAGED) found'} )
13181318
else:
1319-
return (check_id, 1, {'enable_serverless_compute':'access schema with state ENABLE_COMPLETED not found'})
1319+
return (check_id, 1, {'enable_serverless_compute':'access schema not enabled (state not ENABLE_COMPLETED or MANAGED)'})
13201320

13211321
if enabled:
13221322
tbl_name = 'systemschemas' + '_' + workspace_id
1323+
# API returns "schema" and "state". Access schema can be ENABLE_COMPLETED or MANAGED (default-enabled).
13231324
sql=f'''
13241325
SELECT *
13251326
FROM {tbl_name}
1326-
where schema ="access" and state ="ENABLE_COMPLETED"
1327+
WHERE schema = "access"
1328+
AND (state = "ENABLE_COMPLETED" OR state = "MANAGED")
13271329
'''
13281330
sqlctrl(workspace_id, sql, uc_systemschemas)
13291331

0 commit comments

Comments
 (0)