[CDRIVER-3665] End-to-end test for OCSP cache Created: 08/May/20  Updated: 30/Jul/20  Resolved: 20/May/20

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.17.0-beta2, 1.17.0

Type: Improvement Priority: Major - P3
Reporter: Clyde Bazile III (Inactive) Assignee: Clyde Bazile III (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CDRIVER-3408 OCSP Support Closed
Related
is related to CDRIVER-3617 Caching OCSP revocation status Closed
Epic Link: C 4.4 Support

 Description   

There are currently no end-to-end tests for our OCSP cache. While there is no clear guidance from the OCSP Support Test Plan on how to test it, there is clear guidance on the expected behavior of the cache. We should create end-to-end tests to ensure our cache works as expected. I propose that we test our cache by:

  • Starting an invalid mock OCSP responder that revokes all certificates.
  • Running a mongod with a cert that lists that responder as it's OCSP responder.
  • Ensuring that the cert has been revoked.
  • Shutting down the invalid mock OCSP responder and starting up a valid OCSP responder with the same address.
  • Ensuring the cert is still revoked.

We should retrieve the OCSP response information from our cache during the last step and avoid querying the valid OCSP responder.



 Comments   
Comment by Githook User [ 25/May/20 ]

Author:

{'name': 'Clyde Bazile', 'email': '34226620+bazile-clyde@users.noreply.github.com', 'username': 'bazile-clyde'}

Message: CDRIVER-3665 End-to-end test for OCSP caching (#612)
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/85f05f185f571868814f795ce98f71d4672751fc

Comment by Githook User [ 20/May/20 ]

Author:

{'name': 'Clyde Bazile', 'email': '34226620+bazile-clyde@users.noreply.github.com', 'username': 'bazile-clyde'}

Message: CDRIVER-3665 End-to-end test for OCSP caching (#612)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/45ff8b6a4e9c700fd9e2e2d7de3594ddf2125e1c

Generated at Wed Feb 07 21:18:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.