Repository navigation
This release collects the fixes since v0.6.0; v0.6.1 to v0.6.3 were tagged without release notes, so their changes are listed here too. Read Upgrading before rolling it out: some config that older versions accepted now stops startup.
Fixes
- Stalled writes are ended when
writetimeoutis 0 (#351). Deployments that setwritetimeout: 0sto keep long gRPC streams open had nothing ending a write to a client that stopped reading. The newwritestalltimeoutoption (default1m,0sturns it off) sets a deadline only while a write or flush is in progress, so quiet streams are not affected. It has no effect whilewritetimeoutis set. - Settlement tracking no longer stops aperture (#350). When the invoice subscription to lnd fails, aperture retries it instead of shutting down.
- Service updates no longer hang on open streams (#347).
aperturecli services updateand the admin API used to block, and take the proxy down with them, while any client had a stream open. - A client that hangs up is not logged as an error (#348). It is logged at debug level; real proxy failures stay at error level.
- The admin API refuses macaroons with caveats (#349).
- Wavelength sellers settle transactions (#339). Rows were left
pending, so the dashboard showed no revenue. - The dashboard stays off a proxied listener (#337). Behind a local reverse proxy, the dashboard's loopback check let anyone reach it. The new
admin.dashboardlistenoption serves it on its own loopback listener. - Concurrent calls with a paid L402 token are no longer serialized in the client (#281).
New
- Challenge rate limit (#340). The 402 challenges per client network are limited to 10 per hour by default (
challengeratelimit). The newtrustedproxiesoption names reverse proxies whoseX-Forwarded-Foris trusted, so clients behind one proxy are told apart. - Metering (#333, #334, #335, #336, #345). A buyer whose balance is held by in-flight requests gets 429 with
Retry-Afterinstead of a new 402. meterd reserves the prompt, settles streams without usage at the estimate, expires reservations whose usage never arrives, and supports fractional and cached-input pricing. authenticator.mppchallengeexpirysets how long an MPP challenge and its credential stay valid (#329).
Upgrading
-
Renamed config keys stop startup (#331). These keys were never read, so older versions silently used the defaults. Startup now fails with an error naming the replacement:
sqlite.databasefilename→sqlite.dbfilepostgres.maxopenconnections→postgres.maxconnectionspostgres.requireSSL→postgres.requiressladmin.corsorigins→admin.corsorigin
After the rename the value takes effect. For
requiressl: truethat means aperture now connects to Postgres with SSL, so check the server accepts it. -
Moved database check (#331, #332). Because
dbfileused to be ignored, the database may be at the default path. Startup refuses to create a new database at the configured path while one exists at the default path. See the README for the two ways out. -
Challenge rate limit is on by default. If your clients may get more than 10 challenges an hour per network, raise
challengeratelimit.requests, or set it to0to turn the limit off. Behind a local reverse proxy, settrustedproxies, or all clients share one bucket; aperture logs a warning at startup in that case. -
A negative
writetimeoutstops startup (#351). It used to behave like0s. Use0sto turn the write timeout off. A negativewritestalltimeoutis refused too. -
Clients that stop reading are cut after a minute when
writetimeoutis0s. Setwritestalltimeoutto change this, or0sfor the old behaviour. -
No new database migrations since v0.6.0.
-
Go 1.26.11. The release is built with Go 1.26.11 and golang.org/x/net v0.63.0 (#355, #356).
-
Images.
lightninglabs/aperture:v0.6.4is published for linux/amd64 and linux/arm64.