Commits
2026-09-11
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)im-web: cached family probes, refusal i18n, soft-nav // guard, escape fixesAhmet Kaan Gümüş · c097a7c
im-web: cached family probes, refusal i18n, soft-nav // guard, escape fixes - health.rs: shared LazyLock reqwest client + 30s TTL probe cache; no more per-render Client::new + inline 2s sibling stalls on every page - pages.rs/i18n.rs: 'unavailable' error arm (En+Tr) for photo store failures - layout.rs: soft-nav rejects protocol-relative // hrefs (foreign-HTML swap hole) - escape(): map ' -> '; drop redundant manual escape at view! text sinks (pages.rs:837,1110; admin.rs:209) that double-escaped - directory/oidc/photo: handler unwraps mapped to error paths - people.rs: single avatar fetch; admin placeholders via t(); sessions created_at formatted like seen
2026-09-09
services gain a storage limit the family carries: im's admin panel already owns the roster, so the byte cap a storing sibling answers to belongs on the same row — a nullable storage_limit_bytes behind the guarded ALTER (an old-shaped table grows the column on open), edited as an amount plus a MiB/GiB pair on the per-row form the panel already had, and served to every registered app over /family as limit_bytes beside key, name and url (null when unstated, the sibling's own default standing in its place). A register refresh never touches the cap, the way it never touches the name; owner and client_id stay unserialized; and the family shape test now pins the four public keys with null and stated cases instead of the three it grew out of.Ahmet Kaan Gümüş · 355890cBrowse files
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.
Services and clients merge into one admin sectionAhmet Kaan Gümüş · b163bda
Services and clients merge into one admin section As concepts they were one thing wearing two tables: the family wordmarks and the relying-party credentials that sign in as them. services gains client_id (migration-guarded ALTER over the owner precedent): POST /family/register stamps the client id it authenticated beside the row — insert and refresh alike — so the panel can join the wordmark to its credential; im's own boot row stays NULL, the IdP is not its own client. Existing rows heal the next time their app re-registers; no code backfill. register grew the client_id parameter (register_self passes None), and the Service struct carries the field without serializing it — /family's wire shape is untouched. The panel's Services section is now the merged table: key/name/address half, client id/redirect URIs/registered half, Rotate/Revoke on any client-bearing row (linked or stray), wordmark controls where they apply, the dash where a half is missing, and both add lines — a service and a client — under the table. section=clients lands there too, so the old address keeps working; the separate Clients section and its nav tab are gone. The landing's services home and /family readers are untouched. Tests: the register stamp (append, claim, refresh) at the store level, the route stamp across two registers, and the merged section's three row shapes — linked, credential-only, client-less — plus the alias. Browser-verified on a scratch server: section renders, a client made in the panel links to its service row after a real /family/register curl, and the confirm pop still overlays without growing scroll area. cargo test -p im-core (63) and -p im-web (37) green; 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
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
the siblings are spelled as they are named: iz and in, lowercase, in the directory module's comment — the brand is lowercase everywhere from now onAhmet Kaan Gümüş · 474a6f1Browse files
the family maintains its own addresses: services rows carry an owner, im writes its own row from issuer on every boot, and a sibling writes its own over the new POST /family/register behind the same client pair as GET /family — a key nobody holds is appended or claimed keeping the admin's name, the same app's next boot moves the address only, another app's key is a 409 — while the admin panel keeps names and order but can neither remove nor re-point a row an app keeps, since the next boot would undo it; the seed stays first-boot-only and the toml comment says soAhmet Kaan Gümüş · e759615
the family maintains its own addresses: services rows carry an owner, im writes its own row from issuer on every boot, and a sibling writes its own over the new POST /family/register behind the same client pair as GET /family — a key nobody holds is appended or claimed keeping the admin's name, the same app's next boot moves the address only, another app's key is a 409 — while the admin panel keeps names and order but can neither remove nor re-point a row an app keeps, since the next boot would undo it; the seed stays first-boot-only and the toml comment says so Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE
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 router tests stop needing a bundler the checkout never ran: the new landing assertions load a real asset bundle, which a dev machine has under target/debug/assets but a fresh CI checkout does not — the deploy bundles only after Test, so every page-rendering test panicked on the load; the setup now falls back to a one-entry manifest written beside the stylesheet build.rs already compiled, keyed by the layout's own asset! declaration (the id folds the declaring file in, so a fresh declaration here would catalog a different id than any page resolves), one temp dir per setup so concurrent tests never rewrite one manifest under each otherAhmet Kaan Gümüş · 0c0ea32Browse files
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