forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/im-web/src/server.rsClear filter

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: 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.
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-05

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: 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.