You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b355f7d
Browse filesBrowse the repository at this point in the historyBrowse files
direct: Fix perpetual update on grants with ALL_PRIVILEGES (databricks#6064)
## Changes
When a principal is granted `ALL_PRIVILEGES`, `normalizeAssignments`
collapses its privilege list down to just `ALL_PRIVILEGES`, on both the
config side and the value read back from the backend, so the two compare
equal.
## Why
Fixesdatabricks#6030. On the direct engine `bundle plan` reported `update` on
every catalog/schema/volume `.grants` sub-resource that granted
`ALL_PRIVILEGES`: the backend reports `ALL_PRIVILEGES` plus the concrete
privileges it implies, which never matched the config's lone
`ALL_PRIVILEGES`, and the deploy never converged.
## Tests
New acceptance test `grants/schemas/all_privileges_coexist` (local +
cloud, both engines); verified on aws-prod-ucws.
Fixes [#6030](https://github.com/databricks/cli/issues/6030): spurious `update` on catalog/schema/volume grants (direct engine); a principal granted `ALL_PRIVILEGES` no longer drifts when the backend also reports the concrete privileges it implies ([#6064](https://github.com/databricks/cli/pull/6064)).
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-all-privileges-coexist-[UNIQUE_NAME]/default/files...
12
+
Deploying resources...
13
+
Updating deployment state...
14
+
Deployment complete!
15
+
16
+
>>> [CLI] bundle plan
17
+
Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
18
+
19
+
>>> errcode [CLI] bundle destroy --auto-approve
20
+
The following resources will be deleted:
21
+
delete resources.schemas.grants_schema
22
+
23
+
This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
24
+
delete resources.schemas.grants_schema
25
+
26
+
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-grants-all-privileges-coexist-[UNIQUE_NAME]/default
0 commit comments