Repository navigation
OpenBrowse v1.12.2
A patch release for two authentication faults on the dashboard.
Signing in now lasts. A password typed once would stop working minutes
later and the browser would ask again, over a page that was open and working.
Nothing was expiring and the server was refusing nothing: a browser throws away
a stored password the moment any request comes back 401, and the dashboard
polls every ten seconds, so a single stray 401 ended the sitting within
seconds. Measured in Chrome, this happens whether the challenge names a realm
or is withheld entirely.
Signing in still means typing a user and a password. The browser is now given a
signed session cookie, and later requests ride on that instead. A 401 does not
destroy a cookie.
- Signed with a key derived from the password rather than generated at startup,
so a restart does not sign everyone out, and changing the password ends every
session issued under the old one. HttpOnly,SameSite=Lax, andSecurewhenever the request arrived over
TLS. Lax is a tightening in itself: a browser attaches a stored password to
cross-site requests and will not attach this.DASHBOARD_SESSION_DAYS(default 30) sets the lifetime, renewed once past
halfway.0keeps the session only as long as the browser is open./logoutends a session. WebSocket handshakes and the noVNC passthrough
accept the session too, which they carry more reliably than a stored password.
The failed-login lockout could be bypassed. The per-IP backoff read the
first entry of X-Forwarded-For. A proxy appends the true client to that
header rather than replacing it, so the first entry is written by whoever sent
the request: a different value on each attempt bought a fresh allowance every
time, allowing unlimited password guesses against an instance published through
a tunnel or proxy. It now reads the connection, which the server resolves from
the forwarding header but only for peers it has been told to trust. A proxy on
another host must be named in --forwarded-allow-ips.
Also fixed. The Basic challenge now names a realm and a charset, as RFC 7617
requires. A background fetch is refused without a challenge, so a poll cannot
throw a login box over a page being read, and the host monitor says it is
signed out rather than sitting on a stale reading. A dashboard 401 now records
why it happened — credentials absent or rejected, and how the browser made the
request — with the username reported only as known or unknown, because a
mistyped password lands in that field.
Upgrading: everyone is asked to sign in once after this release, because the
challenge changed and a password stored under the old one no longer matches.
After that one sign-in, the session carries it.