forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 08994cc7ec0b5209abc4be71e9b02cc4ed00df3f

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-10

flyout tests no longer 500 CI: the GET / path needs a topcoat bundle, so the marks HTML is pinned without a router.Ahmet Kaan Gümüş · 3bc2d00
flyout tests no longer 500 CI: the GET / path needs a topcoat bundle, so the marks HTML is pinned without a router.

cargo test --workspace on GitHub has no asset bundle; the two new landing GETs panicked in topcoat-asset and rolled the dots commit back off the box. Guard those GETs like the other admin HTML tests, and keep a pure trio_marks assertion that runs either way.
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

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.
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.
Confirm pops overlay the page instead of scrolling itAhmet Kaan Gümüş · 1abf241
Confirm pops overlay the page instead of scrolling it

Opening a Rotate/Revoke confirm grew the page: the pop was absolutely
anchored under its button, inside .admin-table-wrap — a scroll container
since it takes the tables' sideways scroll, and a non-visible x-axis
forces the y-axis to auto, so the pop extended that scroll area (the
long page thumb) instead of overlaying the screen.

Port iz's delete-confirm model: the open pop is position:fixed and
viewport-centered, which escapes every overflow ancestor, reads as the
page's one dialog, and is row-agnostic — the first row's pop and the
last row's pop land identically at any width. The im pop keeps its own
compact box and flat shadow. Verified in a browser at 900px and 1400px,
first and last rows: documentElement scrollWidth == clientWidth and
scrollHeight == clientHeight while the pop is open, pop fully inside
the viewport, Revoke unobscured.
Clients table fits its card; the show-once banner survives live ticksAhmet Kaan Gümüş · 01ad124
Clients table fits its card; the show-once banner survives live ticks

Two live-panel defects, both reported at a 900px-ish viewport:

The clients table scrolled sideways and cut the Revoke button off —
the client id and redirect URIs are long mono strings that refused to
wrap. Admin tables now let mono cells wrap inside their columns (the
sessions fold's model for user-agent strings), and the clients table's
registered date holds its line while its neighbors take the wrap.

The show-once banner vanished within a breath: the create's own event
tick scheduled the panel's in-place refresh, which re-fetched the
shown URL after the shelf had handed the pair over — the morph wiped
the banner it was still displaying. __imRefresh now holds while an
auth-secret banner stands in the DOM; explicit navigation and refresh
remain the ways the banner leaves, exactly as before. The banner
render itself is now router-tested where the asset bundle is built
(first render shows the pair, the replayed URL and a forged ticket
show none).
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

im-client: feature-gate the OIDC half (default on); directory SDK always buildsAhmet Kaan Gümüş · f7b2081
im-client: feature-gate the OIDC half (default on); directory SDK always builds

A consumer binary that speaks OIDC through its own client crate linked
im-client's inventory-registered /auth routes alongside its own and
panicked at router build on the duplicate GET /auth/logout. The OIDC
half (Config, ImClient, mount, current_user, User, the /auth routes,
the token and JWKS machinery, and the demo example) now lives behind
the `oidc` feature - on by default, so greenfield consumers get the
full mount unchanged. `default-features = false` compiles only the
directory SDK (DirectoryClient, the SSE parser, spawn_sync) and none
of the routes. Error/Result stay ungated: the directory half is their
reader. Crate docs state the two shapes and when to turn the feature
off.
Verify-squared: drop dead test assignment; end-to-end profile-frame testsAhmet Kaan Gümüş · 3d75261
Verify-squared: drop dead test assignment; end-to-end profile-frame tests

- im-client: the split-frame parser test initialized 'events' before
  the loop reassigned it — a value-assigned-never-read warning in the
  test profile. The initialization is gone.
- im-web: two router-level tests pin the emit path end to end. They
  open GET /directory/live through the router, read the body's data
  stream frame by frame (topcoat Body::into_data_stream, Box-pinned),
  drive POST /api/profile_photo and POST /api/delete_profile_photo
  through the router with the session cookie, and assert the
  event:profile frame arrives carrying sub and photo_version:2 —
  upload and removal halves both.
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

2026-09-05

2026-09-04

feat(oidc): apps fetch photos with client credentialsAhmet Kaan Gümüş · 569b89d
feat(oidc): apps fetch photos with client credentials

GET /photo/{user_id} answered only to a signed-in session, so a relying
party's pages could never show a person's photo: an <img> from another
origin carries no SameSite=Lax cookie. Registered apps now authenticate
with Authorization: Basic base64(client_id:client_secret), checked
against the client registry. Sessions still win when both arrive, and
every failure — bad credentials, unknown client, unknown person,
missing photo — is the same 404.