Skip to content

Bug - Impossible to load UI if user does not have read permissions on plugins #51299

Open
@pierrejeambrun

Description

@pierrejeambrun

Body

Plugins are loaded at the start of the web application to be able to fill extra menu items in the navbar.

Authenticated users but without read permissions on plugins will get a 403 forbidden error on that endpoint. That error is handled in a way that prevent the rest of the application to render and show a Forbidden page.

We should instead fail gracefully and continue rendering the UI even if extra plugins menu items cannot be fetched because the user does not have access. This way user can still use the default UI.

We want all user to be able to see extra menu items coming from the plugins. We should add an entry in the ui/config enpoints with plugins_extra_menu_items there (iterate over plugins appbuilder_menu_items), so all authenticated users can see them. Plug the UI on this new config attribute, not calling the public/providers endpoint anymore.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

area:UIRelated to UI/UX. For Frontend Developers.area:pluginsgood first issuekind:bugThis is a clearly a bugkind:metaHigh-level information important to the communitypriority:mediumBug that should be fixed before next release but would not block a release

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions