<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/routes, branch master</title>
<subtitle>coinos server — legacy coinos.io backend (Lightning, on-chain, Liquid)</subtitle>
<id>https://git.coinos.io/coinos-server.git/atom?h=master</id>
<link rel='self' href='https://git.coinos.io/coinos-server.git/atom?h=master'/>
<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>Credit deposits to a retired hot wallet's addresses (legacyWallets).</title>
<updated>2026-12-04T21:49:12Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-04T21:49:12Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=dfe22eee4e698731c3e31420250bb158f2d4b2d5'/>
<id>urn:sha1:dfe22eee4e698731c3e31420250bb158f2d4b2d5</id>
<content type='text'>
2026-12-04: the bitcoin hot wallet's keys were stolen, so coinos moved to a new hot wallet. Users still pay the deposit addresses the old one handed out. With the old wallet loaded and named in config.bitcoin.legacyWallets, /confirm treats it like the hot wallet (credited by invoice address, not as an account wallet) and catchUp lists its receives too, posting its own wallet name. The coins themselves are swept to the new wallet by a host-side job.

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>rate limits: key per-account limits on the user, add them to on-chain sends</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=a07e326bc9dae4a3df02ce8f08cb4f71f094392e'/>
<id>urn:sha1:a07e326bc9dae4a3df02ce8f08cb4f71f094392e</id>
<content type='text'>
The token-keyed limits on /lightning/quote and GET /invoice/:id used the
first 50 characters of the Authorization header, which are the same for
every JWT, so all signed-in users shared one bucket. /lightning/quote now
limits per user id (checked after auth), and GET /invoice/:id per IP like
the other invoice routes. /bitcoin/fee and /bitcoin/send get a per-user
limit of 10 a minute, and repeated fee-estimate failures log once per user
per 10 minutes.

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>funds: say "Funds have been discontinued" when refusing a fund action</title>
<updated>2026-11-25T22:19:50Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-25T22:19:50Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=f891de2e288d4af734f7ef20b81e6f96705a14bd'/>
<id>urn:sha1:f891de2e288d4af734f7ef20b81e6f96705a14bd</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6W9CsdxmhFrfaKNVHU
</content>
</entry>
<entry>
<title>funds: include archived and pre-rotation history in GET /fund/:id</title>
<updated>2026-11-25T22:11:52Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-25T22:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=699fcf7e5c2f17adcef730951ad013ec3f7d4277'/>
<id>urn:sha1:699fcf7e5c2f17adcef730951ad013ec3f7d4277</id>
<content type='text'>
A fund's older payments live in the archive, and funds whose id was
rotated keep that history under their previous id, so the fund page only
showed the most recent entries. Merge the live and archived lists for both
ids (fund:rotatedFrom:&lt;id&gt; maps a rotated fund back to its previous id) and
sort newest first.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6W9CsdxmhFrfaKNVHU
</content>
</entry>
<entry>
<title>funds: serve fund history to anyone; close manager changes</title>
<updated>2026-11-25T20:51:58Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-25T20:51:58Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=e171361854d1e285a76696dcf3086650e02ed8d3'/>
<id>urn:sha1:e171361854d1e285a76696dcf3086650e02ed8d3</id>
<content type='text'>
Funds are closed and every value-moving route refuses, so a rotated
fund's old id now resolves to its history for any viewer, read-only.
Adding and removing managers is refused as well, so a fund without
managers can't be claimed.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6W9CsdxmhFrfaKNVHU
</content>
</entry>
</feed>
