Verify Mozilla's signature in upki-mirror and sign manifests for `upki fetch`

Aperta
#276 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
security

Direzione di ricerca

This is a design proposal, not a scoped change. Start by reading how upki-mirror fetches /records and how upki fetch consumes manifest.json and config.toml, and settle on one of the two options (verifying Mozilla's signature via /changeset, or signing the manifest) with the maintainers. Done means an agreed design, with the key and signature format decided, before any implementation.

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

Descrizione

I've noticed that right now only TLS protects revocation data between Mozilla and clients. The mirror doesn't check the content signature on cert-revocations, and upki fetch trusts whatever manifest the mirror serves. After eMudhra that feels a bit thin: a bad cert for either host is enough to feed clients fake revocation data.

Two ideas:

  1. The mirror fetches /changeset instead of /records and verifies Mozilla's signature, pinning the root rather than the short-lived leaf.
  2. The mirror signs manifest.json (e.g. a C2SP signed-note) and upki fetch checks it against a key in config.toml. With a signed sequence number, clients could also reject rollbacks.

Since fetch is generic now (#275), this would cover CRLite, intermediates and OneCRL too. Happy to start on the first part.

Lingua principale
Rust
Stelle
181
Fork
14
Merge medio
14h 16m
PR unite (30g)
21

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

  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 rustls/upki

Tutte le issue di rustls/upki

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.