[0.1.16] [macOS] Load-balancer affinity cookie disables browser sign-in

オープン
#63 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
electron, typescript

調査の方向性

The sign-in decision lives in signInWithBrowser in src/main/sessions.ts, which checks accessHeaders(...).Cookie and returns false on any cookie for the WebUI. Read that function and how the connection's session cookies are gathered, then reproduce by serving a fake /api/config that sets an affinity cookie. Done when the browser flow runs for a reachable WebUI with only affinity cookies, while known access-proxy cookies such as CF_Authorization still fall back to in-app sign-in.

索引モデルが issue の本文から書いたものです。

説明

Version

0.1.16

Platform

macOS

Description

Behind a load balancer that sets a session-affinity cookie, Tether never uses browser sign-in.

signInWithBrowser returns false as soon as the connection's session holds any cookie for the WebUI (accessHeaders(...).Cookie in src/main/sessions.ts), treating it as an access-proxy cookie. Affinity cookies (Gateway API sessionPersistence, AWS ALB, nginx ingress affinity: cookie, Traefik sticky sessions) are set on the first page load, so Tether always falls back to in-app sign-in, even though the server supports auth sessions and /api/config works without the cookie.

Expected: browser sign-in (PKCE + loopback) whenever the WebUI is reachable without cookies.

Suggestion: fall back only when the cookies are needed, e.g. probe api/config without cookies and use browser sign-in if it succeeds, or only treat known access-proxy cookies (such as CF_Authorization) that way.

Steps to reproduce
  1. Put Open WebUI 0.13.x with OIDC sign-in behind a gateway that sets an affinity cookie (Path=/) on every response.
  2. Add the connection in Tether and click the OIDC provider button.
  3. Sign-in opens inside the app instead of the system browser.
Additional context

Open WebUI 0.13.3, OIDC only (password login disabled); /api/config reports features.auth_sessions: true and the provider. In-app sign-in works; only the browser flow is skipped. Removing the affinity cookie isn't a good option for us: the relay WebSocket carries it too, which keeps relay traffic on the same replica as the user's requests.

主要言語
TypeScript
スター
199
フォーク
10
平均マージ
1分
マージ済み PR(30日)
15

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-webui/tether のほかの issue

open-webui/tether の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。