Skip to content

clightning-plugins: update plugins and consolidate Rust packaging - #202

Merged
prusnak merged 1 commit into
masterfrom
clightning-plugins-update
Nov 4, 2026
Merged

prusnak merged 1 commit into
masterfrom
clightning-plugins-update

Conversation

@prusnak

@prusnak prusnak commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Update the community plugins to lightningd/plugins revision
f0d33fd32a35d207964f1f841ff80a744e6b8b09. Adapt feeadjuster, monitor,
rebalance and zmq to pyproject.toml dependencies and the renamed cl-zmq
directory. Validate upstream versions, installed requirements and each
plugin's getmanifest response during the build. Adjust monitor's packaging
constraint, replace uv shebangs with the Nix Python interpreter, and emit
SRI hashes from the source update helper.

Replace Python currencyrate with CLN's Rust cln-currencyrate while keeping
the existing enable option and clightning-plugins.currencyrate attribute.
Build and test that Cargo package from the pinned Core Lightning source.
Organize plugins into python.nix and rust.nix, with independent clnrest and
currencyrate derivations sharing source and vendoring settings. Regenerate
versions.json using the plugins' upstream versions.

Move clnrest to clightning-plugins.clnrest, update module defaults and build
examples, and remove the obsolete Python clnrest migration error attribute.
Resolve the configured clnrest executable with lib.getExe so custom packages
can supply meta.mainProgram without requiring passthru.path.

Add a config-version 0.1.5 notice for the currencyrate migration and test its
version gate. Document currencyrate's RPC names, response units, source
options and proxy behavior. The 0.1.5 upgrade guide also covers rebalance's
askrene routing changes and the clnrest package attribute rename. Update the
example configVersion to 0.1.5. Enable currencyrate in plugin test scenarios
and check its RPC names without contacting public price sources.

Validation: nix flake check --all-systems --no-build, module configuration
evaluation on both supported architectures, and the version manifest check
passed. Reproduced the missing-path error with a custom clnrest package and
verified the fix and default executable on both architectures. Linux builds
and VM integration tests were not run during this revision.

@github-actions github-actions Bot added area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: packages pkgs/ and flake pins type: feature New capability or service labels Nov 2, 2026
@prusnak
prusnak force-pushed the clightning-plugins-update branch from 5ea56a2 to a1754fb Compare November 3, 2026 00:51
@github-actions github-actions Bot added the type: removal Module, package or option dropped (implies breaking) label Nov 3, 2026
@prusnak prusnak changed the title clightning-plugins: update community plugins clightning-plugins: update plugins and consolidate Rust packaging Nov 3, 2026
@prusnak
prusnak requested a review from seberm November 3, 2026 00:54
@prusnak
prusnak force-pushed the clightning-plugins-update branch from a1754fb to 35a5471 Compare November 3, 2026 01:10
@seberm

seberm commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@prusnak Thanks for the changes. Is this groundwork for #7?

Take it with a grain of salt :) :

Changes requested: the new migration notices use a config version that has already been released.

Must

  • Bump the new modules/versioning.nix entries from 0.1.3 to 0.1.5. v0.1.3 and v0.1.4 both ship configVersion = "0.1.3", so users on those releases never see these notices (the { version = "0.1.3"; enable = true; } test cases show this). Move the new text to a new ## Upgrading to config version 0.1.5 section above 0.1.3 in docs/upgrading.md and leave the released section unchanged. Update the messages and the docs/services.md anchor to match, set examples/configuration.nix to 0.1.5, and use 0.1.4 vs 0.1.5 in the tests.

Should

  • Drop the rebalance entry and its test. The removed options are still accepted and only log a deprecation warning, so nothing fails at deploy. The getroute_method and rebalancereport changes come from upstream and need no bitcoinix config change. Keep the rebalance text in the 0.1.5 upgrading section, and mention it in the release notes, since users won't be sent there by an evaluation error.
  • Drop the clnrest package-rename entry and its test. It blocks evaluation for every clnrest user, but only configs that reference nix-bitcoin.pkgs.clnrest directly are affected, and those already fail with a missing attribute. The upgrading.md note is enough.

Nit

  • Use lib.getExe pluginPkgs.currencyrate in the module. The currencyrate.path override in test/tests.nix is then no longer needed.

Tested: the CI VM scenarios passed on a1754fb, including netns and netnsRegtest with all plugins enabled. I checked the currencyrate and rebalance docs against the upstream source.

Review performed with Claude Code (Opus 5.5)

Comment thread pkgs/clightning-plugins/python.nix Resolved
@prusnak
prusnak force-pushed the clightning-plugins-update branch from 35a5471 to 5f8fc17 Compare November 4, 2026 16:06
@prusnak

prusnak commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Is this groundwork for #7?

theoretically yes, but plugins are in quite messy state (in upstream) and i don't feel the confidence to push them to nixpkgs as of yet

Changes requested: the new migration notices use a config version that has already been released.

addressed in force push

@prusnak
prusnak force-pushed the clightning-plugins-update branch 2 times, most recently from c090982 to b76e248 Compare November 4, 2026 16:52
seberm
seberm previously approved these changes Nov 4, 2026

@seberm seberm left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. LGTM - Let's include in v0.1.5 - I will release early to cover btcpayserver update.

Agent review:


The earlier items are addressed. Two remaining:

Should

  • modules/clightning-plugins/clnrest.nix: plugin=${cfg.package.path} breaks evaluation when services.clightning.plugins.clnrest.package is set to a package without passthru.path ("attribute 'path' missing"). Please use plugin=${lib.getExe cfg.package}; the default package already sets mainProgram.
  • The commit message and PR body still describe 0.1.3 migration notices and the dropped rebalance and clnrest-rename entries. Please update them to match the 0.1.5 changes.

Tested: CI passed on b76e248. I checked the currencyrate proxy handling and refresh behaviour against the CLN 26.06.9 source.

Review performed with Claude Code (Opus 5.5)

Update the community plugins to lightningd/plugins revision
f0d33fd32a35d207964f1f841ff80a744e6b8b09. Adapt feeadjuster, monitor,
rebalance and zmq to pyproject.toml dependencies and the renamed cl-zmq
directory. Validate upstream versions, installed requirements and each
plugin's getmanifest response during the build. Adjust monitor's packaging
constraint, replace uv shebangs with the Nix Python interpreter, and emit
SRI hashes from the source update helper.

Replace Python currencyrate with CLN's Rust cln-currencyrate while keeping
the existing enable option and clightning-plugins.currencyrate attribute.
Build and test that Cargo package from the pinned Core Lightning source.
Organize plugins into python.nix and rust.nix, with independent clnrest and
currencyrate derivations sharing source and vendoring settings. Regenerate
versions.json using the plugins' upstream versions.

Move clnrest to clightning-plugins.clnrest, update module defaults and build
examples, and remove the obsolete Python clnrest migration error attribute.
Resolve the configured clnrest executable with lib.getExe so custom packages
can supply meta.mainProgram without requiring passthru.path.

Add a config-version 0.1.5 notice for the currencyrate migration and test its
version gate. Document currencyrate's RPC names, response units, source
options and proxy behavior. The 0.1.5 upgrade guide also covers rebalance's
askrene routing changes and the clnrest package attribute rename. Update the
example configVersion to 0.1.5. Enable currencyrate in plugin test scenarios
and check its RPC names without contacting public price sources.

Validation: nix flake check --all-systems --no-build, module configuration
evaluation on both supported architectures, and the version manifest check
passed. Reproduced the missing-path error with a custom clnrest package and
verified the fix and default executable on both architectures. Linux builds
and VM integration tests were not run during this revision.

Assisted-by: Codex (GPT-6)
@prusnak
prusnak force-pushed the clightning-plugins-update branch from b76e248 to aae9e20 Compare November 4, 2026 19:42
@prusnak
prusnak merged commit 352c17d into master Nov 4, 2026
14 checks passed
@prusnak
prusnak deleted the clightning-plugins-update branch November 4, 2026 19:48
prusnak added a commit that referenced this pull request Nov 5, 2026
Followup to #202

Add independent config-version 0.1.5 notices for the rebalance RPC
changes and the clnrest package rename. Link both notices to the
existing upgrade instructions.

Extend the currencyrate migration tests to cover all three plugins
independently, including disabled plugins, acknowledged migrations and
unversioned configurations.

Validation: 63 module evaluation checks passed on both supported Linux
architectures; the aarch64-linux module check build and nix flake check
--all-systems --no-build passed in Docker.

Assisted-by: Codex (gpt-6-astra)
@seberm seberm added this to the v0.1.5 milestone Nov 8, 2026
unbeholdendev added a commit to unbeholdendev/infra that referenced this pull request Nov 10, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [bitcoinix/bitcoinix](https://github.com/bitcoinix/bitcoinix) | patch | `v0.1.4` → `v0.1.5` |

---

### Release Notes

<details>
<summary>bitcoinix/bitcoinix</summary>

### [`v0.1.5`](https://github.com/bitcoinix/bitcoinix/releases/tag/v0.1.5): bitcoinix 0.1.5

[Compare Source](bitcoinix/bitcoinix@v0.1.4...v0.1.5)

**Security release with breaking changes.** Updates BTCPay Server to 2.4.7 and Core Lightning to 26.06.10. All users should upgrade. If you run BTCPay Server with `services.backups`, start a backup right after upgrading. Evaluation fails with a message for each breaking change that affects your config; act on it, then set `nix-bitcoin.configVersion = "0.1.5";`.

#### Security

- **BTCPay Server [2.4.7](https://github.com/btcpayserver/btcpayserver/releases/tag/v2.4.7)** fixes 85 security findings (1 critical, 13 high). Upstream highly recommends it, especially for servers shared by multiple merchants. It was left out of 0.1.4 ([#&#8203;203](bitcoinix/bitcoinix#203)).
- **Core Lightning [26.06.10](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10)** fixes vulnerabilities in dual funding, splicing, onchaind, gossip, connectd, runes and commando, among others. Upstream recommends reviewing your runes: bind runes used over commando to the app's node ID and blacklist any you can't account for ([#&#8203;226](bitcoinix/bitcoinix#226)).
- **Backups now include the NBXplorer database,** which holds the BTCPay hot-wallet keys. Backups made before this release lack them, so run `systemctl start duplicity` after upgrading, or make sure you have each hot wallet's recovery phrase ([#&#8203;223](bitcoinix/bitcoinix#223)).
- **Not included: database dump checks ([#&#8203;225](bitcoinix/bitcoinix#225 duplicity still succeeds when a database dump fails, and with `services.postgresqlBackup.compression` set to `"zstd"` or `"none"`, backups leave out the BTCPay and NBXplorer databases. Until the next release, keep the default `"gzip"` and check `journalctl -u postgresqlBackup-btcpaydb -u postgresqlBackup-nbxplorer` after a backup.
- **The mempool RPC password no longer ends up in the Nix store** when set through `services.mempool.settings.CORE_RPC.PASSWORD` ([#&#8203;216](bitcoinix/bitcoinix#216)).
- **Multipath TCP:** lnd now also runs with `GODEBUG=multipathtcp=0`, and `hardened-extended` sets `net.mptcp.enabled = 0` ([#&#8203;187](bitcoinix/bitcoinix#187)). That sysctl, like the one the 0.1.4 notes advised, covers only the host namespace: services that netns-isolation runs in their own namespace can still open MPTCP listeners (fix not included, [#&#8203;206](bitcoinix/bitcoinix#206)). The fix for CVE-2026-98432 is kernel 6.18.56 or later; check with `uname -r`.
- **Harder to fingerprint:** mempool no longer shows stack traces with store paths, store-derived ETags, the hostname or the kernel version, and new self-signed certs only carry `CN=localhost`. The SSH onion shares its host keys with clearnet SSH, so publishing both links them: keep SSH off clearnet or use Tor client authorization for the onion ([#&#8203;229](bitcoinix/bitcoinix#229)).
- `clightning-replication` warns when SSH host key checking is disabled ([#&#8203;222](bitcoinix/bitcoinix#222)).
- Core Lightning, clboss and Fulcrum still link brotli 1.2.0 from nixpkgs-unstable.

#### Breaking changes

- **mempool:** `services.mempool.settings.CORE_RPC.PASSWORD` now fails evaluation. Put the password in `<secretsDir>/bitcoin-rpcpassword-public`, and change it if untrusted users or services run on the node, since the old value stays in the store until garbage collection ([#&#8203;216](bitcoinix/bitcoinix#216)).
- **currencyrate:** the Python plugin is replaced by Core Lightning's Rust `cln-currencyrate`. Use `listcurrencyrates` instead of `currencyrates`; `add-source`/`disable-source` are now `currencyrate-add-source`/`currencyrate-disable-source` ([#&#8203;202](bitcoinix/bitcoinix#202)).
- **rebalance:** now routes with askrene. Drop `getroute_method` from `rebalance` calls and `rebalance-getroute`, `rebalance-maxhops`, `rebalance-msatfactor` from your config; `rebalancereport` loses the matching fields ([#&#8203;202](bitcoinix/bitcoinix#202), [#&#8203;207](bitcoinix/bitcoinix#207)).
- **clnrest:** the package moved from `nix-bitcoin.pkgs.clnrest` to `nix-bitcoin.pkgs.clightning-plugins.clnrest` ([#&#8203;202](bitcoinix/bitcoinix#202)).
- **Core Lightning 26.06.10, for scripts:** `bkpr-dumpincomecsv` only accepts a plain `.csv` filename and writes it to the network directory. Opens from peers with `dust_limit_satoshis` above 5000 sat are refused. See the [operator notes](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10).
- **BTCPay Server 2.4.7, for integrators:** the legacy `/invoices/create` routes are removed (use `/stores/{storeId}/invoices/create`), and reading single invoices through the BitPay API requires authentication.

See [Upgrading to config version 0.1.5](https://docs.bitcoinix.net/upgrading.html#upgrading-to-config-version-015).

#### Updates

| Package             | 0.1.4                                                                       | 0.1.5                                                                                                             |
| ------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| BTCPay Server       | 2.4.6                                                                       | [2.4.7](https://github.com/btcpayserver/btcpayserver/releases/tag/v2.4.7)                                         |
| Core Lightning      | 26.06.9                                                                     | [26.06.10](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10)                                   |
| currencyrate plugin | Python ([`c0ba9dc`](bitcoinix/bitcoinix@c0ba9dc)) | [cln-currencyrate 0.1.0](https://github.com/ElementsProject/lightning/tree/v26.06.10/plugins/currencyrate-plugin) |
| lightningd/plugins  | [`c0ba9dc`](bitcoinix/bitcoinix@c0ba9dc)          | [f0d33fd](https://github.com/lightningd/plugins/tree/f0d33fd)                                                     |

Also: the docs list the release and package versions ([#&#8203;205](bitcoinix/bitcoinix#205)); the services page is reworked ([#&#8203;201](bitcoinix/bitcoinix#201)).

Contributors: [@&#8203;ostermayer](https://github.com/ostermayer), [@&#8203;prusnak](https://github.com/prusnak), [@&#8203;seberm](https://github.com/seberm), [@&#8203;viberaven](https://github.com/viberaven).

Full changes: <bitcoinix/bitcoinix@v0.1.4...v0.1.5>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: agent <[email protected]>
Reviewed-on: https://git.home.unbeholden.dev/unbeholden/infra/pulls/97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: packages pkgs/ and flake pins type: feature New capability or service type: removal Module, package or option dropped (implies breaking)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants