Skip to content

fix(inbox-auth): a ten-character password floor for Firstname@2026 - #19

Merged
arjun-zosma merged 4 commits into
mainfrom
fix/password-floor-10
Nov 26, 2026
Merged

arjun-zosma merged 4 commits into
mainfrom
fix/password-floor-10

Conversation

@arjun-zosma

Copy link
Copy Markdown
Member

The door refused the password pattern the owner gives his team: Arjun@2026 is ten characters, Pranay@2026 eleven, and the floor was twelve.

Ten is still above better-auth's default of 8. What defends the door is the attempt limit — ten sign-ins per address per five minutes on /sign-in/email, sixty on the rest of the auth paths — not the length.

  • AUTH_MIN_PASSWORD_LENGTH 12 → 10, with the why beside it
  • docs/agent-guides/inbox-sign-in.md says ten, and names the pattern
  • apps/hook/server/inbox-auth-command.test.ts asserts the new words

Tests: bun test apps/hook/server/inbox-auth-command.test.ts packages/server/inbox-auth-routes.test.ts packages/server/inbox-auth-door.test.ts packages/server/inbox-auth-passkey.test.ts — 55 pass, 0 fail.
Proven against the live door on this box: five accounts made with Firstname@2026, each signing in 200 with a session cookie, a wrong password 401, an address off the allowlist 401.

harness and others added 4 commits November 26, 2026 23:05
The door listened on 127.0.0.1 unconditionally. That is right when the publisher
(tailscale serve, Cloudflare Access, a TLS proxy) runs on the same machine, and
wrong when it runs elsewhere: tailscale serve on a host proxies to the container's
address, while a 127.0.0.1 listener inside a container answers its own loopback
only. The published address then answers 502 and the door logs nothing, because
no request ever arrives.

PLANNOTATOR_INBOX_AUTH_BIND sets the listen address (loopback when unset or
blank). It does not widen who may come in: Host is still checked by
doorAnswersHost and every request still needs a session.
… the door

The owner, 2026-11-26: "Branding is fully plannotator. It must be zosma ai logo
and all." This fork is what our team signs in to, so the product it shows is
Zosma's:

- The sidebar's logo item is the Zosma mark (a new ZosmaMark component: the
  site's own Z path, white on the brand blue #017CF3) beside "Zosma Inbox",
  not the studio's Tater sprite. The sprite and its CSS stay for upstream's
  weekly merge.
- The tab icon is a new 'zosma' favicon style and the default: a hand-built
  16/32/48 .ico and a 64 px PNG in packages/core/favicon.ts, drawn from the
  same path. Glass, Yellow and Face stay, so nothing anyone picked is lost;
  'classic' still reads as unset and now shows Zosma.
- The manifest (name, short_name, icons, apple-touch-icon) and /app-icon/<name>
  carry zosma-180, zosma-192 and zosma-512, so an installed Inbox is Zosma too.
- The door (sign-in and passkeys pages) wears the mark on the brand tile and
  says "Sign in to Zosma Inbox".
- The window's <title> is "Zosma Inbox"; the tab icon dialog offers Zosma first.

Tests: core/favicon.test.ts (the new style's bytes are a real .ico with three
frames and a PNG with the mark's blue in it), server/inbox-app-icons.test.ts
(the manifest and the three zosma icons). typecheck clean.
…default

Zosma replaced Glass as the default favicon, so four suites that pinned the old
default now pin ours: ThemeProvider's nothing-stored case, the API route guards
(and 'classic', which reads as unset), the tab's badge over the plain 32, and
the tab icon dialog's in-use choice and its four-choice order. The browser smoke
test looked for the Tater sprite the mark replaced; it now looks for the mark
itself (data-mark="zosma") and asserts the sprite is gone.
…e@2026

The door asked for 12 characters, which refuses the pattern the owner
hands his team: Arjun@2026 is 10, Pranay@2026 is 11. Ten is still above
better-auth's default of 8, and what defends the door is the attempt
limit (ten sign-ins per address per five minutes on /sign-in/email),
not the length. The guide text and the CLI test follow the constant.

Co-authored-by: Pi <pi@zosma.ai>
@arjun-zosma
arjun-zosma merged commit d85c294 into main Nov 26, 2026
41 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant