<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/routes/payments.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>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>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>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>
<entry>
<title>confirm: accept only canonical txids from the node notify scripts</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=0f3cb69da812dc81b2a5d939b1eebf1146ee2369'/>
<id>urn:sha1:0f3cb69da812dc81b2a5d939b1eebf1146ee2369</id>
<content type='text'>
Lowercase and validate the txid so a mixed-case txid cannot slip past the
case-sensitive dedupe keys, refuse requests that came through Cloudflare or
the onion, and require the TCP peer to be a node container or loopback so
internal relays cannot reach it either. Validate type and wallet.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6SEnsbshZrUDtTsxAX
</content>
</entry>
<entry>
<title>lnurl: fetch user-supplied URLs through the SSRF guard, relay only protocol fields</title>
<updated>2026-11-13T23:11:02Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-13T23:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=b8b409910f71976959135b336b409c4923cf4c87'/>
<id>urn:sha1:b8b409910f71976959135b336b409c4923cf4c87</id>
<content type='text'>
Lightning address sends (pay() and POST /send/&lt;lnaddr&gt;) now validate the
name and domain and fetch through safeGot instead of plain got. Zap receipt
relays from the zap request must resolve to public hosts. The LNURL decode
and proxy routes return only LNURL protocol fields instead of whatever JSON
the upstream sent, and the proxy logs failures rate-limited with a generic
error to the client. Also blocks the 172.42.0.0/16 docker range.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>payments: credit each on-chain output once and require uuid invoice ids</title>
<updated>2026-11-02T19:54:10Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-11-02T19:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=8fbc6ea19c9f4959799f3d72b32e2b8661596ea8'/>
<id>urn:sha1:8fbc6ea19c9f4959799f3d72b32e2b8661596ea8</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>payments: lowercase payreq before looking up our own invoices</title>
<updated>2026-10-07T04:12:19Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-10-07T04:12:19Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=f53e70ed98eb723479b4276c5b621b599fe570a0'/>
<id>urn:sha1:f53e70ed98eb723479b4276c5b621b599fe570a0</id>
<content type='text'>
An uppercase bolt11 for a coinos invoice missed the getInvoice lookup, so
it was paid over lightning to our own node instead of internally. The
listener then saw the sender's payment pointer for that bolt11 and skipped
crediting the recipient. Normalize in POST /payments and nwc pay_invoice.

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