wbond / wbond/certvalidator

URLError and socket.error are expected, but only partially handled

Open
#19 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
115
Forks
34
PR merge metrics
No merged PRs in 30d

Description

If revocation mode is not "soft-fail", URLError and socket.error are reraised from context.retrieve_crls:

https://github.com/wbond/certvalidator/blob/5bc5c390c1955195507c23db91b8926bb03f7385/certvalidator/context.py#L467-L473

and from context.retrieve_ocsps:

https://github.com/wbond/certvalidator/blob/5bc5c390c1955195507c23db91b8926bb03f7385/certvalidator/context.py#L506-L512

Callers (validate.verify_crl, validate.verify_ocsp_response, and finally validate._validate_path) don't handle these errors, so they may escape from certvalidator, which is probably not intentional and is not documented.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read context.retrieve_crls and context.retrieve_ocsps alongside validate.verify_crl, validate.verify_ocsp_response, and validate._validate_path. Trace how URLError and socket.error propagate when revocation mode is not "soft-fail", then determine the intended handling and documentation; the issue is complete when that behavior is consistent and documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.