Skip to content

In cli "airflow roles export / import" : add the permissions to the json file processed.  #36128

@gbonazzoli

Description

@gbonazzoli

Description

Actually (Airflow 2.7.3) the cli command airflow roles export does only export custom roles but without specifing the related permission, so it is quite useless as a mean to backup & restore configuration between airflows.

Use case/motivation

Now that the Param structure has been recently added, it is very common for us to create a DAG with input parameters and give it to final (non IT) users with a profile limited to that DAG.

So having an import export DAG can give us an instrument to profile a role in test and transport it in production when the test is accomplished.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions