mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #22539] issue: FORWARDED_ALLOW_IPS seems to be ignored because start.sh hardcodes --forwarded-allow-ips '*' #35269
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MateKristof on GitHub (Mar 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22539
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Hi,
I noticed what looks like a mismatch between the documented/container environment configuration and the actual runtime behavior of
start.sh.What I observed
I am running Open WebUI from the Docker image/build path that ends up starting the app via:
In the container environment,
FORWARDED_ALLOW_IPSis set to a specific value, for example:However, the actual Uvicorn process is started with:
What I found
In
backend/start.sh, I found hardcoded--forwarded-allow-ips '*'usage in the startup path.That seems to make a specific
FORWARDED_ALLOW_IPSenvironment setting ineffective at runtime.I also noticed that
.env.examplecontains:which suggests that
FORWARDED_ALLOW_IPSis intended to be configurable.Reproduction
FORWARDED_ALLOW_IPSin the container environment to a specific subnet or list.Why this looks problematic
From my perspective, the current behavior means that even if the operator explicitly configures
FORWARDED_ALLOW_IPS, the runtime still trusts all proxies becausestart.shpasses*directly to Uvicorn.So the env setting appears to be present in the container, but not actually honored by the runtime startup command.
Question
Is this intentional, or is this a bug?
If
FORWARDED_ALLOW_IPSis meant to be configurable, would it make sense forstart.shto use something like:instead of hardcoding
*?Thanks.
Steps to Reproduce
Reproduction
FORWARDED_ALLOW_IPSin the container environment to a specific subnet or list.Logs & Screenshots
Additional Information
No response
@tjbck commented on GitHub (Mar 25, 2026):
Addressed in dev.