Commit Graph

23 Commits

Author SHA1 Message Date
Oliver Gugger
b85c7089a2 aperture: allow aperture to be run in-process
We refactor the main Aperture service code into a struct that can be
started and stopped. This allows aperture to be used more easily as a library in
other projects.
2021-07-15 11:19:29 +02:00
Oliver Gugger
087c52a358 multi: export config structs
In order to allow running aperture as a library, we need to export its
configuration structs so they can be instantiated externally.
2021-07-15 11:19:29 +02:00
Oliver Gugger
b88feb173f multi: update to lnd 0.13.0-beta
We update the compile time dependency of lnd to version 0.13.0-beta to
make it easier to run aperture in the same process as other projects
which also updated.
The runtime dependency is still kept at v0.12.0-beta as we don't use any
new RPCs.
2021-07-15 11:19:12 +02:00
Oliver Gugger
c4778c3fd2 multi: update dependencies 2021-05-07 16:47:03 +02:00
Gregor Pogacnik
665eed84e1 Kirin comments renamed to Aperture 2020-12-29 17:26:12 +01:00
Oliver Gugger
ad6a69b1b5 mod: update to latest lnd and lndclient dep 2020-12-02 10:17:52 +01:00
Oliver Gugger
e1269a7f86 aperture+challenger: add error channel to challenger
To make sure we can capture errors in the challenger's invoice
subscription, we hand the main error channel to the challenger so it can
report back errors on it.
2020-09-23 10:11:49 +02:00
Olaoluwa Osuntokun
d6438114d4 aperture: relax TLS requirements
In this commit, we modify our cipher suites and required TLS versions to
allow anything greater than TL 1.1. TLS 1.0 (sslv3) is broken so we
require versions that're safely above that. Without this change, widely
used clients such as `openssl` will fail to connect out to an Aperture
proxy.
2020-08-21 19:44:10 -07:00
Oliver Gugger
c82df1bddc aperture: only renew certificate if we signed it
In case we use an externally provided certificate (which is created by
an external Let's Encrypt process for example), we don't want to try to
renew it. We identify our own certificates by the organization field we
set.
2020-08-14 14:16:01 +02:00
Oliver Gugger
97cf351b19 aperture: interrupt signals 2020-08-11 10:08:44 +02:00
Oliver Gugger
475bfb9675 aperture: create and start/stop challenger 2020-08-11 10:08:44 +02:00
Oliver Gugger
96e69a979c challenger+auth: implement invoice checker 2020-08-11 10:08:39 +02:00
Oliver Gugger
ec089c4723 config+proxy: disable static file serving by default 2020-07-17 11:09:23 +02:00
Olaoluwa Osuntokun
64ea3fbcac Merge pull request #37 from wpaulino/tor-nil-config
aperture: check tor config nil-ness before access
2020-05-20 17:20:41 -07:00
Wilmer Paulino
44b1b0963b aperture: check tor config nil-ness before access
This prevents a panic on startup for instances running with
configurations that don't specify any Tor options.
2020-05-18 15:59:43 -07:00
Elle Mouton
162571ac45 aperture: Custom price per service 2020-05-13 09:57:40 +02:00
Oliver Gugger
52e03c826b config+aperture: add insecure flag 2020-05-05 09:54:07 +02:00
Oliver Gugger
1214dd3ab7 aperture: fix cert validity and renew if about to expire 2020-05-05 09:54:00 +02:00
Oliver Gugger
b8855c2d18 aperture: streamline getTLSConfig 2020-05-05 09:43:45 +02:00
Oliver Gugger
489296abca aperture: extract TLS configuration into function 2020-05-05 09:43:44 +02:00
Oliver Gugger
ee865f0d39 aperture: remove unused certificate/key parameters 2020-05-05 09:43:44 +02:00
Oliver Gugger
e885935d8c aperture: restrict TLS ciphers to use 2020-05-05 09:43:38 +02:00
Olaoluwa Osuntokun
0c14706fa4 aperture: propagate rename 2020-03-18 13:57:18 -07:00