Hardening suggestion: answer hsmd requests that the signer rejects every time
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 148
- Forks
- 49
- Merge medio
- 4 d 5 h
- PR fusionados (30 d)
- 9
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Blockstream/greenlight
-
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
Blockstream/greenlight#751 ·
Los mantenedores suelen responder en 1 día
-
Signet: node connection returns TLS alert 225 (SchedulerError) after `scheduler schedule` succeedsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Blockstream/greenlight#750 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Blockstream/greenlight#595 ·
Los mantenedores suelen responder en 1 día
-
Add Bookkeeper SupportQuizá libre de nuevo @cdecker la tomó hace 664 días y no hay ningún pull request abierto. Abiertocomponent::plugin enhancement
Blockstream/greenlight#566 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
gltestserver needs a dietAbiertohelp wanted P4
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Blockstream/greenlight#563 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Blockstream/greenlight
Issues similares
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
influxdata/influxdb#27767 ·
Los mantenedores suelen responder en 1 día
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)Posiblemente ocupada @zyl71 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Blockstream/lwk#213 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
manuscript-lang/manuscript#6389 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100