Cert carry-forward keeps the previous tenant's upstream when a reload reassigns the route

Aperta
#90 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, security

Direzione di ricerca

Start in router.rs at build_route_table (lines 766–781), where the previous route is carried forward after a certificate build failure. Compare the new spec’s metricsGroup with the previous route’s and follow the existing tombstone behavior for a changed client-certificate policy. Done when a tenant change cannot keep forwarding to the previous upstream while its certificate is building; check the related router tests for this reload path.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When a route's cert fails to build on a reload, build_route_table carries the previous route forward whole, upstreams included (router.rs:766-781). The only gate is that the client-certificate policy is unchanged. So a reload that moves an SNI to another tenant (a new metricsGroup and a new upstream) while its new cert is mid-rotation keeps sending that name's traffic to the previous tenant's upstream, under the new tenant's allowedSources, until the cert builds.

The code comment accepts this cost for a cert rotation, where the upstream is the same tenant's. It is a different trade when ownership changes. Suggested fix: do not carry forward when the spec's metricsGroup differs from the previous route's; tombstone the SNI instead, as a changed client-cert policy already does.

Found during review of the SNI case-insensitivity change, which lets a respelled route (API.example.com for api.example.com) reach this path too.

Review-Deferral: 04da97247dd082dc severity=minor category=security

🤖 Generated by Claude Code (Claude Opus 5.5); posted via @dawsontoth.

Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
11h 49m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/symphony

Tutte le issue di HarperFast/symphony

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.