Repository navigation
fix(k8s): allow only the Ingress origins in Open WebUI - #5357
Conversation
Open WebUI used its default CORS_ALLOW_ORIGIN of '*', so it allowed every origin for its API, with credentials, and for Socket.IO. ConfigMap llm/open-webui-origins now holds CORS_ALLOW_ORIGIN: the HTTPS origin of each host of Ingress llm/open-webui-ingress, under the placeholder domain. Application ingress renders it beside the Ingress, and Open WebUI reads it through extraEnvFrom. The reference is not optional, so the pod never starts with the default. host_patches also tests and replaces each ConfigMap data value that holds the placeholder, so deploy-stack sets the configured domain in the origins with the hosts. The Argo CD gate allows the placeholder in such a value only. Without Argo CD, the llm stack applies the file before its charts. A check of the k8s row keeps the origins equal to the Ingress hosts. A Helm value override on Application open-webui does not stay: Argo CD applies spec.sources from git at each sync of cluster. Closes #5306
Review, render diff and steps for a personHead: Premise (upstream Open WebUI v0.11.4, the pinned image)
Deviation from acceptance criterion 1 (confirmed)The issue asks for a Helm value override on Application Render diff, origin/main against this branch
Restarts at the merge
Steps for a person
Changed behaviorA browser at an origin that is not an Ingress host, such as the minikube NodePort URL or a port-forward to localhost, gets no Socket.IO connection. Local checks on the head
|
The merge steps of k8s/README.md named only the Ingress hosts and the devops-cli-config example as reasons to stage the overrides with --argocd-revision. A new or changed container environment value or ConfigMap data value under the placeholder domain, such as the origins of Open WebUI, also needs the overrides before the merge.
b8d5777 to
f7064d0
Compare
Check resultsHead commit:
Skipped check: Plan Check |
Each event of a pull request starts its workflows in a new check suite, and the REST check-runs API lists the latest run of a check in each suite. The reader dropped only a cancelled run that a newer run replaced, so the failed run of a push stayed beside the passed run of a close and reopen. `devops pr ready` refused the head of #5357 on that old failure, but the latest run of each check passed or was skipped, and `gh pr checks` showed the check as passed. The REST reader now keeps the latest run of each check, whatever its conclusion. A check is a name and an app id. The time of a run is its `started_at`, else its `completed_at`. A run with no time, and each run at the latest time of its check, stays. A newer failure or cancel still fails the check. `devops pr ready`, `devops pr check-readiness`, `devops pr monitor` and the roadmap readiness rows read the same runs. Closes #5383 Change: `openspec/changes/archive/2026-11-13-5383-readiness-latest-check-run/`
🤖 I have created a release *beep* *boop* --- ## [0.127.1](v0.127.0...v0.127.1) (2026-11-13) ### Bug Fixes * **ci:** alarm at 360 s, one P0 issue, shards by recorded time ([#5377](#5377)) ([2abd6ff](2abd6ff)) * **github:** read the plan diff and the release files from the merge base ([#5401](#5401)) ([c54e14c](c54e14c)) * **infra:** turn off the Ansible color of every playbook run ([#5381](#5381)) ([5bafb1a](5bafb1a)), closes [#5352](#5352) * install-tools --check passes an older openspec binary ([#5355](#5355)) ([625c89d](625c89d)) * **k8s:** allow only the Ingress origins in Open WebUI ([#5357](#5357)) ([fdab229](fdab229)) * **pr:** count only the latest run of each check ([#5393](#5393)) ([634dc91](634dc91)) * **review:** drop the fixed gateway URL of the review dry run ([#5399](#5399)) ([0666d3d](0666d3d)) * **review:** review a pull request at the merge base of its base branch ([#5387](#5387)) ([351ba2a](351ba2a)), closes [#5346](#5346) * **roadmap:** end fix-plan at a time budget with a result line ([#5380](#5380)) ([20468f4](20468f4)), closes [#5363](#5363) * **roadmap:** refine skips an item that changed during the write ([#5392](#5392)) ([a863dda](a863dda)) * **roadmap:** stage writes RENAMED and REMOVED spec deltas ([#5367](#5367)) ([4abbbd2](4abbbd2)) * **roadmap:** title the delivery by the summary of its plan ([#5376](#5376)) ([10e1069](10e1069)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Open WebUI used its default
CORS_ALLOW_ORIGINof*: it allowed every origin for its API, with credentials, and for Socket.IO.ConfigMap
llm/open-webui-originsnow holds the HTTPS origin of each host of Ingressllm/open-webui-ingress, under the placeholder domain. Applicationingressrenders it, and Open WebUI reads it throughextraEnvFrom. The reference is not optional, so the pod never starts with the default.host_patchesalso tests and replaces each ConfigMap data value that holds the placeholder, sodeploy-stacksets the configured domain in the origins with the hosts. The Argo CD gate allows the placeholder only there. Without Argo CD, thellmstack applies the file before its charts. Ak8srow check keeps the origins equal to the hosts.A Helm value override on Application
open-webuidoes not stay: each sync ofclusterappliesspec.sourcesfrom git.Closes #5306
Change:
openspec/changes/archive/2026-11-13-5306-open-webui-allows-every-cors-origin/