Phase 4b, first part (docs/imports.md "IMVU accounts"): the catalog's importer program and the IMVU accounts it signs in with, all set from the console. Passwords never reach the hub readable.
How passwords stay off the hub
On start, the importer sends its RSA public key (POST /api/v1/importer/hello; 3072 to 4096 bits, SPKI). The console shows the key's fingerprint, the importer's version, and when it was last heard from.
Adding an account: the console looks the username up on IMVU and asks for confirmation in a dialog. It shows the avatar, name, ID, Access Pass and age verification, warns when there's no Access Pass, and names the importer key the password will be sealed for.
The browser seals {imvuId, password} with RSA-OAEP (SHA-256, WebCrypto) for that key. The password field has no name, so it never goes through a form or server action; only the sealed copy does.
The hub stores the sealed copy until the importer reports received (then deletes it), or for 7 days at most. If the importer's key changes (a new install), every account shows "needs password". A seal made for an old key is refused (409 importer_key_changed).
The console never shows a password, sealed or not.
Accounts and settings
Up to 10 accounts, in an order the team sets (Up and Down); the importer tries them in turn. Each shows its state: waiting for the importer, not tried yet, signed in, sign-in failed, or needs password. The importer reports these with POST /api/v1/importer/accounts/:id.
Each account can get a new password through the same dialog, or be removed.
Settings: requests a second to IMVU (0.2 to 10) and jobs at once (1 to 8), in GET /api/v1/importer/config (polled every minute).
Everything needs import:run, and changes are audited: catalog.importer_account, catalog.importer_settings and catalog.importer_hello (a new key pair).
New: components/ui/dialog.tsx, written by hand on @base-ui/react's Dialog in the shadcn base-nova style; the shadcn registry couldn't be reached from the dev machine.
Checks
Tests: a new test in test/imports.test.ts covers hello, lookup, adding (with bad seals, a wrong fingerprint and duplicates), unsealing with the importer's private key, received, order, settings bounds, a new key, re-entering a password, removal, the audit log, and that the console never shows a seal. All 60 API tests pass, and type checks pass.
In a real browser: headless Edge on the scratch hub, with a stand-in importer holding a real key pair:
The dialog showed the account; the browser's request didn't contain the password.
The importer unsealed it, and the imvuId inside matched.
Adding a second account (with Access Pass), re-entering a password, reordering and saving settings all reached the importer's config.
IMVU was unreachable from the dev machine during this (the lookup correctly said "IMVU didn't answer"), so the scratch API answered IMVU's user lookups locally, from public info fetched earlier.
Not in this PR: the importer reporting what it sees for AP products comes with the importer itself.
Phase 4b, first part (docs/imports.md "IMVU accounts"): the catalog's importer program and the IMVU accounts it signs in with, all set from the console. Passwords never reach the hub readable.
**How passwords stay off the hub**
- On start, the importer sends its RSA public key (`POST /api/v1/importer/hello`; 3072 to 4096 bits, SPKI). The console shows the key's fingerprint, the importer's version, and when it was last heard from.
- Adding an account: the console looks the username up on IMVU and asks for confirmation in a dialog. It shows the avatar, name, ID, Access Pass and age verification, warns when there's no Access Pass, and names the importer key the password will be sealed for.
- The browser seals `{imvuId, password}` with RSA-OAEP (SHA-256, WebCrypto) for that key. The password field has no `name`, so it never goes through a form or server action; only the sealed copy does.
- The hub stores the sealed copy until the importer reports `received` (then deletes it), or for 7 days at most. If the importer's key changes (a new install), every account shows "needs password". A seal made for an old key is refused (409 `importer_key_changed`).
- The console never shows a password, sealed or not.
**Accounts and settings**
- Up to 10 accounts, in an order the team sets (Up and Down); the importer tries them in turn. Each shows its state: waiting for the importer, not tried yet, signed in, sign-in failed, or needs password. The importer reports these with `POST /api/v1/importer/accounts/:id`.
- Each account can get a new password through the same dialog, or be removed.
- Settings: requests a second to IMVU (0.2 to 10) and jobs at once (1 to 8), in `GET /api/v1/importer/config` (polled every minute).
- Everything needs `import:run`, and changes are audited: `catalog.importer_account`, `catalog.importer_settings` and `catalog.importer_hello` (a new key pair).
- New: `components/ui/dialog.tsx`, written by hand on `@base-ui/react`'s Dialog in the shadcn base-nova style; the shadcn registry couldn't be reached from the dev machine.
**Checks**
- **Tests:** a new test in `test/imports.test.ts` covers hello, lookup, adding (with bad seals, a wrong fingerprint and duplicates), unsealing with the importer's private key, `received`, order, settings bounds, a new key, re-entering a password, removal, the audit log, and that the console never shows a seal. All 60 API tests pass, and type checks pass.
- **In a real browser:** headless Edge on the scratch hub, with a stand-in importer holding a real key pair:
- The dialog showed the account; the browser's request didn't contain the password.
- The importer unsealed it, and the `imvuId` inside matched.
- Adding a second account (with Access Pass), re-entering a password, reordering and saving settings all reached the importer's config.
- IMVU was unreachable from the dev machine during this (the lookup correctly said "IMVU didn't answer"), so the scratch API answered IMVU's user lookups locally, from public info fetched earlier.
**Not in this PR:** the importer reporting what it sees for AP products comes with the importer itself.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The importer sends its RSA public key (POST /importer/hello); the console
looks IMVU accounts up, confirms them in a dialog, and seals each password
in the browser for that key. The hub keeps only the sealed copy, until the
importer confirms it has it. Accounts are tried in order; settings (rate,
jobs at once) come from the console too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dhkatz
merged commit e6a97be894 into main2026-11-07 19:00:01 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Phase 4b, first part (docs/imports.md "IMVU accounts"): the catalog's importer program and the IMVU accounts it signs in with, all set from the console. Passwords never reach the hub readable.
How passwords stay off the hub
POST /api/v1/importer/hello; 3072 to 4096 bits, SPKI). The console shows the key's fingerprint, the importer's version, and when it was last heard from.{imvuId, password}with RSA-OAEP (SHA-256, WebCrypto) for that key. The password field has noname, so it never goes through a form or server action; only the sealed copy does.received(then deletes it), or for 7 days at most. If the importer's key changes (a new install), every account shows "needs password". A seal made for an old key is refused (409importer_key_changed).Accounts and settings
POST /api/v1/importer/accounts/:id.GET /api/v1/importer/config(polled every minute).import:run, and changes are audited:catalog.importer_account,catalog.importer_settingsandcatalog.importer_hello(a new key pair).components/ui/dialog.tsx, written by hand on@base-ui/react's Dialog in the shadcn base-nova style; the shadcn registry couldn't be reached from the dev machine.Checks
test/imports.test.tscovers hello, lookup, adding (with bad seals, a wrong fingerprint and duplicates), unsealing with the importer's private key,received, order, settings bounds, a new key, re-entering a password, removal, the audit log, and that the console never shows a seal. All 60 API tests pass, and type checks pass.imvuIdinside matched.Not in this PR: the importer reporting what it sees for AP products comes with the importer itself.
🤖 Generated with Claude Code