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

Validate OCSP response is signed by expected issuer #26091

Merged

Conversation

stevendpclark
Copy link
Contributor

  • There was a bug in the OCSP response signature logic, it properly verified but kept around the ocspRes object around so we ignored the errors found and passed the response object back up the stack.
  • Now extract the verification logic into a dedicated function, if it returns an error, blank the ocspRes response as we can't trust it.
  • Address an issue that the OCSP requests from multiple servers were clobbering each others responses as the index loop variable was not properly captured.
  • Add a missing validation that the response was for the serial number we requested

… matches request

 - There was a bug in the OCSP response signature logic, it properly
   verified but kept around the ocspRes object around so we ignored
   the errors found and passed the response object back up the stack.
 - Now extract the verification logic into a dedicated function, if
   it returns an error, blank the ocspRes response as we can't trust it.
 - Address an issue that the OCSP requests from multiple servers were
   clobbering each others responses as the index loop variable was not
   properly captured.
 - Add a missing validation that the response was for the serial number
    we requested
@stevendpclark stevendpclark added bug Used to indicate a potential bug auth/cert Authentication - certificates backport/1.14.x Backport changes to `release/1.14.x` backport/1.15.x Backport changes to `release/1.15.x` backport/1.16.x Backport changes to `release/1.16.x` labels Mar 22, 2024
@stevendpclark stevendpclark added this to the 1.14.11 milestone Mar 22, 2024
@stevendpclark stevendpclark self-assigned this Mar 22, 2024
@stevendpclark stevendpclark requested a review from a team as a code owner March 22, 2024 13:05
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Mar 22, 2024
Copy link

github-actions bot commented Mar 22, 2024

CI Results:
All Go tests succeeded! ✅

Copy link

github-actions bot commented Mar 22, 2024

Build Results:
All builds succeeded! ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth/cert Authentication - certificates backport/1.14.x Backport changes to `release/1.14.x` backport/1.15.x Backport changes to `release/1.15.x` backport/1.16.x Backport changes to `release/1.16.x` bug Used to indicate a potential bug hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants