feat: importer IMVU accounts and settings from the console
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]>
This commit is contained in:
1 parent
d716aabbd2
commit
dcc39d82ab
16 files changed
+5505
-9
No files matched your search
+18
-2
@@ -149,10 +149,15 @@ passwords never reach the hub readable, and are kept only by the importer.
|
||||
importer confirms it has it (or after 7 days).
|
||||
- Several accounts, in an order the team sets: the importer uses the first that signs in and moves to the next when
|
||||
one fails. It reports each account's state (`ok`, `sign_in_failed`, `needs_password`, plus whether IMVU shows it
|
||||
Access Pass) with `POST /api/v1/importer/accounts/:id`, shown on the console.
|
||||
Access Pass) with `POST /api/v1/importer/accounts/:id`, shown on the console. Before that an account is `waiting`
|
||||
(sealed, not yet with the importer) or `received`. At most 10 accounts.
|
||||
- If the importer's key pair changes (a new install), passwords sealed for the old key can't be read: those
|
||||
accounts show "needs password" until re-entered.
|
||||
- Removing an account tells the importer to forget it. Adding and removing are audited (`catalog.importer_account`).
|
||||
- Removing an account tells the importer to forget it. Adding, new passwords and removing are audited
|
||||
(`catalog.importer_account`), as are settings (`catalog.importer_settings`) and a new importer key pair
|
||||
(`catalog.importer_hello`).
|
||||
- Built (2026-11-07): all of the above on the hub and the console, except the importer's report of AP products' info
|
||||
(with the importer).
|
||||
- What the importer sees with an account (creator, name, rating of AP products) it reports to the hub with the job
|
||||
(`POST /api/v1/importer/jobs/:id {product: {creatorId, name, rating}}`), trusted from that catalog's importer
|
||||
only, for products IMVU hides from the hub.
|
||||
@@ -173,6 +178,17 @@ passwords never reach the hub readable, and are kept only by the importer.
|
||||
| `POST /api/v1/catalogs/:id/importer` | `{enabled?}` (`import:run`; turning on returns the importer `key`, shown once) and `{paused?}` (`import:pause`) |
|
||||
| `POST /api/v1/catalogs/:id/importer/key` | (`import:run`) → `{key}`: a new importer key |
|
||||
| `POST /api/v1/catalogs/:id/importer/jobs/:job/retry` | (`import:run`) a failed or done job queued again |
|
||||
| `GET /api/v1/catalogs/:id/importer/imvu-account?username=` | (`import:run`) `{imvuId, username, picture, accessPass, ageVerified}`: IMVU's public info, for the confirmation dialog |
|
||||
| `POST /api/v1/catalogs/:id/importer/accounts` | (`import:run`) `{imvuId, sealed, fingerprint}` → 201 `{account}`. `fingerprint` must be the importer's key's (409 `importer_key_changed`; 409 `no_importer` before it has said hello); one per IMVU account (409 `exists`), at most 10. |
|
||||
| `PUT /api/v1/catalogs/:id/importer/accounts/:account/password` | (`import:run`) `{sealed, fingerprint}`: a new password |
|
||||
| `POST /api/v1/catalogs/:id/importer/accounts/:account/move` | (`import:run`) `{direction: "up" \| "down"}` |
|
||||
| `DELETE /api/v1/catalogs/:id/importer/accounts/:account` | (`import:run`) |
|
||||
| `POST /api/v1/catalogs/:id/importer/settings` | (`import:run`) `{rate (0.2-10 requests a second to IMVU), concurrency (1-8 jobs at once)}` |
|
||||
|
||||
`GET /api/v1/catalogs/:id/importer` also has `program: {version, seenAt, fingerprint, publicKey}` (`publicKey` only
|
||||
with `import:run`), `settings`, and `accounts: [{id, imvuId, username, state, stateMessage, stateAt, accessPass,
|
||||
ageVerified}]` (state: `waiting` for the importer, `received`, `ok`, `sign_in_failed`, `needs_password`). Never a
|
||||
password, sealed or not.
|
||||
|
||||
For importers (`Authorization: Importer <catalog ID>:<key>`) in products.md.
|
||||
|
||||
|
||||
@@ -85,6 +85,9 @@ catalog's). Only approved catalogs with imports on and not paused.
|
||||
| `POST /api/v1/importer/jobs/claim` | `{limit}` (1-20) → `{jobs: [{id, kind, imvuProduct, lastRevision}]}`; claimed jobs not reported within 30 minutes go back to the queue |
|
||||
| `POST /api/v1/importer/jobs/:id/token` | `{imvuRevision}` → `{token, url}`: a `t5de-import` token and the catalog's upload URL |
|
||||
| `POST /api/v1/importer/jobs/:id` | `{status: "done" \| "failed" \| "unchanged", imvuRevision?, reason?}` |
|
||||
| `POST /api/v1/importer/hello` | `{version, publicKey}` (base64 SPKI, RSA 3072 to 4096 bits) → the config, as below. Sent at start. A new key means passwords sealed for the old one can't be read: the catalog's accounts then need their passwords again (imports.md "IMVU accounts"). |
|
||||
| `GET /api/v1/importer/config` | `{paused, settings: {rate, concurrency}, fingerprint, accounts: [{id, imvuId, username, sealed}]}`, accounts in the order to try them. `sealed` (or null): `{imvuId, password}` as JSON, RSA-OAEP (SHA-256) for the importer's key, base64; check `imvuId`. Polled every minute; accounts no longer listed are forgotten. |
|
||||
| `POST /api/v1/importer/accounts/:id` | `{received?, state? ("ok" \| "sign_in_failed" \| "needs_password"), accessPass?, message?}`: `received` once the password is stored (the hub drops its sealed copy), then how signing in went |
|
||||
|
||||
### For people (website, signed in; the proxy with its bearer token)
|
||||
|
||||
|
||||
Reference in new issue
Block a user