cli icon indicating copy to clipboard operation
cli copied to clipboard

Workflow Permissions: Impossible to deploy again a workflow if I'm not the owner

Open Philippe-Neveux opened this issue 1 year ago • 1 comments

Describe the issue

I don't know if it's an issue or if the behaviour is expected, but, I'm not able to deploy a already deployed workflow which I'm not the owner. Even with the "CAN_MANAGE" permissions

Configuration

> databricks --version
Databricks CLI v0.214.1

Steps to reproduce the behavior

  1. Someone from the team make a databricks bundle deploy -t lab a completely new bundle so he's the owner of all the deployed resources
  2. Someone else of the team run the exact same command databricks bundle deploy -t lab
  3. See error

The errors are the following (we tried different permissions for the person who wants to deploy again the same bundle)

image

After giving the permission "CAN_MANAGE" to that person, this error happened

image

Expected Behavior

We expected to be able to deploy that workflow with the permission "CAN_MANAGE", even without being the owner of the workflow, which is not the case here.

Actual Behavior

It's not possible to deploy the workflow

OS and CLI version

> databricks --version
Databricks CLI v0.214.1

On Mac OS 14.3.1

Is this a regression?

I'm not sure about what I'm gonna say but I think with the dbx CLI, it's possible to do it. We used it few months back before migrating to bundle.

Debug Logs

I put here the log in debug mode

image

Thanks for the help ;)

Philippe-Neveux avatar Mar 13 '24 08:03 Philippe-Neveux

Still the same issue with

> databricks --version
Databricks CLI v0.215.0

Philippe-Neveux avatar Mar 21 '24 11:03 Philippe-Neveux

@Philippe-Neveux does the issue still persists for you? Generally this is not expected, but the logs you but in Debug Logs seem to mention that users generally does not have permissions on Jobs, could it be that something is misconfigured in the workspace?

andrewnester avatar Nov 13 '24 16:11 andrewnester