Repository navigation
fix(inbox-auth): a ten-character password floor for Firstname@2026 - #19
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The door refused the password pattern the owner gives his team:
Arjun@2026is ten characters,Pranay@2026eleven, 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_LENGTH12 → 10, with the why beside itdocs/agent-guides/inbox-sign-in.mdsays ten, and names the patternapps/hook/server/inbox-auth-command.test.tsasserts the new wordsTests:
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 in200with a session cookie, a wrong password401, an address off the allowlist401.