<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/routes/users.ts, branch HEAD</title>
<subtitle>coinos server — legacy coinos.io backend (Lightning, on-chain, Liquid)</subtitle>
<id>https://git.coinos.io/coinos-server.git/atom?h=HEAD</id>
<link rel='self' href='https://git.coinos.io/coinos-server.git/atom?h=HEAD'/>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/'/>
<updated>2026-12-05T00:24:25Z</updated>
<entry>
<title>Admin only from Adam's addresses: the admin account's sessions and the admin password are refused from anywhere else.</title>
<updated>2026-12-05T00:24:25Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-05T00:24:25Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=d1db874a6e3c3c488331f3117f41b48480354f4e'/>
<id>urn:sha1:d1db874a6e3c3c488331f3117f41b48480354f4e</id>
<content type='text'>
After the 2026-12-04 desk breach the JWT secret was kept, so a copied or forged admin session must be useless off Adam's networks. config.adminIps lists exact addresses and IPv4 ranges; a request is judged by its Cloudflare client address (the app is only reachable through the tunnel and Caddy), and Tor pages never qualify. A global preHandler (after each route's auth) answers 403 to an admin session from elsewhere; the master-password login and freeze only accept adminpass from an allowed address. Unset or empty adminIps keeps the old behaviour.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
</content>
</entry>
<entry>
<title>auth: lock PIN checks after ten wrong PINs in an hour</title>
<updated>2026-12-02T20:45:56Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-02T20:45:56Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=c3e2e37e9b0186814a5d9cc04b9c728427e4f0cd'/>
<id>urn:sha1:c3e2e37e9b0186814a5d9cc04b9c728427e4f0cd</id>
<content type='text'>
Every PIN check answered right or wrong with no per-account limit (POST
/pin, the sends that require a PIN, and the settings update), so anyone
holding a stolen session could try every 6-digit PIN from rotating IPs.
checkPin() now counts wrong PINs per account in pinfail:&lt;id&gt;; after ten in
an hour every PIN check fails, the right PIN included, until the hour is
up. A missing PIN doesn't count, and the right PIN clears the count.
POST /pin answers 429 while locked.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SSfVopM1ZzXKZmLYU
</content>
</entry>
<entry>
<title>users: unlink an anon account's pubkey only after the signature checks out</title>
<updated>2026-12-02T20:45:51Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-02T20:45:51Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=74939c517b51a08e88106e10b93aafc9988cdb98'/>
<id>urn:sha1:74939c517b51a08e88106e10b93aafc9988cdb98</id>
<content type='text'>
Updating your pubkey to one held by an anonymous account deleted that
account's user:&lt;pubkey&gt; pointer before the signed challenge was verified,
so a request with a bad signature still detached the key from its account.
Do the unlink after verification succeeds.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SSfVopM1ZzXKZmLYU
</content>
</entry>
<entry>
<title>register: cap account creation over Tor at five an hour</title>
<updated>2026-12-02T20:45:44Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-02T20:45:44Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=5b7881f3195d9c1479cfffc207014540a9db4d9a'/>
<id>urn:sha1:5b7881f3195d9c1479cfffc207014540a9db4d9a</id>
<content type='text'>
Onion clients all arrive from the Tor gateway's address, so the per-IP and
per-range signup caps either let them create unlimited accounts or would
count unrelated internal traffic. Mark requests that came through Tor
(including ones the UI's server-side rendering relays, which forward the
client address in cf-connecting-ip) with req.isTor, and give them one
shared quota of five new accounts an hour for /register and first-time
nostr logins. The recaptcha bypass for onion users now uses the same flag
instead of trusting the Host header.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SSfVopM1ZzXKZmLYU
</content>
</entry>
<entry>
<title>users: stamp v3migrated when an account hands its name to v3</title>
<updated>2026-12-02T17:40:45Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-02T17:40:45Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=796999cb8a6fc7abbfb9dc2643e372795fed9882'/>
<id>urn:sha1:796999cb8a6fc7abbfb9dc2643e372795fed9882</id>
<content type='text'>
`migrated` has been set on every new account since 2023, so it can't tell
the names registrar whether an account actually handed its name over.
When the account's own session posts the hand-off, also record a
server-set `v3migrated` timestamp, and include it in the public user
fields so the registrar can require a fresh one before granting the name.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SSfVopM1ZzXKZmLYU
</content>
</entry>
<entry>
<title>remove the Shopify webhook integration; add a migration kill switch</title>
<updated>2026-11-25T16:25:18Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-25T16:25:18Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=e0ac891b4c3275b5bb228fd53b507d1c61ff88ea'/>
<id>urn:sha1:e0ac891b4c3275b5bb228fd53b507d1c61ff88ea</id>
<content type='text'>
Drop the /shopify route and the shopify user fields. POST /user with
`migrated` fails while migrate:disabled is set, which stops the UI
migration hand-off before the registrar grant is issued.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SEnsbshZrUDtTsxAX
</content>
</entry>
<entry>
<title>login: tell the client when an account's password was reset</title>
<updated>2026-11-04T21:31:51Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-04T21:31:51Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=c0a0f5c1ac6bbcfddc5ce15800483f1e2d7226a5'/>
<id>urn:sha1:c0a0f5c1ac6bbcfddc5ce15800483f1e2d7226a5</id>
<content type='text'>
A rekeyed account holds the literal "reset" instead of a hash, so no
password can match. Return "account reset" so the client can send the
owner to support. The check runs after the captcha and the per-IP
failure cap, and counts as a failure.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>self-delete: use the full delall sweep, require the PIN</title>
<updated>2026-11-04T21:31:20Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-04T21:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=3e98c1b1026be994350741d2adbc63472d2a9770'/>
<id>urn:sha1:3e98c1b1026be994350741d2adbc63472d2a9770</id>
<content type='text'>
POST /delete now runs lib/deluser, the same sweep as scripts/delall.ts:
it also disables the account's bolt12 offers on the node, removes the
invoice pointer keys (invoice:&lt;hash|text|offer_id&gt;), covers sub-account
invoices and deletes from the archive too. Offers are disabled before any
key is deleted, so an unreachable node aborts with the account intact.
Accounts with a PIN must now send it.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>users: ignore pubkey on signup, revoke a rekeyed account's nostr key</title>
<updated>2026-11-02T20:19:16Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-02T20:19:16Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=10218ae86b464b8e3d29c27513eb5cc0554d044b'/>
<id>urn:sha1:10218ae86b464b8e3d29c27513eb5cc0554d044b</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6VN9xvnX1cgvV6hrUV
</content>
</entry>
<entry>
<title>apps: require a hex NWC pubkey and return only public fields for payment users</title>
<updated>2026-10-29T23:40:36Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-10-29T23:40:23Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=9c7d26e0312b7e133801fe9a512e31908c2b29da'/>
<id>urn:sha1:9c7d26e0312b7e133801fe9a512e31908c2b29da</id>
<content type='text'>
The app pubkey names both the app record and its payment list, so a
non-key value could point a connection at another account's payments.
Reject anything but a 64-character hex key on create and lookup, and
trim the user attached to each payment to the public profile fields.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
