Commit Graph

290 Commits

Author SHA1 Message Date
Oliver Gugger
df19ef5c89 Merge pull request #123 from lightninglabs/opentelemetry-fix
mod+linter: fix go.opentelemetry.io dependency bump
v0.3.1-beta
2023-11-28 14:09:50 -06:00
Oliver Gugger
7a42fe1b32 multi: bump and adjust linter, fix issues
Not strictly necessary to fix the linter issues caused by the version
bump, but nice to have.
2023-11-28 12:48:22 -06:00
Oliver Gugger
b86d458c7d mod: bump opentelemetry to even newer versions
The automatic version bump created by Dependabot caused a compile time
issue and an issue with the linter.
Bumping the other go.opentelemetry.io dependencies seems to fix that.
2023-11-28 12:46:59 -06:00
dependabot[bot]
8c5507fea6 build(deps): bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
Bumps [go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.25.0 to 0.46.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.25.0...zpages/v0.46.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 18:30:39 +00:00
Olaoluwa Osuntokun
f49a376b53 Merge pull request #121 from Roasbeef/update-network-deps
build: update to latest versions of: net, crypto, grpc
v0.3-beta
2023-11-20 12:29:30 -06:00
Olaoluwa Osuntokun
145b2c56ff config: add new config values for read, write and idle timeout 2023-11-20 12:22:37 -06:00
Olaoluwa Osuntokun
9ea2efc3bd aperture: start setting default values for the http timeout configs
In this commit, we start to set default values for the HTTP timeout
config values. Otherwise, it's possible that TCP connections will never
be closed, causing them to stack up over time, eventually consuming a
lot of memory.
2023-11-20 12:22:35 -06:00
Olaoluwa Osuntokun
b54c1396f0 build: update to latest versions of: net, crypto, grpc 2023-11-20 12:22:33 -06:00
Olaoluwa Osuntokun
a9b80ca131 Merge pull request #120 from Roasbeef/profile-port-fix
config: fix profile port arg parsing
2023-11-20 12:09:49 -06:00
Olaoluwa Osuntokun
c715f728a9 config: fix profile port arg parsing
In this commit, we fix a subtle bug in the parsing of the yaml config.
With the way the library works, the attribute name needs to match the
config attribute name. Otherwise, parsing just doesn't work.
2023-11-15 16:25:33 -08:00
Olaoluwa Osuntokun
8088b612b5 Merge pull request #117 from lightninglabs/dependabot/go_modules/github.com/docker/docker-24.0.7incompatible
build(deps): bump github.com/docker/docker from 20.10.24+incompatible to 24.0.7+incompatible
2023-10-30 11:43:25 -07:00
dependabot[bot]
888bbe9b70 build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.24+incompatible to 24.0.7+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.24...v24.0.7)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 15:39:22 +00:00
Oliver Gugger
fa8272c8cb Merge pull request #116 from lightninglabs/dependabot/go_modules/google.golang.org/grpc-1.56.3
build(deps): bump google.golang.org/grpc from 1.53.0 to 1.56.3
2023-10-26 14:11:48 +02:00
Oliver Gugger
d5e6375764 pricesrpc: compile protos to bump version 2023-10-26 10:28:18 +02:00
dependabot[bot]
fc41050efc build(deps): bump google.golang.org/grpc from 1.53.0 to 1.56.3
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.53.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.53.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 22:32:13 +00:00
Oliver Gugger
7f1411c339 Merge pull request #112 from lightninglabs/dependabot/go_modules/golang.org/x/net-0.17.0
build(deps): bump golang.org/x/net from 0.10.0 to 0.17.0
2023-10-12 11:27:54 +00:00
dependabot[bot]
4329596743 build(deps): bump golang.org/x/net from 0.10.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-12 11:22:48 +00:00
Oliver Gugger
92b4b65211 Merge pull request #113 from lightninglabs/fix-sqlc-check
GitHub: update caching to maintained fork, continue on error
2023-10-12 11:20:26 +00:00
Oliver Gugger
17a9095612 GitHub: update caching to maintained fork, continue on error
Since the currently failing step of the sqlc check job is only a cache,
it shouldn't cause the whole job to fail.
So we continue on error but also switch to a maintained fork of the
cache action which should fix the error in the first place.
2023-10-12 12:51:24 +02:00
Oliver Gugger
99a7fad3a1 Merge pull request #106 from lightninglabs/dependabot/go_modules/google.golang.org/grpc-1.53.0
build(deps): bump google.golang.org/grpc from 1.51.0 to 1.53.0
2023-07-18 12:02:20 +02:00
dependabot[bot]
5577ec2346 build(deps): bump google.golang.org/grpc from 1.51.0 to 1.53.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.51.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.51.0...v1.53.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 21:39:44 +00:00
Olaoluwa Osuntokun
96a92f3198 Merge pull request #105 from positiveblue/default-mailbox
config: set default mailbox address
2023-07-05 13:57:01 -07:00
positiveblue
cd7ee83b57 config: set default mailbox address
Make the LNC authenticator use the default mailbox address whenever the
config does not specify a custom one.
2023-07-05 09:18:04 -07:00
Olaoluwa Osuntokun
87bb996a40 Merge pull request #103 from Roasbeef/amp-sqlite-bug-fixes
challenger+config: fix bugs related to config parsing and AMP invoice handling
v0.2-beta
2023-07-04 17:49:36 -07:00
Olaoluwa Osuntokun
c1dea365a1 config: fix config parsing for new dbbackend option
For the yaml parser, since the public attribute differs from the name of
the yaml field, we need to specify the `yaml` flag.
2023-07-04 17:32:46 -07:00
Olaoluwa Osuntokun
599eb2ee99 challenger: skip trying to load+parse AMP invoices
AMP invoiecs don't have a payment hash, as it's based on payment addr
and set id.
2023-07-04 17:32:38 -07:00
Olaoluwa Osuntokun
510d40955e Merge pull request #98 from positiveblue/lnc
[feature] Use LNC to connect to the LND node
2023-07-04 17:31:26 -07:00
positiveblue
aa9ca467da aperture: initialize server with the configured authenticator 2023-06-30 15:22:28 -07:00
positiveblue
a6ff4a9e7b challenger: add LNCChallenger 2023-06-30 15:22:28 -07:00
positiveblue
4e81f5ddb5 challenger: move challenger logic to its own package
The new package contains a new interface (`Challenger`) that any
new challenger must implement.

Because aperture uses the new interface instead of using directly the
`LndChallenger` struct I added the `Stop()` method to the
`mint.Challenger`. Instead of also adding the `Start()` method the constructor
returns a Challenger already "started".
2023-06-30 15:22:28 -07:00
positiveblue
a04f3b1e0f challenger: custom context for LightningClient methods
Whenever we use the LightningClient from an LNC connection we need to
add the macaroon to the headers.
2023-06-30 15:22:27 -07:00
positiveblue
3d53f20597 multi: use InvoiceClient in NewLndChallenger
Stop creating the connection inside the `NewLndChallenger`. That will
allow us reuse the function with an LNC connection.
2023-06-30 15:22:27 -07:00
positiveblue
0e02476dd2 aperturedb: implement lnc sessions store 2023-06-30 15:22:27 -07:00
positiveblue
ea2fb836b7 sqlc: add table+queries for sessions 2023-06-30 15:22:27 -07:00
positiveblue
baec26209e lnc: add lnc session package 2023-06-30 15:22:25 -07:00
positiveblue
8dde304da5 config: support config for LNC connections 2023-06-30 13:30:22 -07:00
Oliver Gugger
57ddbf7e05 Merge pull request #102 from lightninglabs/grpc-status-code-fix
proxy: always return 200 status code to gRPC client
v0.1.21-beta
2023-06-19 10:21:09 +02:00
Oliver Gugger
f17b877806 multi: address linter issues 2023-06-15 14:11:09 +02:00
Oliver Gugger
e571d6f13c lsat: clarify non-usage of invalid status code 2023-06-15 13:53:14 +02:00
Oliver Gugger
1536ce4bc2 mod: upgrade google.golang.org/grpc to v1.51.0 2023-06-15 13:40:42 +02:00
Oliver Gugger
e2757ebca8 proxy: always return 200 status code to gRPC client
It turns out that sending a non-200 HTTP status code was against the
gRPC spec and the older versions of the `grpc` library just didn't
validate that. The validation was added in v1.40.0, which is the version
that we couldn't update to before.
With this fix the error is still parsed correctly on the client side.
But this requires a small change to the L402 spec because the status
code is no longer 402.
2023-06-15 13:32:14 +02:00
Oliver Gugger
369489feb7 Merge pull request #96 from positiveblue/sql
Add support for sqlite/postgres database backends
2023-06-15 10:42:59 +02:00
positiveblue
33d53b2a2f ci: run unit tests against sqlite and postgres 2023-06-14 21:44:20 -07:00
positiveblue
bf96592f63 aperture: initialize server with the configured db backend 2023-06-14 21:44:20 -07:00
positiveblue
a9fb600044 config: support params for different database backends 2023-06-14 21:44:19 -07:00
positiveblue
680da97b62 aperturedb: implement onion store 2023-06-14 21:44:19 -07:00
positiveblue
9c5453b410 aperturedb: implement secrets store 2023-06-14 21:44:19 -07:00
positiveblue
6700d01b39 aperturedb: add support for postgres/sqlite 2023-06-14 21:44:17 -07:00
positiveblue
bddbc9326d ci: add sqlc codegen check to pipeline 2023-06-14 21:36:19 -07:00
positiveblue
f5dd767145 aperturedb: add table+queries for secrets and onion 2023-06-14 21:30:56 -07:00