Commits
2026-09-09
chore: bump remaining crates to latestAhmet Kaan Gümüş · 25140f3
chore: bump remaining crates to latest topcoat 0.8, ulid 3, chacha20poly1305 0.11, base64 0.23, rsa 0.10-rc.18.
2026-09-08
a person's sign-ins are capped by the panel's new per-user ceiling: create_session, already the one door every login walks through, keeps the newest max_sessions live rows and revokes the overflow in the same critical section as the insert — newest-first with a rowid tiebreak so the cut is deterministic and the fresh login never evicts itself, expired rows holding no slot — and the cascade already written for revocation takes the overflow's app sessions and refresh tokens down with it, so the oldest device is truly logged out, not just the cookie ignored; the ceiling defaults to five, clamped at one, set from the admin panel's settings card as 'Sign-in sessions per user'; and every person can now see their connected apps: a new apps tab on the signed-in landing lists the OIDC clients holding live grants — name, client id, grant count, last connected — grouped per client from list_connected_apps, empty-noted when nothing is connected, everything user-or-app-controlled escapedAhmet Kaan Gümüş · 5862316Browse files
2026-09-03
feat: password reset, rate limiting, policy settings; fix: connection mutex, row alignmentAhmet Kaan Gümüş · 6099ac7
feat: password reset, rate limiting, policy settings; fix: connection mutex, row alignment - Password reset: /forgot asks with one neutral answer for every address; the newest link is the only live one (minting retires the rest), redeeming spends the link, swaps the hash and revokes every session in one move. Reset links are never shown on screen — mail or nothing. - Sign-in rate limiting: a rolling hour of failures per address (and per account for the second factor) against a panel-set ceiling; a success wipes the slate. Blocked doors answer 'too many tries' without saying which step refused. - New Settings section: invite days, session days, second-factor window, reset-link minutes, failure ceiling — the constants the code shipped with, now the panel's. - fix: every database access now holds the connection mutex (iz's pattern). Concurrent requests — an SSE refetch against a posting form — panicked turso's write lock; found by the browser drive, swept repo-wide. - fix: the confirm disclosure's summary now renders at button height next to real buttons. Verified: suite 41 green incl. single-active-link and limit-block/clear contracts; browser-driven — Settings saves, 2 failures then 'too many tries', dead reset link redirects to the ask with the refusal named, concurrent write+3 reads answer 200 with no panic, and the action row measures 32px across Disable/Sign-out/Delete.
feat: confirm disclosures, split From name, and the live channel — iz parityAhmet Kaan Gümüş · 794c3a4
feat: confirm disclosures, split From name, and the live channel — iz parity - Row actions are two-step disclosures now (iz's confirm-details idiom): Disable/Enable and Delete open a panel naming the cost, and only the button inside it acts. No script required; outside-click/Escape closing rides the live script. - The sender's From splits into name + address like iz's; the header is built from the two, never hand-typed as one string. - The live channel, ported from iz: /admin/live SSE ticks (no data on the wire, ever), a 50-minute window so reconnects re-authenticate, and a shutdown watch so one open tab per admin cannot stall a restart. The client refetches and swaps the panel column, suspending while a field has focus. Every event log ticks it, so Users and Logs update the moment anything happens — including the mail chip after a save's background probe. Verified: suite 39 green; driven with two tabs — an invite's row and an accepted member appear without a reload, Logs grows 21→22 on a triggered check, and Delete needs its confirm step.
feat: sender check, ported from izlek — probe without sending, standing on the panelAhmet Kaan Gümüş · f464e35
feat: sender check, ported from izlek — probe without sending, standing on the panel - 'Check connection' dials the server and stops before sending: connect, TLS, hello, AUTH, NOOP, hang up — lettre's test_connection under a 15s outer timeout, which izlek measured as necessary because lettre's own timeout does not catch a socket that accepts and then goes quiet. - The probe's verdict is recorded (at, ms, error) and the Mail section shows it as a standing line: NotConfigured / Unchecked / Connected with the handshake's milliseconds / Refused with what the server said. - Saving settings wipes the record, so 'Connected' can never outlive the settings it proved; a save also re-probes in the background. Verified: suite 37 green; driven in the browser — save triggers the background probe, the standing line shows the refusal with the server's own words, the button re-probes and both paths log to the event ledger.
fix: STARTTLS for non-465 ports, 587 default, real mail errors on the pageAhmet Kaan Gümüş · 993ef22
fix: STARTTLS for non-465 ports, 587 default, real mail errors on the page
- The transport was always implicit TLS (relay()); on 587 the server waits
for plaintext EHLO + STARTTLS, so every send failed with 'something went
wrong'. Now 465 wraps, everything else STARTTLS-upgrades.
- Unset port reads as 587, not 465.
- A failed test mail shows the transport's actual reason under the banner
instead of the generic refusal.
Verified: full suite (34) green; driven end-to-end in the browser — port
field shows 587, saved settings persist, failed test banner shows the real
error ('failed to lookup address information: No address associated with
hostname').feat: server-side sessions with instant revocation, admin panel, sealed mail settingsAhmet Kaan Gümüş · 963c897
feat: server-side sessions with instant revocation, admin panel, sealed mail settings - app_sessions table: opaque tokens introspected per request against im; no token-validity window — an admin revoke or a disabled account is dead on the very next call - sessions::revoke_user_sessions cascades central sessions, refresh tokens and app sessions; disable also revokes - POST /introspect (RFC 7662); token exchange carries an app_session alongside the OIDC tokens; im-client drops its refresh-token logic for it - /admin panel: People (invite, admin flag, disable/enable, sign out everywhere), Mail (SMTP in the settings table, password sealed under im.key — deployment facts stay in im.toml, secrets never), Logs (audit events: invites, enrolments, logins, revocations, exchanges) - CLI: im-web invite <email> [--admin], im-web revoke <email> - events + settings tables; login/logout/TOTP/invite/exchange audit logging Verified live: admin invited user2 from the panel, user2 enrolled and entered the demo app silently; admin revoked user2 and the very next demo request was signed out (no ghost window); logs show the whole trail.