forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/in-web/src/main.rsClear filter

2026-09-25

in: read the client address from client_ipAhmet Kaan Gümüş · 5991bfb
in: read the client address from client_ip

topcoat 0.9 reports the client through client_ip once one proxy hop is trusted. The old helper read the first x-forwarded-for hop from any peer, which a client can spoof.

2026-09-11

in: live session-revocation logoutAhmet Kaan Gümüş · dcf889a
in: live session-revocation logout

- Topic::Revoked(user_id) on the store bus; /api/live emits it to the killed
  user's own connections (may_hear own-id) then ends the stream
- set_user_disabled announces Admin+Profile+Revoked (own admin path included)
- identity_sync: directory revoked{sub} -> Profile announce (refetch-morph;
  revoke-except survivors never false-kicked); disabled mirrored both ways
- im-client pin -> 5efbd60 (DirectoryEvent::Revoked, member.disabled)
- client: revoked frame or /api/me 401 on SSE error -> hard navigate to /
- new GET /api/me (204/401, 500 on store failure)

2026-09-09

the media path stops transcoding: the preview-derivative pipeline is gone — a video serves its stored bytes under its honest sniffed mime everywhere, and a browser that cannot decode them meets a house-styled error instead of a silent stall. The player script now names two failure shapes dead: the media element's own error (which does not bubble, and may predate the wiring), and the silent one a demuxer-that-parses-but-cannot-decode never leaves — not even metadata, five seconds of still-loading is that stall, the exact shape the derivative pipeline was built to fix (chromium demuxes mpeg2-in-mp4 and stalls forever without erroring; firefox did the same to aac-in-webm). The note rides both player layouts on the viewer and the public card, MediaWontPlay in English and Turkish, and downloads stay the original bytes byte for byte; previews/<id> is deleted from every purge path, swept nowhere at boot anymore, a one-time remove_dir_all at store-open clears what older builds left, and the mp4 box-walk family only the pipeline used died with it. The share modal's people picker wears the app's own language now: a filter field (which doubles as the no-script typed-address fallback) over the Everyone row and the candidates, the row is the control — the checkbox hides, a checked row tints like every other selected row and turns up its check glyph, and twenty people are one substring away; add_share skips the blank email pair a checkbox-only submit carries beside the checked values, and the script benches the filter for exactly the submit event so half-typed text never posts. Verified live in a real browser against a seeded server: both error states machine-captured, filter/selection/everyone/no-match driven by hand, a real two-person submit granting both with the remove rows to show for it, and the bench's disable-inside-the-submit-event proven from the page's own world. Rides along the Connection card's last-pass http assertions found uncommitted in the tree.Ahmet Kaan Gümüş · ad66f40Browse files

2026-09-08

the app files itself under base_url alone: the bound address was the fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; an empty base_url now skips the registration with the one boot-time line it already hadAhmet Kaan Gümüş · df8c50a
the app files itself under base_url alone: the bound address was the fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; an empty base_url now skips the registration with the one boot-time line it already had

Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE
the app files itself in im's family: before every family beat the client posts {in, Files, public origin} to im's POST /family/register with the client pair, so im lists this app at its real address without an admin typing it; an empty public address logs once at boot and skips only the registration, and a refusal or an im that does not register yet costs one log line while the mirror fetch still runsAhmet Kaan Gümüş · 922246b
the app files itself in im's family: before every family beat the client posts {in, Files, public origin} to im's POST /family/register with the client pair, so im lists this app at its real address without an admin typing it; an empty public address logs once at boot and skips only the registration, and a refusal or an im that does not register yet costs one log line while the mirror fetch still runs

Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE

2026-09-07

feat(web): the suite in the topbar, and a logout that ends the central sessionAhmet Kaan Gümüş · dbbff0d
feat(web): the suite in the topbar, and a logout that ends the central session

[[services]] entries render as a switcher beside the page nav (the app
you are in marked like the nav marks itself); no entries, no switcher.
Clearing the local cookie now walks the browser on to im's /logout with
this app's public address as back, so the central session ends too.
in-client grows logout_back for that. Carries the dev values in
config/in.toml (loopback issuer, in-dev-capture client, dev secret,
resolved storage line) and the [storage.r2] doc block from the storage
slice.
feat(storage): file bytes behind a blobs trait — the local tree or an r2 bucketAhmet Kaan Gümüş · a311758
feat(storage): file bytes behind a blobs trait — the local tree or an r2 bucket

Every files/ and thumbs/ byte path in TursoStore routes through Blobs
(put/adopt/get/span/delete/list). LocalBlobs keeps today's tree as the
default, byte for byte; R2Blobs (object_store) holds the same layout in
a Cloudflare R2 bucket, selected by an optional [storage.r2] table —
absent means local, and the completion machinery never writes one.
Upload staging stays local either way: the sniffer and the thumbnailer
need a real file, and adopt() places the assembled bytes — rename
locally, streamed 8 MiB multipart to the bucket. Ordered as always:
blob before row, delete only after the row is gone, orphans swept at
boot. r2_* tests in tests/store.rs run the flows against an in-process
s3s server.
feat(share): the address stays reachable, shared objects wear their markAhmet Kaan Gümüş · a6fa637
feat(share): the address stays reachable, shared objects wear their mark

The share modal's live-link row stopped masking: creation now seals the
minted token with the in.key (the same XChaCha20 envelope the session
cookies use) onto a share_token:{id} setting row — the database still
carries no plaintext token, so a db copy alone yields links nobody can
re-view — and the modal re-derives the full address from it: readonly
input, Copy button, the row's own revoke beside. The settings Share
links panel wears the same row markup, so every link is seeable and
copyable from there too. Links minted before the sealing (or after a
lost key) keep the masked value with a note to revoke and re-mint; a
revoke deletes the sealed row as part of revoking, and a failed delete
reports the revoke refused so a retry finishes it.

The drive marks what it shares: a Shared chip rides the name of every
file and folder with a live link or a person grant
(Store::shared_target_ids decides liveness the one way
resolve_share_link does), search hits included, trash untouched.
feat(web): the public half joins the house — shell, player, domains, fast boots, phonesAhmet Kaan Gümüş · 16e8c67
feat(web): the public half joins the house — shell, player, domains, fast boots, phones

The /s pages leave the bare-fragment era: every answer (card, folder,
gate, dead link) now wears document_shell — the exact head root_layout
pairs around pages, extracted once and delegated to — so a stranger's
first sight of In is the app, not unstyled markup. The card's media
kinds play through the house player itself: files.rs gains one
media_player (markup + bar + script) that the signed-in viewer and the
public card render verbatim, fed by a new ?media=1 stream — inline,
range-capable, gated by password and liveness like every other answer,
never counted as a download, granted to view-only links the way the
signed-in viewer grants preview.

Share links now say the deployment's name: base_url in config/in.toml
(mirroring iz's key) feeds public_origin(), which only the share URLs
and copy-once banners read — redirect_uri and the bind never move.

Restarts stop walking the disk before answering: open() keeps only the
structural work, and the boot sweeps (expired uploads, orphaned files,
trash purge) run as a background task after bind, with the orphan
sweep decided under BEGIN IMMEDIATE so a racing upload can never lose
its bytes — the deletion set is unchanged, only its timing moved.

And the whole thing now fits a phone: the media bar wraps with a
full-width seek, the share modal's rows fold, public cards lose their
desktop air, titles wrap — all inside the existing 620px breakpoint,
desktop untouched.

2026-09-06

feat(upload): quota is the only size limit; interrupted uploads resumeAhmet Kaan Gümüş · 3cd7a8e
feat(upload): quota is the only size limit; interrupted uploads resume

The per-file upload ceiling is gone — field, config key, instance
setting, refusals and all: an account may push one file as large as
its free quota, which the store already enforces at session start and
again at finish. The admin settings panel loses the upload-limit row,
config/in.toml the max_upload_bytes key (an install still carrying it
just reports it among the ignored keys).

Chunked uploads now resume: GET /api/upload/{id} answers the session
with the indexes already staged (read off the chunk files, like the
received-byte count), and the drive script keeps the session id in
localStorage under the file's folder+name+size — a cut upload retried
with the same file skips what already landed. A chunk that meets a
network cut is retried in place with a cancel-interruptible backoff,
an expired session restarts the walk once against a fresh one, and a
refused finish keeps the key so the next pick resumes into another
finish. Cancel still aborts and drops the key.

2026-09-05

feat: upload progress, admin limits, viewer pages, unified lists, sort/filterAhmet Kaan Gümüş · e806d74
feat: upload progress, admin limits, viewer pages, unified lists, sort/filter

- upload: real progress bar for all uploads (XHR for small, per-chunk
  for big); page-wide drag-and-drop with drop overlay; persistent
  dismissable status cards that survive live swaps; failure cards name
  the reason; refused uploads no longer cry 'Upload complete'
- fix: /api/upload/* answered serde's {"Ok"/"Err"} while the UI read
  .ok/.err — chunked uploads (>8MiB) could never complete from a browser
- settings: admin-defined instance upload limit (DB > in.toml > 1GiB),
  enforced at /api/upload/start and multipart /files; BodyLimit demoted
  to memory guard
- files: /view/{id} viewer page (audio/video/pdf/text/image) with
  download gating; per-type icon chips instead of one glyph for all
- store: duplicate folder names allowed (create/rename/move/restore);
  file.download_count with range-aware counting; instance setting kv
- drive: row actions merged into one Options menu; rename form buttons
  align to the Options slot; rows show uploaded date, size, downloads
- trash/shared: single interleaved list each (public card too), aligned
  buttons, details; sort/kind/search toolbars on drive, trash, shared
  (iz-style GET forms, no-JS-safe)

2026-09-04

feat: drive storage with im OIDC login, sharing, quota, trash, thumbnailsAhmet Kaan Gümüş · 4118043
feat: drive storage with im OIDC login, sharing, quota, trash, thumbnails

Initial build of in, sibling of iz and im on the same stack (topcoat
0.6.2 server-rendered UI, turso metadata store, file bytes on the
filesystem).

- in-core: folder tree, files, share links + per-user grants
  (transitive, most-permissive-wins), per-user quota, trash with
  purge horizon, chunked upload sessions, image + ffmpeg-gated video
  thumbnails, search, reconcile/migrations discipline from iz
- in-client: vendored im OIDC relying party (authorization code +
  PKCE, introspection per request), strict next validation, cookie
  kept on transient introspect failure
- in-web: drive browser, small + chunked upload with progress,
  Range-capable downloads, public /s/{token} share pages with
  previews, trash/search/settings surfaces, SSE live updates,
  En/Tr i18n, iz house style
- deploy workflow adapted from iz (dist profile, asset bundle guard,
  /healthz build-sha check)