[release/8.0] Support specifying multiple directories through SSL_CERT_DIR. #93749
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #92920 to release/8.0
Customer Impact
Customers running applications in Kubernetes on Linux can experience HTTPS certificate trust failures.
OpenSSL provides an SSL_CERT_DIR value which contains a delimiter-separated list of paths to directories containing trusted CA certificates. That value is being interpreted as a single path instead of a list of paths, which prevents certificates in those directories from being respected.
This was reported, fixed, and tested by @tmds. Support for this type of environment is being backported to RHEL .NET 8 distros that derive from CentOS Stream. Backporting this fix to .NET 8 ensures we have consistent behavior between RHEL .NET 8 and other distributions of .NET 8.
Testing
A new Linux-specific unit test was added for verifying the behavior. Manual testing verified the issue is fixed in the RHEL Kubernetes environments. Manual testing also covered NFS and SMB mount scenarios.
This same issue was encountered in Go, with a similar fix made in February 2020.
Risk
Medium, but confidence is high. Changes to these scenarios would have high impact if there is a regression, but adequate reviews and testing have been done to give us confidence in this fix.