-
Notifications
You must be signed in to change notification settings - Fork 15.2k
fix: enable iframe script execution #52257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: enable iframe script execution #52257
Conversation
12a43a8
to
0e2289a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks for the PR, overall looks good. I'll do a user test tomorrow.
Just one question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one suggestion
Just remembered that this was discussed before and shouldn't be done in AF3 but at the proxy level. Check #49895 for more details, we have documentation about that. |
Actually that's for the content security policy part of this PR (which should be removed), we still need the |
Can you also do the same (enable script) on the Plugin iframe |
3bf5220
to
5a1b168
Compare
Some updates:
|
5429c53
to
ad34055
Compare
Backport failed to create: v3-0-test. View the failure log Run details
You can attempt to backport this manually by running: cherry_picker 4c7d43c v3-0-test This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continue |
* fix: enable iframe script execution * fix: include vite env variables when transpiling typescripts * fix: add explanations to sandbox settings * fix: remove csp change (cherry picked from commit 4c7d43c)
Manual backport #52568 |
* fix: enable iframe script execution * fix: include vite env variables when transpiling typescripts * fix: add explanations to sandbox settings * fix: remove csp change (cherry picked from commit 4c7d43c) Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]>
closes: #50373
closes: #51836
What
Auth manager pages are embedded in the webUI using iframes. However, the current sandbox lacks the
allow-script
permission, which breaks the functionality of auth manager because it is built with FAB.How
allow-scripts
in iframe*note: adding
allow-script
and removingallow-same-origin
at the same time would prevent the fab auth manager from accessing its resources, thus also breaking its functionality. Given that we are only embedding trusted sources, I think it is acceptable to relax the sandbox restriction here.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in airflow-core/newsfragments.