tls: remove compatibility shim for X509_V_FLAG_NO_CHECK_TIME#43770
tls: remove compatibility shim for X509_V_FLAG_NO_CHECK_TIME#43770ggreenway merged 1 commit intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Greg Greenway <ggreenway@apple.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the TLS certificate validation logic by removing a compatibility shim that was no longer necessary. The Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes a compatibility shim for X509_V_FLAG_NO_CHECK_TIME, which is a good cleanup. However, the new implementation using X509_STORE_set_flags and X509_STORE_CTX_set_flags reveals a pre-existing critical issue where certificate verification flags are overwritten instead of being accumulated. This could lead to security features like CRL checking being silently disabled. I've added comments in the relevant files with suggestions to fix this by correctly combining the flags.
source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc
Show resolved
Hide resolved
RyanTheOptimist
left a comment
There was a problem hiding this comment.
Thanks for the cleanup!
|
/retest |
…oxy#43770) This deletes code that wasn't needed anymore Signed-off-by: Greg Greenway <ggreenway@apple.com> Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
…oxy#43770) This deletes code that wasn't needed anymore Signed-off-by: Greg Greenway <ggreenway@apple.com>
…oxy#43770) This deletes code that wasn't needed anymore Signed-off-by: Greg Greenway <ggreenway@apple.com>
Additional Description: This deletes code that wasn't needed anymore
Risk Level: Low
Testing: Existing tests
Docs Changes: none
Release Notes: none