agent-substrate / agent-substrate/substrate

atunnel: refresh client CA pool per handshake

Aperta
#688 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area/network kind/feature
Lingua principale
Go
Stelle
1.8k
Fork
316
Merge medio
2g 43m
PR unite (30g)
287

Descrizione

In `internal/atunnel/server.go` the client CA pool is built once at startup, while leaf certificates are reloaded per connection. Because substrate certs expire within ~1–2 days, a frozen CA pool means the server will eventually reject valid peers (or keep trusting a rotated-out CA) until it restarts.

Implement tls.Config.GetConfigForClient so the client CA pool is re-read on each handshake, mirroring the existing per-connection leaf cert reload.

source: https://github.com/agent-substrate/substrate/pull/559#discussion_r3687538721

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.