Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sync FAB Permissions for all base views#12162

Merged
kaxil merged 1 commit intoapache:masterfrom
astronomer:sync-base-views-perms
Nov 7, 2020
Merged

Sync FAB Permissions for all base views#12162
kaxil merged 1 commit intoapache:masterfrom
astronomer:sync-base-views-perms

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Nov 7, 2020

If a user has set [webserver] update_fab_perms = False and runs airflow sync-perm command to sync all permissions, they will receive the following error:

webserver_1  | [2020-11-07 15:13:07,431] {decorators.py:113} WARNING - Access is Denied for: can_index on: Airflow

and if the user was created before and some perms were sync'd a user won't be able to find Security Menu & Configurations View.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@kaxil kaxil requested review from ashb and ryanahamilton November 7, 2020 15:40
@kaxil kaxil added the area:webserver Webserver related Issues label Nov 7, 2020
@kaxil kaxil added this to the Airflow 2.0.0-beta1 milestone Nov 7, 2020
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Nov 7, 2020
@github-actions
Copy link

github-actions bot commented Nov 7, 2020

The PR should be OK to be merged with just subset of tests as it does not modify Core of Airflow. The committers might merge it or can add a label 'full tests needed' and re-run it to run all tests if they see it is needed!

If a user has set `[webserver] update_fab_perms = False` and runs `airflow sync-perm` command to sync all permissions, they will receive the following error:

```
webserver_1  | [2020-11-07 15:13:07,431] {decorators.py:113} WARNING - Access is Denied for: can_index on: Airflow
```

and if the user was created before and some perms were sync'd (try the default breeze setup) a user won't be able to find Security Menu & Configurations View
@kaxil kaxil force-pushed the sync-base-views-perms branch from e13290a to 6b79873 Compare November 7, 2020 16:52
@kaxil kaxil merged commit ed13326 into apache:master Nov 7, 2020
@kaxil kaxil deleted the sync-base-views-perms branch November 7, 2020 17:32
kaxil added a commit that referenced this pull request Nov 19, 2020
If a user has set `[webserver] update_fab_perms = False` and runs `airflow sync-perm` command to sync all permissions, they will receive the following error:

```
webserver_1  | [2020-11-07 15:13:07,431] {decorators.py:113} WARNING - Access is Denied for: can_index on: Airflow
```

and if the user was created before and some perms were sync'd a user won't be able to find Security Menu & Configurations View
kaxil added a commit that referenced this pull request Nov 20, 2020
If a user has set `[webserver] update_fab_perms = False` and runs `airflow sync-perm` command to sync all permissions, they will receive the following error:

```
webserver_1  | [2020-11-07 15:13:07,431] {decorators.py:113} WARNING - Access is Denied for: can_index on: Airflow
```

and if the user was created before and some perms were sync'd a user won't be able to find Security Menu & Configurations View
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
If a user has set `[webserver] update_fab_perms = False` and runs `airflow sync-perm` command to sync all permissions, they will receive the following error:

```
webserver_1  | [2020-11-07 15:13:07,431] {decorators.py:113} WARNING - Access is Denied for: can_index on: Airflow
```

and if the user was created before and some perms were sync'd a user won't be able to find Security Menu & Configurations View
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants