You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hanjungwoo3 (via GitHub)" <gi...@apache.org> on 2025/10/28 04:15:52 UTC
[I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
hanjungwoo3 opened a new issue, #57400:
URL: https://github.com/apache/airflow/issues/57400
### Apache Airflow version
3.1.1
### If "Other Airflow 2/3 version" selected, which one?
_No response_
### What happened?
**Description**
When editing a user in Airflow (/auth/user/edit/<user_id>), clicking the “Back” button (<-) at the bottom of the page causes a Mixed Content error.
If the user clicks the Back button again, the left sidebar menu is duplicated — one instance appears inside the frame of the main page, resulting in two overlapping side menus.
**Steps to Reproduce**
1. Navigate to Security → Users in the Airflow web UI.
2. Click on any user to edit (e.g., airflow admin user).
3. On the Edit User page, click the Back (<-) button once.
• Observe the Mixed Content error in the browser console.
4. Click the Back button again.
• The left menu is rendered inside the main content frame, creating two side menus.
**Expected Behavior**
• Clicking Back should safely return to the user list (/auth/users/list/) without any console errors.
• The left sidebar menu should remain single and correctly positioned.
**Actual Behavior**
• A Mixed Content warning/error appears in the console:
`Mixed Content: The page at 'https://airflow-test.com/security/users' was loaded over HTTPS, but requested an insecure resource 'http://airflow-test.com/auth/users/list/'. This request has been blocked.`
• A second click on Back results in the left menu being duplicated inside the content frame.
• Deployment Type: Running on Podman container
• Webserver Protocol: HTTPS
• Browser: Chrome (latest version)
### What you think should happen instead?
The issue seems to occur because the Back button is pointing to a non-HTTPS endpoint (http://) instead of the secure (https://) one, causing the browser to block the request.
After that, the Airflow app attempts to reload content into an existing iframe, leading to duplicated menus.
### How to reproduce
1. Run Airflow in a Podman container with HTTPS enabled.
2. Log in to the Airflow web UI.
3. Go to Security → Users.
4. Click any user to open the Edit User page.
• Example URL: https://airflow-test.com/security/users
5. Click the Back (<-) button at the bottom of the page once.
• A Mixed Content error appears in the browser
### Operating System
podman
### Versions of Apache Airflow Providers
3.1.1
### Deployment
Docker-Compose
### 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
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "parkhojeong (via GitHub)" <gi...@apache.org>.
parkhojeong commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-4466760197
The `Mixed Content` error is caused by FAB not being proxy-aware in an HTTPS reverse proxy setup, which makes `/auth/back` generate an `http://` redirect inside the Security iframe.
You can handle The `Mixed Content` error with an `enable_proxy_fix` option. https://github.com/apache/airflow/pull/49942
### repro
Start Airflow behind HTTPS, for example with Caddy on macOS.
```sh
caddy reverse-proxy \
--from https://localhost:28443 \
--to http://localhost:28080
```
<details>
<summary> error repro </summary>
run airflow without enable_proxy_fix
```sh
env SKIP_BREEZE_SELF_UPGRADE_CHECK=true \
BREEZE_INIT_COMMAND='export AIRFLOW__FAB__ENABLE_PROXY_FIX=False' \
breeze start-airflow \
--auth-manager FabAuthManager \
--backend sqlite \
--db-reset \
--skip-assets-compilation \
--use-airflow-version 3.2.1 \
--airflow-extras fab \
--airflow-constraints-reference constraints-3.2.1 \
--providers-constraints-reference constraints-3.2.1 \
--mount-sources remove
```
1. Login admin/admin
2. Secret(nav) - Users
3. Click edit button
4. Click back button
https://github.com/user-attachments/assets/cc8ccfc9-1254-4ddd-b86b-0dd734d06417
</details>
<details>
<summary> fix repro </summary>
run airflow with enable_proxy_fix
```sh
env SKIP_BREEZE_SELF_UPGRADE_CHECK=true \
BREEZE_INIT_COMMAND='export AIRFLOW__FAB__ENABLE_PROXY_FIX=True' \
breeze start-airflow \
--auth-manager FabAuthManager \
--backend sqlite \
--db-reset \
--skip-assets-compilation \
--use-airflow-version 3.2.1 \
--airflow-extras fab \
--airflow-constraints-reference constraints-3.2.1 \
--providers-constraints-reference constraints-3.2.1 \
--mount-sources remove
```
1. Login admin/admin
2. Secret(nav) - Users
3. Click edit button
4. Click back button
https://github.com/user-attachments/assets/5c3861c1-1232-4c0d-b051-568c83b34875
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "hanjungwoo3 (via GitHub)" <gi...@apache.org>.
hanjungwoo3 commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-3460237537
When click the first button
<img width="979" height="904" alt="Image" src="https://github.com/user-attachments/assets/fc5469a7-6c2b-42bb-9cd0-8646779c6192" />
and then click the second button two “left” elements appear.
<img width="882" height="897" alt="Image" src="https://github.com/user-attachments/assets/767f676a-1e53-4902-bef8-96c669f3f9fd" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "parkhojeong (via GitHub)" <gi...@apache.org>.
parkhojeong commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-4459250489
Thanks for the report. I'll take a look
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-3456249292
@hanjungwoo3, thanks for the detailed steps that you provided! Can you include a screenshot/video of the behavior that you're seeing?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "choo121600 (via GitHub)" <gi...@apache.org>.
choo121600 closed issue #57400: Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment)
URL: https://github.com/apache/airflow/issues/57400
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "parkhojeong (via GitHub)" <gi...@apache.org>.
parkhojeong commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-4466333641
I reproduced this
Start Airflow 3.1.1 with FAB auth.
```sh
env SKIP_BREEZE_SELF_UPGRADE_CHECK=true breeze start-airflow \
--auth-manager FabAuthManager \
--backend sqlite \
--db-reset \
--skip-assets-compilation \
--use-airflow-version 3.1.1 \
--airflow-extras fab \
--airflow-constraints-reference constraints-3.1.1 \
--providers-constraints-reference constraints-3.1.1 \
--mount-sources remove
```
1. Log in as admin / admin
2. Click Security - Users
3. Click Back button
<img width="745" height="1226" alt="Image" src="https://github.com/user-attachments/assets/dfad9c5e-44c6-4869-8760-2a3bde9a4aec" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "hanjungwoo3 (via GitHub)" <gi...@apache.org>.
hanjungwoo3 commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-3465786052
Summary:
When navigating using the back button, returning from /auth/back to / causes unexpected behavior where a “left” element appears incorrectly.
Steps to Reproduce:
1. Go to List → Edit.
2. Click Back → returns correctly to List.
3. Go to Security → Roles → Users.
4. Click Back → returns correctly to Roles.
5. Go to /auth/back, then go Back to / (Home/Dashboard).
Expected Result:
The back button should return to the previous screen without any layout or navigation issues.
Actual Result:
When returning from /auth/back to /, an unexpected “left” element (sidebar) appears.
Additional Notes:
All other back navigations (e.g., List → Edit → List, Roles → Users → Roles) work as expected. The issue only occurs when the previous page is /auth/back and the destination is /.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "hanjungwoo3 (via GitHub)" <gi...@apache.org>.
hanjungwoo3 commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-3465331642
` command: ["api-server", "--proxy-headers"]
environment:
<<: *airflow-common-env
AIRFLOW__WEBSERVER__BASE_URL: "https://airflow-test.com"
AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX: "True"
FORWARDED_ALLOW_IPS: "*"`
and that fixed the previous issue.
But now there’s a new problem — when I go to Security → Users and click the back button right away, I don’t get the mixed content error anymore, but the left menu duplicates (I see two side menus).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "parkhojeong (via GitHub)" <gi...@apache.org>.
parkhojeong commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-4466797752
Hi @hanjungwoo3 @tchen-otterai @anavrotski
I summarized the cause and solution above for both issues: the `left menu duplication` and the ``Mixed Content`.
Could you please check this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "tchen-otterai (via GitHub)" <gi...@apache.org>.
tchen-otterai commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-3545764715
We have similar issue with 3.1.0 with Teleport as reversed proxy
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-3454465061
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Mixed Content Error and Duplicate Left Menu When Clicking “Back” in Airflow Edit User Page(Podman Environment) [airflow]
Posted by "choo121600 (via GitHub)" <gi...@apache.org>.
choo121600 commented on issue #57400:
URL: https://github.com/apache/airflow/issues/57400#issuecomment-4466859083
As far as I know, this issue has already been fixed in a previous version.
If you are still able to reproduce the same problem in the latest version, please let us know along with the version information, and we will take another look.
For now, I will close this issue. Please feel free to reopen it if needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org