Skip to content

v0.275.0 is Flagging "CAN_MANAGE_RUN" as an invalid job permission #3864

@barryjpodonovan

Description

@barryjpodonovan

Describe the issue

When running databricks bundle deploy a new error has started appearing that says the only valid permissions are CAN_MANAGEandIS_OWNERfor a job even thoughCAN_MANAGE_RUNandCAN_VIEW` are valid as per:

  1. API Reference
  2. DABs Job Permission Documentation
  3. What can actually be assigned in Databricks UI

Configuration

Extract from databricks.yml

targets:
  feature_branch:
    resources:
      jobs:
        interim_gold_layer_job:
          permissions:
            - group_name: <group name>
              level: CAN_MANAGE
  green:
    resources:
      jobs:
        interim_gold_layer_job:
          permissions:
            - user_name: <user email>
              level: CAN_MANAGE_RUN

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run databricks bundle deploy ...
  2. See error

Expected Behavior

The expectation is for all permissions as per the API Reference that are applicable to the object as per the DABs Job Permission Documentation to be allowed.

Actual Behavior

Example from my GitHub Workflow log below

Error: cannot create permissions: cannot remove management permissions for the current user for job, allowed levels: CAN_MANAGE, IS_OWNER
with databricks_permissions.job_interim_gold_layer_job,
on bundle.tf.json line 1975, in resource.databricks_permissions.job_interim_gold_layer_job:
1975: },

OS and CLI version

  • CLI: v0.275.0
  • OS: Linux

Is this a regression?

Yes, this wasn't an issue in v0.275.0

Metadata

Metadata

Assignees

Labels

DABsDABs related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions