8000 DAB redeployment does not update permissions · Issue #2991 · databricks/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
DAB redeployment does not update permissions #2991
Open
@boccileonardo

Description

@boccileonardo

Describe the issue

DABs only correctly set permissions on the first deployment. Any subsequent redeployment does not update the permission mapping.
Applies to both top-level permission mapping in databricks.yaml and resource-level permissions.

Steps to reproduce the behavior

  1. Initial job is deployed correctly with applied permission mapping.
  2. Permission mapping is changed (see below)
  3. New bundle deployment is successful
  4. .bundle files on Workspace correctly show the latest version which includes new permissions but the job itself is not updated.
#databricks.yaml - INITIAL DEPLOYMENT
...
targets:
      ...
  master:
    mode: production
    workspace:
         ...
    permissions:
      - user_name: user@example.com
        level: CAN_MANAGE
#databricks.yaml - CHANGE PERMISSIONS
...
targets:
      ...
  master:
    mode: production
    workspace:
         ...
    permissions:
      - user_name: user@example.com
        level: CAN_MANAGE
      - group_name: MY_GROUP_NAME
        level: CAN_MANAGE

Expected Behavior

Permissions are updated on each bundle deployment.

Actual Behavior

No change in permissions after redeployment of DABs.

OS and CLI version

ubuntu-latest and cli latest: databricks/setup-cli@main
CLI version: v0.254.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDABsDABs related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0