SAML: per-SP signing cert selection for staggered cert rotation
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
- 34/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- ruby
- Ambito
- authentication, backend
Direzione di ricerca
Start by tracing how SP configuration is represented and how SAMLService::Signing currently obtains its key from Entities.private_key. The issue says per-SP selection is blocked until SPs move into the database, so first inspect that configuration path and the work that persists SPs. Done means each SP can select a signing or rollover certificate and rotation can be performed per SP as described.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
problem
cert rotation (saml-cert-rotation) is a global flip: promote! switches the signing key for every SP at once. any SP pinned to the old cert breaks until someone updates its admin panel, and the SPs are updated one after another. so the Nth SP is down for the time it takes to update SPs 1..N, not just its own ~30s.
proposal
let each SP choose which cert we sign its responses with:
- add a nullable
saml_certificate_idon the SP.nilmeans "current signing cert" SAMLService::Signinglooks up the key for the SP it's responding to, instead of readingEntities.private_keyglobally- the SP admin page gets a dropdown listing signing and rollover certs
rotation then works per SP:
- generate the new cert. it gets published in metadata as rollover
- for each SP: update its IdP cert, then flip that SP to the new cert on our side
- promote, and retire the old cert once nothing is pinned to it
what this gets us
- single-cert SPs (one cert text box): the blip is still unavoidable, but it only lasts that SP's own "save theirs, flip ours" gap instead of adding up across SPs
- multi-cert / metadata-driven SPs: add the new cert next to the old one, then flip ours. zero blip
- per-SP rollback: flip just the SP that broke
- compromise rotation: still the global promote + immediate retire, on purpose
blocked on
SPs moving into the DB. right now SP config isn't something we can hang a foreign key off.
- Lingua principale
- Ruby
- Stelle
- 85
- Fork
- 72
- Merge medio
- 3g 12h
- PR unite (30g)
- 22
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 hackclub/auth
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hackclub/auth
Issue simili
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ruby/securerandom#92 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
open-feature/ruby-sdk-contrib#340 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
zold-io/wts.zold.io#651 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
erkamyaman/rust-anything#788 ·
I maintainer di solito rispondono entro 1 giorno