Commit Graph
72 Commits
Author SHA1 Message Date
MichilisandClaude Sonnet 5.5 7f49e422f4 Fix the low-severity audit findings
- price map: guard with a RWMutex (fatal concurrent map access)
- InvoiceStream: stop on client disconnect, unsubscribe once, cap streams per wallet
- join tickets: key the ticket event per joiner; enforce tickets that
  expired while the bot was down

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:22:52 +00:00
MichilisandClaude Sonnet 5.5 15b95d962b Refuse a banned user's invoice key and keep nsec and k1 out of logs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:19:43 +00:00
MichilisandClaude Sonnet 5.5 8b8b0fa369 Fix the three medium audit findings
- /group ticket del: only the chat creator may remove a group registration
- /node: always dial user-supplied node hosts through the netguard client;
  drop the https://127.0.0.1 prefix exemption
- /app/@{username}: accept only username characters, render the greeting as
  text, add basic security headers

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:18:41 +00:00
MichilisandClaude Fable 5.1 afd1050e57 Keep invoices, LNURLs, ecash tokens and node credentials out of the log
The message interceptor logged every private text at Info, which put
bolt11 invoices, LNURLs, Cashu tokens and '/node add lnd <host>
<macaroon>' into journald. The API middleware logged the submitted key
of banned users. Both are redacted now.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:41:39 +00:00
MichilisandClaude Fable 5.1 1a3815902a Keep the ban state when an old copy of a user is saved
UpdateUserRecord wrote every column of the user it was given, so saving
a copy taken before a ban (cached user, stored inline object, invoice
event) lifted the ban. The banned flag and the admin key now always come
from the database row and are left out of the save; only the new
UpdateUserBan changes them, and the admin API uses it.

Manual port of kravens/BitTipBot 05c0a4e and dfc8d13.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:34:56 +00:00
Kevin RavensbergandMichilis 34f2e562e2 Require a token for the admin API
The admin API (ban, unban, mutex, DALL-E toggles, pprof) had no authentication. Every request now needs 'Authorization: Bearer <bot.admin_api_token>'. Without a configured token all requests are rejected.

(cherry picked from commit 3fb544687d8cd8563f1e4e1720de1ef832653457)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:33:44 +00:00
gohumbleandGitHub d88b04afb9 update inputmode to decimal (ios keyboard) (#416) 2023-08-13 15:17:50 +02:00
callebtc 8dabb381ab fix: memo in api 2023-02-06 12:41:14 +01:00
gohumbleandGitHub 64055db1a5 sse fix (#422)
* fix sse

* close c
2022-10-06 14:18:29 +02:00
gohumbleandGitHub ec679d5e6b removed connection keep alive header (#421) 2022-10-06 09:48:23 +02:00
callebtc 32a5863b25 fix api lookup 2022-09-18 00:41:14 +03:00
gohumbleandGitHub 94ed7d4692 dalle admin api. Added configurable worker (#410) 2022-08-31 20:09:55 +02:00
callebtc 51ac159072 remove href 2022-08-31 16:54:19 +02:00
callebtc a3ed8ab931 adjust button text 2022-08-30 10:39:29 +02:00
callebtc 65d933a6d5 href on qrcore 2022-08-29 02:42:30 +02:00
callebtc 2c8a653c3a fix currency index 2022-08-29 02:34:09 +02:00
callebtc 74655219f3 fiat floats 2022-08-29 02:25:42 +02:00
callebtc 0aeec7e488 fiat currencies 2022-08-29 02:22:25 +02:00
callebtc 9b2c23cab5 css tweaks 2022-08-29 01:51:07 +02:00
callebtc 62c2cbab5f add bootstrap 2022-08-29 01:41:07 +02:00
callebtc c237e55a29 number keyboard 2022-08-28 21:50:20 +02:00
callebtc cb19e7375a scroll up 2022-08-28 21:31:35 +02:00
callebtc 52230d486e clean 2022-08-28 20:43:18 +02:00
callebtc c8e45de27d invoices 2022-08-28 20:37:45 +02:00
callebtc b618b1aa41 create invoices 2022-08-28 19:16:23 +02:00
callebtc f35473b010 webapp log 2022-08-28 15:19:40 +02:00
callebtc 8d0bf2cce7 padding 2022-08-28 15:06:22 +02:00
callebtc f5c3d9fb55 webapp works 2022-08-28 14:59:30 +02:00
callebtc 5e4c045312 log 2022-08-22 09:35:43 +02:00
callebtc 44f397e2de fix lndhub 2022-08-22 09:32:30 +02:00
callebtc 9451032552 user decoder 2022-08-22 09:13:39 +02:00
callebtc 8180d3cfae auth refactor 2022-08-22 09:09:53 +02:00
callebtc ac9cc644eb config 2022-08-21 00:48:23 +02:00
gohumble d98aa26db9 fix 2022-08-21 00:29:06 +02:00
gohumble 13c0f3b70a increase timeouts 2022-08-21 00:07:31 +02:00
gohumble 3a4f99314d sse 2022-08-21 00:02:48 +02:00
gohumble a0f7cf09e6 sse 2022-08-20 23:22:04 +02:00
callebtc 0ff0d889ff sse 2022-08-20 22:33:05 +02:00
callebtc a87eac37b8 remove 2022-08-20 01:04:31 +02:00
callebtc 250c036c47 returns 2022-08-20 01:03:22 +02:00
callebtc df303ae186 invoice 2022-08-20 00:32:20 +02:00
callebtc d0d844fd4f balance check 2022-08-20 00:21:52 +02:00
gohumble dbe94b9494 fix 2022-08-20 00:19:12 +02:00
gohumble d9f373cebb Merge remote-tracking branch 'origin/api' into api
# Conflicts:
#	internal/api/lightning.go
2022-08-20 00:18:54 +02:00
gohumble d066fa9e27 set bot in api service 2022-08-20 00:17:58 +02:00
callebtc 127f95b8de boom 2022-08-20 00:17:19 +02:00
gohumble 98401546fa add user auth 2022-08-19 23:59:23 +02:00
callebtc 0c29fec19f lnbits stuff 2022-08-19 23:36:11 +02:00
gohumble 4bcbd2fefe add auth middleware 2022-08-19 23:35:27 +02:00
gohumble a669ea86ac add api service 2022-08-19 22:55:27 +02:00