Skip to content

v0.6.4

Latest

Choose a tag to compare

@claravanstaden claravanstaden released this 03 Dec 04:48
· 4 commits to master since this release
v0.6.4
6f2a6f0

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 writetimeout is 0 (#351). Deployments that set writetimeout: 0s to keep long gRPC streams open had nothing ending a write to a client that stopped reading. The new writestalltimeout option (default 1m, 0s turns it off) sets a deadline only while a write or flush is in progress, so quiet streams are not affected. It has no effect while writetimeout is 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 update and 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.dashboardlisten option 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 new trustedproxies option names reverse proxies whose X-Forwarded-For is 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-After instead 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.mppchallengeexpiry sets 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.dbfile
    • postgres.maxopenconnections → postgres.maxconnections
    • postgres.requireSSL → postgres.requiressl
    • admin.corsorigins → admin.corsorigin

    After the rename the value takes effect. For requiressl: true that means aperture now connects to Postgres with SSL, so check the server accepts it.

  • Moved database check (#331, #332). Because dbfile used 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 to 0 to turn the limit off. Behind a local reverse proxy, set trustedproxies, or all clients share one bucket; aperture logs a warning at startup in that case.

  • A negative writetimeout stops startup (#351). It used to behave like 0s. Use 0s to turn the write timeout off. A negative writestalltimeout is refused too.

  • Clients that stop reading are cut after a minute when writetimeout is 0s. Set writestalltimeout to change this, or 0s for 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.4 is published for linux/amd64 and linux/arm64.