Commits
2026-09-25
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-10
the family flyout carries the same health dots the admin table does.Ahmet Kaan Gümüş · 6557831
the family flyout carries the same health dots the admin table does. Each sibling mark probes /healthz concurrently; green while it answers ok, muted otherwise. The probe lives in one module. No new landing tab, no copy, no JS — hover/focus still opens the flyout.
/healthz names the build, the admin health tab reads the family, and pack/unpack carries every registered tree.Ahmet Kaan Gümüş · 30917a3
/healthz names the build, the admin health tab reads the family, and pack/unpack carries every registered tree. IM_BUILD_SHA bakes like iz/in so a stale process cannot answer a bare ok; Swap asserts ok $GITHUB_SHA and rolls back. Every deploy holds config toml/keys at 0600 and deletes editor debris (*.bak*, *.pre-*). GET /admin?section=health probes each services-table /healthz with a two-second timeout — read-only, self included, a fourth sibling appears on its own. im-web pack/unpack is data-driven from that table plus im (sqlite + wal/shm, config, key, storage); the archive is 0600; unpack refuses an existing db without --force.
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
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.
Admin panel: OIDC client management (create/rotate/revoke)Ahmet Kaan Gümüş · 6d3e6a7
Admin panel: OIDC client management (create/rotate/revoke) im-core: list_clients, rotate_client_secret, and revoke_client join create_client — revoke deletes the registry row with every refresh token and app session minted under it in one immediate transaction; user sign-in sessions stay. im-web: a Clients section in the admin panel — list, add (name + whitespace/comma-separated redirect URIs, as loose as the CLI), and per-row rotate/revoke as the confirm disclosures. Create and rotate answer the house 303 whose shown= ticket picks the fresh pair off a short-lived shelf for exactly one render: the secret never rides a URL, a log line, or the database in plaintext. Revoke reads back ok=client_revoked; unknown ids read no_such_client. Events log client_created/client_rotated/client_revoked with the admin as actor and the client name as detail. CLI: rotate-client and revoke-client arms alongside create-client, server-stopped as ever. Router tests cover the panel lifecycle (non-admin refusal, show-once ticket, old pair dies on rotate, revoke kills introspection) and core tests cover rotate/revoke/list at the store level.
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 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
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
2026-09-05
2026-09-04
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
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: 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.
fix: brand as Dizey, not IzlekLab — İzlek is an app, Dizey is the companyAhmet Kaan Gümüş · 2d7813aBrowse files
feat: promote/demote CLI for migrated users; invites refuse existing accountsAhmet Kaan Gümüş · bfb4aaf
feat: promote/demote CLI for migrated users; invites refuse existing accounts - im-web promote|demote <email>: the admin flag for accounts that already exist — the migration path's way in, since nobody migrated is admin - create_invite refuses an address with an account at creation time (was: failed at acceptance); the panel shows email_taken, the CLI says to use promote instead Verified: full workspace suite (34 tests) green.
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.