Skip to content

Violates strict Content-Security-Policy when accessing the "Security" pages (Users, Roles, Actions, Resources, Permissions) #49895

@zachliu

Description

@zachliu

Apache Airflow version

3.0.0

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

No response

What happened?

It looks like Airflow 3.0.0 requires a "relaxed" Content-Security-Policy to display the "Security" pages (Users, Roles, Actions, Resources, Permissions). because when i have frame-ancestors 'none' I got
Refused to frame 'https://my.domain.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'". when trying to load any "Security" pages.

I had to allow same-origin framing (frame-ancestors 'self') in our ALB to be able to see these pages.

More discussions are in this slack thread.

What you think should happen instead?

From the discussion, this might or might not be a bug. But it was not an issue before.

How to reproduce

Set frame-ancestors 'none' in the Content-Security-Policy and access one of the "Security" pages (Users, Roles, Actions, Resources, Permissions).

Operating System

ubuntu debian

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Labels

area: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

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions