[Bug]: Tokens fail validation after the identity provider rotates its signing key until the JWKS cache expires

Aperta
#2,831 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@APWHY ci sta già lavorando.

Dal 20/8/2026.

  • #2769 di @APWHY — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go

Direzione di ricerca

The issue describes JWKS caching in the OIDC provisioner but names no source files or tests. Start by reviewing the linked pull request #2769 for its context and suggested fix, then trace how step-ca handles cached JWKS keys and token validation. Done means a newly rotated signing key can be fetched and its token validated before the prior JWKS cache expires.

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

Descrizione

bug needs triage
Steps to Reproduce
  1. Configure an OIDC provisioner against an issuer whose JWKS endpoint returns a long enough Cache-Control: max-age value
  2. Start step-ca to cache the JWKS
  3. Manually rotate the signing key on your issuer
  4. Using a new token from the issuer now fails validation
Your Environment
  • OS - Linux (Wolfi)
  • step-ca Version -0.30.2
Expected Behavior

That step-ca would refetch the JWKS if it sees an unknown key

Actual Behavior

step-ca only refetches the JWKS once the cache expires so validation fails until then. In our case (EKS), that was once a week so we're manually refreshing our JWKS every few minutes for the time being.

Additional Context

I did create a PR some time ago with a little more context and a suggested fix if that helps

Contributing

No response

Lingua principale
Go
Stelle
8.9k
Fork
599
Merge medio
21h 20m
PR unite (30g)
15

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 smallstep/certificates

Tutte le issue di smallstep/certificates

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.