unsupportedpastels
a4847138bb
fix(dashboard): trust a loopback public_url's exact origin behind a Host-rewriting proxy
...
With webapp.public_url: https://localhost:8443 in front of a Webapp on
127.0.0.1:9120, a proxy that rewrites Host to the backend's address
sends Host 127.0.0.1:9120 with Origin https://localhost:8443 . That
Origin names neither the bound port nor the Host it dials, so CORS gave
no grant and every WebSocket upgrade got 4403. The loopback port check
never read the configured public URL, and a loopback public URL does not
turn on sign-in.
_configure_auth_gate now also records the public URL's exact loopback
origin (scheme, host, port; default ports filled in) as
app.state.trusted_public_origins, from listener_public_url (the
Webapp's webapp.public_url) or dashboard.public_url, and
is_trusted_local_origin accepts an Origin equal to it. Nothing else is
widened: another loopback port, scheme or host on the same proxy is
still refused, and a non-loopback public URL adds nothing (its Origin
never reaches the port check).
The port check keeps running on 0.0.0.0 / :: binds. Sign-in cookies are
SameSite=Lax and http://localhost:3000 is same-site with
http://localhost:9119 , so sign-in alone does not keep another local
page on the same host off the sockets; a new test pins that.
The public_url cases fail on the previous sources (4 failed: every
trusted case) and pass with this change. web-dashboard.md describes the
proxy setup.
2026-11-02 13:56:48 -05:00
..
2026-10-25 17:51:21 -07:00
2026-10-25 22:22:46 -07:00
2026-10-25 20:57:22 -07:00
2026-10-25 20:57:22 -07:00
2026-10-26 01:21:01 -07:00
2026-10-25 19:32:48 -07:00
2026-10-27 13:23:31 -07:00
2026-10-27 13:23:31 -07:00
2026-10-27 17:33:48 -07:00
2026-10-25 19:26:49 -07:00
2026-10-27 12:13:49 -07:00
2026-11-01 21:53:36 -08:00
2026-11-01 21:11:06 -08:00
2026-10-28 19:05:57 -07:00
2026-10-27 16:46:52 -07:00
2026-11-02 07:54:35 -08:00
2026-10-28 23:00:54 -07:00
2026-10-27 17:33:48 -07:00
2026-10-27 17:33:48 -07:00
2026-10-27 17:33:48 -07:00
2026-10-25 22:22:46 -07:00
2026-10-30 11:13:02 -04:00
2026-10-30 15:41:47 +05:30
2026-10-27 12:57:09 -07:00
2026-10-25 18:54:09 -07:00
2026-10-25 20:57:22 -07:00
2026-10-30 13:46:07 -04:00
2026-10-28 19:40:40 -07:00
2026-10-30 05:54:35 -07:00
2026-11-01 15:47:21 -08:00
2026-10-28 07:48:11 -07:00
2026-10-28 08:56:59 -07:00
2026-10-27 20:55:07 -07:00
2026-10-28 13:49:47 -04:00
2026-10-28 12:22:07 -04:00
2026-10-27 12:13:49 -07:00
2026-10-27 12:13:49 -07:00
2026-10-28 07:20:40 -07:00
2026-10-27 07:53:07 -07:00
2026-11-01 07:28:44 +05:30
2026-10-28 17:21:32 -07:00
2026-10-31 14:32:08 +05:30
2026-11-01 07:28:44 +05:30
2026-10-27 11:51:03 -07:00
2026-10-27 11:51:03 -07:00
2026-10-28 00:51:25 -04:00
2026-10-25 20:57:22 -07:00
2026-10-25 18:14:42 -07:00
2026-10-25 20:57:22 -07:00
2026-10-27 12:57:09 -07:00
2026-10-27 17:04:02 -07:00
2026-10-29 16:30:39 +05:30
2026-10-27 16:46:52 -07:00
2026-10-27 16:46:52 -07:00
2026-10-27 16:46:52 -07:00
2026-10-27 16:46:52 -07:00
2026-10-29 16:30:39 +05:30
2026-10-29 16:30:39 +05:30
2026-10-29 16:30:39 +05:30
2026-10-29 16:30:39 +05:30
2026-10-25 23:19:22 -07:00
2026-10-27 16:46:52 -07:00
2026-10-27 16:30:14 +05:30
2026-10-25 17:51:21 -07:00
2026-11-02 04:24:00 -08:00
2026-10-25 23:30:51 -04:00
2026-10-28 20:23:19 -07:00
2026-10-27 10:56:48 -04:00
2026-11-02 00:18:00 +05:30
2026-10-31 22:04:21 -07:00
2026-10-28 17:06:43 +05:30
2026-10-28 17:06:43 +05:30
2026-10-29 16:30:39 +05:30
2026-10-28 20:40:14 -07:00
2026-10-28 16:55:00 +05:30
2026-10-27 07:53:07 -07:00
2026-10-25 22:22:46 -07:00
2026-10-26 00:32:16 -07:00
2026-10-26 00:32:18 -07:00
2026-10-26 01:28:50 -07:00
2026-10-25 22:22:46 -07:00
2026-10-29 16:58:09 +05:30
2026-10-30 08:02:40 -07:00
2026-11-01 21:54:15 -08:00
2026-11-01 19:24:04 +05:30
2026-10-25 20:57:22 -07:00
2026-11-01 22:07:56 -08:00
2026-10-30 15:41:47 +05:30
2026-10-25 18:54:09 -07:00
2026-10-25 20:57:22 -07:00
2026-10-27 16:03:08 -07:00
2026-10-27 12:44:44 -07:00
2026-10-27 20:35:30 -07:00
2026-10-25 22:28:34 -07:00
2026-10-28 08:27:39 -07:00
2026-10-31 22:08:49 -07:00
2026-10-25 20:57:22 -07:00
2026-10-25 20:57:22 -07:00
2026-10-25 20:57:22 -07:00
2026-10-27 16:03:08 -07:00
2026-11-02 06:58:25 -08:00
2026-10-25 20:57:22 -07:00
2026-10-29 16:58:09 +05:30
2026-10-27 12:16:22 -07:00
2026-10-30 04:39:18 -07:00
2026-10-27 18:22:47 -07:00
2026-10-26 00:41:20 -07:00
2026-10-26 00:32:10 -07:00
2026-10-28 17:21:32 -07:00
2026-10-28 17:21:32 -07:00
2026-11-02 13:56:48 -05:00
2026-10-28 13:10:38 -07:00
2026-10-25 20:57:22 -07:00
2026-10-28 17:21:32 -07:00
2026-10-28 23:07:47 -07:00
2026-10-28 23:07:47 -07:00
2026-10-27 21:32:38 -04:00
2026-10-31 22:07:49 -07:00
2026-10-26 11:34:08 -04:00
2026-10-29 16:58:09 +05:30
2026-10-29 16:58:09 +05:30
2026-10-29 16:58:09 +05:30
2026-11-02 00:18:00 +05:30
2026-10-25 18:54:09 -07:00
2026-10-25 18:54:09 -07:00
2026-10-25 18:12:27 -07:00
2026-10-26 00:32:11 -07:00
2026-10-31 22:25:09 -07:00
2026-10-31 22:25:09 -07:00
2026-10-26 00:32:11 -07:00
2026-10-25 20:57:22 -07:00
2026-10-26 01:42:00 -07:00
2026-10-28 08:27:39 -07:00
2026-10-26 01:21:01 -07:00
2026-10-25 23:30:51 -04:00
2026-11-01 10:14:58 -08:00
2026-10-25 22:55:11 -07:00
2026-11-01 13:38:10 -08:00
2026-10-26 01:34:59 -07:00
2026-11-02 06:57:42 -08:00
2026-10-25 19:25:17 -04:00
2026-10-25 18:16:25 -07:00
2026-10-27 12:43:40 -07:00
2026-10-27 17:32:49 -07:00
2026-10-25 22:36:59 -07:00
2026-10-25 22:36:59 -07:00
2026-10-28 13:09:00 -07:00
2026-11-01 19:53:24 -08:00
2026-11-01 13:50:05 -08:00
2026-10-25 22:28:13 -07:00
2026-11-01 13:38:10 -08:00
2026-11-01 13:50:05 -08:00
2026-10-29 16:58:09 +05:30
2026-10-26 00:10:23 -07:00
2026-10-26 13:04:58 +05:30
2026-10-28 21:24:43 -07:00
2026-10-27 13:23:31 -07:00
2026-10-27 14:01:44 -07:00
2026-10-26 18:14:35 -04:00
2026-10-26 00:32:11 -07:00
2026-10-27 12:35:50 -07:00
2026-10-29 16:30:39 +05:30
2026-10-28 13:10:38 -07:00
2026-10-27 14:02:54 -07:00
2026-11-01 10:14:58 -08:00
2026-10-25 17:51:21 -07:00
2026-10-29 22:21:46 -04:00
2026-10-27 07:53:07 -07:00
2026-11-01 07:26:34 +05:30
2026-11-01 07:26:34 +05:30
2026-11-01 07:26:34 +05:30
2026-10-28 07:21:14 -07:00
2026-10-25 17:51:21 -07:00
2026-10-30 11:13:02 -04:00
2026-10-27 13:23:31 -07:00
2026-10-27 13:23:31 -07:00
2026-11-01 10:08:01 -08:00
2026-10-27 07:53:07 -07:00
2026-10-31 22:25:09 -07:00
2026-10-25 17:50:59 -07:00
2026-10-25 23:30:51 -04:00
2026-10-28 04:55:57 +05:30
2026-11-02 13:56:48 -05:00
2026-10-28 19:40:40 -07:00
2026-10-30 05:54:35 -07:00
2026-10-26 18:13:41 -04:00
2026-10-26 18:13:41 -04:00
2026-10-30 23:49:30 -04:00
2026-10-30 05:50:29 -07:00
2026-10-30 15:45:49 +05:30
2026-10-30 15:45:49 +05:30
2026-11-02 13:56:48 -05:00
2026-10-31 12:56:13 +05:30
2026-10-28 04:55:57 +05:30
2026-10-27 17:32:49 -07:00
2026-11-01 15:47:21 -08:00
2026-10-30 05:50:29 -07:00
2026-10-31 12:56:13 +05:30
2026-10-28 12:22:07 -04:00
2026-10-25 23:32:04 -04:00
2026-10-27 20:55:07 -07:00
2026-10-28 07:39:01 -07:00
2026-10-31 14:32:08 +05:30
2026-10-28 17:21:32 -07:00
2026-10-26 18:15:25 -04:00
2026-10-25 23:49:14 -04:00
2026-10-27 20:44:23 -07:00
2026-10-27 20:44:23 -07:00
2026-10-27 20:44:23 -07:00
2026-10-25 23:32:04 -04:00
2026-10-27 09:42:22 -04:00
2026-10-26 18:13:41 -04:00
2026-10-28 19:09:39 -07:00
2026-10-28 08:56:59 -07:00
2026-10-29 16:58:09 +05:30
2026-11-02 13:56:48 -05:00
2026-10-25 17:51:21 -07:00