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

Aperta
#63 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
199
Fork
10
Merge medio
1m
PR unite (30g)
15

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di open-webui/tether

Tutte le issue di open-webui/tether

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.