You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c56fccf
Browse filesBrowse the repository at this point in the historyBrowse files
feat(auth): connect an assistant without a terminal (#1832)
* feat(auth): connect an assistant without a terminal
The house password, not the address, proves the owner. Any browser that
reaches the box may set the first one, also through a Docker port or on
the box itself, and choosing it signs that browser in. Settings → Access
asks for it right above the assistant's code, and the setup wizard asks
for it on a new box. Any non-empty password is accepted; a short one gets
a warning. A forgotten password is turned off on the box with
`ftw password reset` (`/app/ftw password reset` in Docker).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(auth): close the first-password race and sign in only with proof
From an independent review of the previous commit:
- A request Authenticate let in while the lock was still off can no
longer replace the password the first browser just chose.
- The sign-in cookie goes only to a direct local browser that chose the
first password or proved the current one. The box itself may still
replace a password it never proved, as it may change any setting, but
that earns no sign-in.
- Every change of the house password writes an audit line with the
address.
- Access no longer offers "choose a password" when the box's status
could not be read, and a choose that meets a password set meanwhile
turns into a sign-in.
- The password limit counts characters, not bytes.
- The docs say how to reset on a native box whose ftw command predates
this release, and say plainly that loopback is not a wall against
programs on the box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Connecting an assistant no longer needs a terminal. When the box has no house password, Settings → Access asks you to choose one right above the assistant's code, and choosing it signs that browser in. Any browser that reaches the box may set the first one, also through a Docker port or on the box itself. A new box asks for it on the setup wizard's last step. Any password will do: a short one gets a warning, not a refusal. The Home Assistant app still needs none.
6
+
7
+
The password, not the address, now proves the owner: a browser on the box itself can let an assistant in once it is signed in. Settings → System calls it the house password and explains it without developer words. If you forget it, or someone else set it first, run `ftw password reset` on the box (`docker compose exec ftw /app/ftw password reset` on Docker), then choose a new one on the box's page. On a native box whose `ftw` command predates this release, run `/opt/ftw/releases/<release>/ftw password reset` instead.
0 commit comments