Hardening suggestion: answer hsmd requests that the signer rejects every time
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
Start by reading gl-plugin/src/node/mod.rs around respond_hsm_request, then trace the waiting request in gl-plugin/src/hsm.rs and replay behavior in stager.rs. The issue suggests returning an hsmd error for deterministic signer rejection or adding a bounded wait; determine which behavior fits the existing request flow. Done means rejected requests no longer block the serial hsmd client, with recovery behavior preserved.
索引モデルが issue の本文から書いたものです。
説明
Follow-up to #739 / #740 (by @ScuttoZ). Thanks for the signmessage guard. It already handles the case we hit.
While integrating Greenlight with Alby Hub (https://gist.github.com/welliv/cf1f9b22a3b9047e5a31f6dc4cc2de24) we read the signer path at main @ 15b22cf0. This is a small, non-urgent suggestion.
Observation
gl-plugin/src/node/mod.rsrespond_hsm_request(~L606-655) returns withoutstage.respond()in three cases: a signer error, a state-merge error, or a state-store write error.gl-plugin/src/hsm.rs:96(chan.recv().await) waits with no timeout, and lightningd's hsmd client is serial.- Your design already limits the impact. Unanswered requests are replayed to every new signer connection (
stager.rs), so transient failures recover. - Only a request the signer rejects every time can block that hsmd client until the node restarts.
node/wrapper.rs:550-556describes the same mechanism for signmessage.
Suggestion
- For a deterministic signer rejection, answer the waiting request with an hsmd error (or fail the originating RPC) instead of leaving it queued.
- Or add a bounded wait in
hsm.rs.stuck_request_types()could drive an alert.
Small extras (happy to split out)
- glcli prints new mnemonics to stdout (
gl-cli/src/node.rs:276,scheduler.rs:100). - glcli writes the seed, credentials and
convert-backupoutput withFile::create(0644 under a typical umask). Suggest 0600. - glcli exits 0 on RPC failures, so wrappers have to parse the output.
Happy to send a PR for any of these if you'd like one.
- 主要言語
- Rust
- スター
- 148
- フォーク
- 49
- 平均マージ
- 4日 5時間
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Blockstream/greenlight のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
Blockstream/greenlight#751 ·
メンテナーはふだん 1 日以内に返信
-
Signet: node connection returns TLS alert 225 (SchedulerError) after `scheduler schedule` succeedsオープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Blockstream/greenlight#750 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Blockstream/greenlight#595 ·
メンテナーはふだん 1 日以内に返信
-
Add Bookkeeper Support再び着手できるかも @cdecker が 664 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンcomponent::plugin enhancement
Blockstream/greenlight#566 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
help wanted P4
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Blockstream/greenlight#563 ·
メンテナーはふだん 1 日以内に返信
Blockstream/greenlight の issue をすべて見る
似ている issue
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
influxdata/influxdb#27767 ·
メンテナーはふだん 1 日以内に返信
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)対応中かも @zyl71 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
Blockstream/lwk#213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manuscript-lang/manuscript#6389 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100