Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make room for additional revocation strategies. #209

Closed
wants to merge 20 commits into from

Conversation

gibbz00
Copy link

@gibbz00 gibbz00 commented Nov 26, 2023

Have to unfortunately move on to other things, but posting this as a draft anyways, in case someone wants to pick up the work. (Also ok with it being immediately closed.)

The commits are by themselves fairly descriptive and probably give a better summary than anything I could write up here.

The next step for me towards rustls/rustls#1541 was to make an attempt at initial revocation configuration support in rustls, possibly letting the client config pass down CLRs. Then implementing OCSP response checking in webpki only once I got a better understanding of how they would be passed on from rustls.

I probably won't be resolving any review suggestions.

All the best ✌️

In preparation for support of additional revocation checking strategies,
first one being support for OCSP stapling.
* `CrlsRequired` has been generalized to `InadequateStrategy(&'static str)`
  The `Copy` derive has for that reason been removed.
* Removed the private `CertNotRevoked::assertion()` constructor in favor
  of construction by `CertRevoked(())`. It's simply for the sake of
  keeping things consistent with the other result markers.
The goal is to ease identification and management components that can be
used for other strategies.
Have check() return `Result<RevocationStatus, Error>`.

Previous `Result<Option<CertNotRevoked>, Error>` returning `Ok(None)`
doesn't convey much for how/if the caller should handle such function
results. This should hopefully be less ambiguous now that it instead
returns `Ok(RevocationStatus::Skipped)`.
Otherwise, it becomes possible to easily circumvent the strategy adequacy
verification done by the builder.
Makes it's done in `CertRevocationList::verify_signature()` and not in the
`RevocationVerifier` implementation.
@gibbz00 gibbz00 marked this pull request as draft November 26, 2023 09:33
@djc
Copy link
Member

djc commented Dec 11, 2023

Thanks for submitting this! Looks like you've taken care to build a clean commit history, but I'm not sure we have resources in the near future to closely review or finish this. As such, I'll close this, but we'd be happy for anyone who wants to pick this back up.

@djc djc closed this Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants