Commits
2026-09-25
im: session address goes through the family's client_labelAhmet Kaan Gümüş · 84318dc
im: session address goes through the family's client_label One client-label helper in server.rs serves every app; session_meta folds its unknown back to none so the sessions list keeps its dash. The session_meta_ip tests move beside the helper as client_label_tests.
im: store the session address from client_ipAhmet Kaan Gümüş · e61e812
im: store the session address from client_ip topcoat 0.9 reports the client through client_ip once one proxy hop is trusted. The old read took the first x-forwarded-for hop — or x-real-ip — from any peer, which a client can spoof. x-real-ip goes with it: the family proxy sets x-forwarded-for, so the fallback never fired.
2026-09-11
im: OIDC ordering, GIF sniff, TOTP replay, redirect guards, forgot limitsAhmet Kaan Gümüş · 4394600
im: OIDC ordering, GIF sniff, TOTP replay, redirect guards, forgot limits - oidc: verify client before rotating refresh/consuming auth code - photo: GIF87a/GIF89a magic (was transposed GIF98a) - totp: last-used-step recorded, replay within window rejected - safe_back/logout_target/safe_next reject backslash open redirects - authorize: state appended urlencoded - /forgot rate-limited; reset-token replacement atomic
im: live session-revocation logoutAhmet Kaan Gümüş · 08994cc
im: live session-revocation logout
- LiveEvent::Revoked { user_id, session_hash } broadcast from EVERY write
path (admin revoke/disable/delete, self revoke, password change
revoke-except, reset redeem, sign-out-everywhere)
- /live keeps connect-time identity; targeted 'revoked' SSE event only to
the killed session's connections; password change spares the asking tab
- /directory/live emits revoked {"sub"}; DirectoryMember gains disabled
- client: revoked event or /api/me 401 on SSE error -> hard navigate to /
- new GET /api/me (204/401)
- fix: admin disable never wrote the disabled flag (regression at HEAD)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.
Timezone setting: im serves it, the directory carries it, iz will read itAhmet Kaan Gümüş · 509d0e7
Timezone setting: im serves it, the directory carries it, iz will read it users gains timezone TEXT NOT NULL DEFAULT 'UTC+03:00' — migration- guarded ALTER, the DEFAULT backfilling every existing row to +3. The value format is iz's settings select ported verbatim: fixed offsets 'UTC-12:00' through 'UTC+14:00', zero-padded hours, 'UTC' for zero — both sides must speak identical strings over the directory, so im does not invent a spelling. User, its three queries (verify_login, user_by_id, list_users — timezone appended, no index shifts) and set_preferences expose it. The introspection answer and DirectoryMember — the web type and the im-client SDK type — carry timezone; the SDK field defaults to 'UTC+03:00' so rows mirrored before the field existed still read. The landing's preferences pane gains the TIME ZONE select under the three it had; the save validates against the option list (bad_zone otherwise) and — because the timezone rides the directory — announces the row as a profile frame, the way a name or photo change does. Tests: default + set-and-read-back at the store, the introspect field, and the route contract — /directory carries the stored zone, the live bus announces it, a value outside the select's list is refused whole. Browser-verified on the scratch server: 27 options (UTC-12:00 … UTC, UTC+14:00), the select saves and re-renders the stored zone, and /directory answers with it. Workspace check with zero warnings.
2026-09-08
Profile changes live everywhere: photo_version, version-aware /photo, /directory photo_version + /directory/live stream, typed live bus, im-client directory moduleAhmet Kaan Gümüş · 339b198
Profile changes live everywhere: photo_version, version-aware /photo, /directory photo_version + /directory/live stream, typed live bus, im-client directory module
The photo cache buster moves out of im's process memory (PhotoStamps)
into the users row, so every reader — this process, the next restart,
and every sibling app — sees the same one:
- users.photo_version (migration follows the guarded-ALTER precedent;
im-migrate's schema copy grows it in the same diff); set_photo and
clear_photo bump it in their commit.
- GET /photo/{sub} answers a strong ETag "p{version}" with a 304 on
If-None-Match, and caches immutable ONLY when the URL's ?v= names the
current version — the bare URL an app fetches revalidates (no-cache).
- /directory entries and POST /introspect answers gain photo_version;
DirectoryMember is one shape for the JSON and the stream.
- App.live carries LiveEvent { Tick, Profile(DirectoryMember) }: the
browser /live keeps its anonymous data:{} tick and adds a
{"kind":"profile","sub"} frame; new GET /directory/live (Basic
app pair) streams retry hint, keep-alive comments, and event:profile
rows. notify_profile fires after every user-mutation commit: photo
upload and delete, admin email edit, disable/enable, invite
acceptance, confirmed email change.
- im-client gains a directory module: DirectoryClient (roster, photo,
live stream with a hand-rolled SSE parser), DirectoryEvent, and
spawn_sync's full-pass/stream loop with 1s..30s backoff and resync.the users table's email edit learns the fold, and the address card moves behind the password: the edit's popover was a guest in a scroll box — absolute against a table the panel scrolls, so on the lower rows the form hung below the clip and the actions stopped matching the panel's rhythm — so the button leaves the row entirely and the form folds under the person, a quiet 'Edit address' summary beside the sessions count in the same in-flow strip, opening in normal flow where nothing can clip it, while the destructive confirmations keep their popovers (short, they always fit); and the self-served address change leaves the landing's profile, which is what a person reads, for the password section, where the account's other keys already live — form, pending line, and every redirect follow, profile back to identity and counts aloneAhmet Kaan Gümüş · dec57cfBrowse files
an address is fixable at last, from either side of the door: the admin panel's users section grows a direct email edit on every row — applied outright, because an unreachable mailbox is exactly what the rescue is for, and email is contact metadata, not a key, so the id stays and sessions, app tokens and OIDC claims read the new address on their next read — while a person asking on their own account, from the landing's profile card, must be vouched for at both ends: one confirmation mail to the address being left and one to the address being gained, the change applying only when both mailboxes click, either order, each link single-use on a reset-length clock, the gained address re-checked for another owner at the moment it applies; the pair lives in a new email_changes table mirrored into im-migrate, a fresh ask retires the pair before it, and the confirm card is a POST — never a link a mail scanner could pre-fetch — that any mailbox holder can press, signed in or notAhmet Kaan Gümüş · c5b40edBrowse files
the family's writes move behind the admin door: the Services card on the landing is read-only for everyone — cards and trio, nothing else — and the editing grows up into the admin panel as its own section beside Users, a table of key, name and address with the panel's own rows, edit disclosures, reorder arrows and confirm-guarded removals, posting to /admin/services_* behind the same require_admin as every other panel write; the landing's private gate and its /services/* routes go, and an empty family hides the card entirely, the panel being where one gets seededAhmet Kaan Gümüş · faf2886Browse files
2026-09-07
the family list moves into the house: a services table owns the wordmarks, seeded once from the config's [[services]] on first boot and never again, edited instead from the landing's Services card where an admin adds, renames, re-points, reorders or removes entries — members see the same card read-only; a new GET /family answers the list to registered apps behind the same basic client pair as the directory, the trio and the cards render the table, and the logout back-door now trusts only origins the table knowsAhmet Kaan Gümüş · cc56357Browse files
the dizey family joins the chrome: a services config names the siblings, the signed-in pages wear the in·im·iz wordmark trio with the current app inked, and the landing opens with a directory of cards above the account sections; logout grows a GET face for the relying parties' exit walk, its back admitted only as a local path or exactly one of the configured services' origins, and both faces revoke the central session so a sign-out anywhere ends the session everywhereAhmet Kaan Gümüş · b230307Browse files
2026-09-05
Two-factor enrolment turns optional — invites and password logins land signed-in on the landing, which offers an Activate two-factor link beside the muted 2FA-off chip; /enroll now serves the signed-in, generating the secret on first visit, and the pending-enroll marker is goneAhmet Kaan Gümüş · 22061ebBrowse files
2026-09-04
Landing reads as sections behind a tab row — profile, sessions, preferences, password — so a window holds the whole page; the admin panel's account tab folds into it, and admins can post a notice to one person or everyone from the mail sectionAhmet Kaan Gümüş · 8929bd1Browse files
Per-user preferences from iz: theme (dark/light) and interface (instrument/ledger) stamped on the document, Turkish beside English throughout, password change for every signed-in userAhmet Kaan Gümüş · b5a021dBrowse files
Sessions listed per device — IP, agent, last seen — revocable by their owner and by adminAhmet Kaan Gümüş · 5182e93Browse files
Profile section: photo, statistics, public pageAhmet Kaan Gümüş · 8092e0d
Profile section: photo, statistics, public page
The signed-in landing gains a profile section — photo, 2FA/admin chips,
Email and Member-since fields, and a statistics card (sign-ins, active
sessions, connected apps) — and /people/{user_id} gives every account a
public profile any signed-in member can read, iz's people page ported to
the auth-card idiom.
Photos keep izlek's split: the row carries only the mime type, the bytes
live as files under storage/photos/<user id> — staged write, row commit,
rename on set; row first, best-effort unlink on clear; a boot sweep
collects staged leftovers and orphans. Upload caps at 5 MiB and sniffs
the mime from magic bytes; serving is session-gated (404, never 403)
with ETag/304 and immutable caching behind a per-upload URL stamp.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: migrated İzlek users enrol TOTP on first login; ship im-migrate in deploysAhmet Kaan Gümüş · f675a3d
feat: migrated İzlek users enrol TOTP on first login; ship im-migrate in deploys - accounts without confirmed 2FA are routed through /enrol before any session exists — same bar as invited accounts; a migrated user mid- /authorize continues to their app after enrolling - deploy stages im-migrate alongside im-web so the import runs on the server - fix: im-migrate's duplicated schema had drifted (no admin/app_sessions/ events/settings), producing databases the server could not log into — synced to store::SCHEMA, with the drift lesson in the doc comment Verified live: fixture izlek.db -> im-migrate -> password login (hash verbatim) -> forced TOTP enrolment -> signed-in session.
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.
feat: OIDC single sign-on — provider, client crate, izlek migrationAhmet Kaan Gümüş · d7200e0
feat: OIDC single sign-on — provider, client crate, izlek migration - im-core: turso store (users, invites, sessions, OIDC clients, auth codes, refresh tokens, signing keys), argon2 passwords ported from izlek-core, RFC 6238 TOTP (hmac 0.13 + sha1 0.11), hand-rolled RS256 JWT over rsa 0.9, XChaCha20-Poly1305 sealing under im.key - im-web: topcoat server — login / TOTP / invite / enroll pages in İzlek's instrument skin (style/main.scss, grass build.rs), OIDC authorize + token + userinfo + JWKS + discovery, CLI: invite, create-client - im-client: drop-in OIDC client for topcoat apps — PKCE S256, JWKS-validated id_tokens, transparent refresh rotation, encrypted session cookie, demo example app - im-migrate: one-time izlek.db import, argon2 hashes verbatim, mapping CSV Verified live in a browser: invite -> password -> TOTP enrolment (QR) -> demo app OIDC handshake (silent via central session) and a full interactive password+TOTP login landing on the app's protected page with claims.