Commit Graph

207 Commits

Author SHA1 Message Date
Pavol Rusnak
5ea75be052 Introduce config.MinPasswordEntropy option
that allows an operator to set minimum entropy (in bits)
of a password to be accepted during account creation
2022-07-29 09:02:33 +02:00
Pavol Rusnak
3fa782c2d4 Make it possible to override branding 2022-07-17 22:27:42 +02:00
Pavol Rusnak
5ac1f8dd62 Use LndHub capitalization consistently 2022-07-15 01:08:34 +02:00
Pavol Rusnak
6740e66094 Introduce MaxReceiveAmount, MaxSendAmount, MaxAccountBalance 2022-06-30 10:55:51 +02:00
Pavol Rusnak
45e9728fb8 Make it possible to disable account creation
This covers the usecase when LndHub is used to serve closed communities
which do not want to accept new members anymore (friends, families, etc).

The PR introduces a new envconfig option CREATE_ACCOUNTS which is true
by default but can be set to false if needed.
2022-06-21 14:09:05 +02:00
kiwiidb
7b3565a659 tested all controllers 2022-06-17 16:26:58 +02:00
Pavol Rusnak
1adea74429 Implement fee-reserve 2022-06-15 23:06:53 +02:00
kiwiidb
aaa7911b4f always update invoice with hash 2022-06-08 15:34:08 +02:00
kiwiidb
c5f5ab12b9 remove memo 2022-06-08 14:46:32 +02:00
kiwiidb
4a3b548783 Merge pull request #171 from getAlby/chore/sentry-context-info
Extend sentry with some mode debugging information
2022-06-07 09:53:38 +02:00
kiwiidb
2423b67ee0 add test that reproduces the issue 2022-05-28 10:25:19 +02:00
Michael Bumann
26fe80bf7d Fix: start invoice subscription from last NOT expired invoice
Currently we checked all payments which means we start the subscription from an index for an invoice that can no longer be paid because it is expired.
And because it is expired we do not need to listen for updates for it anymore
2022-05-24 18:10:33 +02:00
kiwiidb
d668f2cebf add user login to webhook payload 2022-05-19 11:24:16 +02:00
kiwiidb
a0c6cd4729 fix internal keysends 2022-05-18 13:14:31 +02:00
kiwiidb
d01b9c492f internal keysend payments 2022-05-18 11:46:15 +02:00
kiwiidb
8d91b1d92d move keysend logic to it's own function 2022-05-18 10:04:04 +02:00
Michael Bumann
bc8184175a Add user ID to sentry context
This sends the user ID to sentry
2022-05-17 14:39:39 +02:00
kiwiidb
045305585b move constant to other TLV constants 2022-05-17 11:30:36 +02:00
kiwiidb
0ade09e8ac keysend payments: don't process already-seen invoices 2022-05-17 11:21:21 +02:00
kiwiidb
db37c52624 accept keysend payments 2022-05-17 10:46:40 +02:00
kiwiidb
36ee813ff6 fix merge conflicts 2022-05-03 09:04:54 +02:00
kiwiidb
6aa753cd3e fix merge conflicts 2022-05-02 13:46:45 +02:00
kiwiidb
f11098b7b4 add webhook url as argument 2022-05-02 13:42:43 +02:00
kiwiidb
cd72e81b24 Update lib/service/invoicesubscription.go
Add user ID

Co-authored-by: Michael Bumann <hello@michaelbumann.com>
2022-05-02 12:39:42 +02:00
kiwiidb
f99409d145 invoice: use rawinvoice amt paid 2022-05-02 11:30:17 +02:00
kiwiidb
252b1fe784 add webhook service 2022-04-27 13:54:23 +02:00
kiwiidb
03baba8c37 add webhook service 2022-04-27 13:54:15 +02:00
kiwiidb
017bf282fd publish incoming and outgoing payments to respective topics 2022-04-27 12:25:28 +02:00
kiwiidb
b150d8c8ec change topic type to string 2022-04-27 12:21:15 +02:00
kiwiidb
2fc18ae492 make host configurable 2022-04-26 13:55:08 +02:00
kiwiidb
624909484e background routine: add context cancel support 2022-04-22 14:32:48 +02:00
kiwiidb
b5497e434a publish invoice for internal payments 2022-04-21 13:27:53 +02:00
kiwiidb
c24d1599d0 refactor parse token 2022-04-20 16:25:01 +02:00
Stefan Kostic
e2947cf9a1 Replace math rand with crypto rand 2022-04-13 20:21:35 +02:00
kiwiidb
455fba26a0 implement fixes based on skosito's remarks 2022-04-13 13:04:29 +02:00
kiwiidb
bbe47cbd4c Merge branch 'main' into feature/event-stream 2022-04-12 15:30:51 +02:00
kiwiidb
8be8471da0 add all integration tests 2022-04-12 15:22:24 +02:00
kiwiidb
72adec89c8 Merge pull request #146 from getAlby/bad-auth-sentry
Do not send bad auth errors to sentry
2022-04-07 15:51:11 +02:00
kiwiidb
bc57cd04c2 handle close messages 2022-04-07 12:09:13 +02:00
kiwiidb
55ee968174 init subscription map if nil 2022-04-07 11:31:10 +02:00
kiwiidb
a5ae01a5f2 add proper pubsub 2022-04-06 18:00:04 +02:00
Stefan Kostic
e5c2e5337f Add ignoreErrors to sentry 2022-04-06 17:15:17 +02:00
kiwiidb
45e0c48f1f fix conflicts 2022-04-06 16:38:01 +02:00
kiwiidb
4cb60a5c91 clean up PR 2022-04-06 16:36:06 +02:00
kiwiidb
87f290f37d Merge pull request #142 from getAlby/feature/metrics
Feature/metrics
2022-04-06 16:19:03 +02:00
Stefan Kostic
82c36eba97 Add tests 2022-04-05 20:23:33 +02:00
Stefan Kostic
29d045f700 Cleanup 2022-04-05 20:12:00 +02:00
Stefan Kostic
f446eabfd8 Simple way to filter out bad auth from sentry 2022-04-02 21:34:57 +02:00
kiwiidb
07b93fc574 add prometheus on seperate port 2022-03-31 11:40:32 +02:00
Stefan Kostic
23bd588724 Add unit tests for calc fee limit fn 2022-03-30 18:59:03 +02:00