Hardening suggestion: answer hsmd requests that the signer rejects every time
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 148
- Fork
- 49
- Merge medio
- 4g 5h
- PR unite (30g)
- 9
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Blockstream/greenlight
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
Blockstream/greenlight#751 ·
I maintainer di solito rispondono entro 1 giorno
-
Signet: node connection returns TLS alert 225 (SchedulerError) after `scheduler schedule` succeedsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Blockstream/greenlight#750 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Blockstream/greenlight#595 ·
I maintainer di solito rispondono entro 1 giorno
-
Add Bookkeeper SupportForse di nuovo libera @cdecker l’ha presa 664 giorni fa e non c’è nessuna pull request aperta. Apertacomponent::plugin enhancement
Blockstream/greenlight#566 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
gltestserver needs a dietApertahelp wanted P4
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Blockstream/greenlight#563 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Blockstream/greenlight
Issue simili
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
influxdata/influxdb#27767 ·
I maintainer di solito rispondono entro 1 giorno
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)Forse già presa @zyl71 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Blockstream/lwk#213 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
manuscript-lang/manuscript#6389 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100