Skip to content

Users with roles as viewer, user and public see forbidden error after logging in #49715

@saurabhb-dev

Description

@saurabhb-dev

Apache Airflow version

3.0.0

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Summary:
Users with role as viewer, user and public is not able see any data after they login instead they see forbidden error

Env:
Airflow in Docker

Image

What you think should happen instead?

The user with these roles (viewer, user and public) should be allowed to see data that they are authorized to as per RBAC permission of Airflow.

How to reproduce

Steps to reproduce:

  1. Login to your airflow 3 in docker as the admin.
  2. Create user and assign role as viewer
  3. Login as that new user in another browser and observed that you see a Forbidden Error page.
  4. Repeat the same with user roles of public and user role. Observe same error.

Operating System

Windows 11 Home Edition with running Airflow in docker on WSL2

Versions of Apache Airflow Providers

Default that come with Airflow 3.

Deployment

Docker-Compose

Deployment details

No response

Anything else?

It happens always. As soon that the user is given another other role than those 3 like admin or ops, the user gets access to data on the UI.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.0Issues Reported for 3.0area:UIRelated to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions