Confusing behavior when allow_fetching is True
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- cryptography, security
Direzione di ricerca
Inizia in context.py con le proprietà crls e ocsps e i metodi retrieve_crls e retrieve_ocsps, quindi confronta il loro comportamento con i docstring e i commenti di ValidationContext. Determina se allow_fetching debba ignorare o unire i dati di revoca precaricati; il lavoro è completato quando il comportamento scelto è implementato o documentato chiaramente, con i test pertinenti aggiornati, se presenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The docstring of context.ValidationContext states that if the value of the allow_fetching parameter is True "and certificates contain the location of a CRL or OCSP responder, an HTTP request will be made to obtain information for revocation checking". The word "allow" seems to indicate that this HTTP request is merely an additional way of obtaining information about revocation status. Moreover, also the following comment (especially the word "also") suggests that CRL or OCSP data requested via HTTP are not the only source of revocation status information if allow_fetching is True:
The docstring of the crls and ocsps parameters explain that pre-fetched/cached CRL and/or OCSP data can be passed to ValidationContext.
Putting all together, it seems that setting the allow_fetching parameter to True may result in fetching CRL or OCSP data in addition to checking pre-fetched/cached data.
Contrary to this expectation, if ValidationContext._allow_fetching is True, pre-fetched/cached CRL and OCSP data (passed by the crls and ocsps parameters) are completely ignored. (See the crls and ocsps properties and the retrieve_crls and retrieve_ocsps methods of ValidationContext.) If that is the intended behavior, it should be clarified in the documentation. Otherwise - and I would except this more intuitive - the two sources of revocation information should be merged when this is appropriate.
- Lingua principale
- Python
- Stelle
- 117
- Fork
- 37
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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
- 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 wbond/certvalidator
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wbond/certvalidator#46 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
wbond/certvalidator#44 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
wbond/certvalidator#22 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
wbond/certvalidator#11 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
wbond/certvalidator#56 · 1 commento ·
Tutte le issue di wbond/certvalidator
Issue simili
-
review-panel severity:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
kristovatlas/coin-accounting#576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
anthropics/skills#2328 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
repo-harnesses: the entrypoint-guard check greps a message `#13692` reworded, so it fails on mainAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
daniel-ospina/tortoise#14947 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100