Macos system roots implementation#16246
Closed
maliksaafir wants to merge 36 commits into
Closed
Conversation
|
|
|
6593233 to
e10f67b
Compare
|
|
|
|
|
361ffcf to
562a1e5
Compare
|
562a1e5 to
f409732
Compare
Added a flag-guarded feature that allows gRPC to load TLS/SSL roots from the OS trust store. This is the Linux-specific implementation of such feature.
- Removed instances of d_type, now using POSIX-compliant stat; - Not including dirent.h on Windows anymore.
- Now using suggested structure to handle platform specificity; - Addressed first wave of review comments and suggestions.
- should fix build errors on non-linux systems - slight formatting
- Fixed wrong include statement that was causing Windows failures - Added system roots flag to grpc_security_constants.h - Removed MacOS and Windows references, focusing on Linux now - Removed old unit test from security_connector_test.cc - Regenerated project files and added new files to BUILD, which should address Bazel build failures.
- One of the unit tests introduced in security_connector_test is now Linux-specific as a way to temporarily address the issue while we investigate its failure on MacOS. - Minor comment improvements.
- add missing gpr_frees and grpc_slice_unrefs
gpr_getenv() was causing memory leaks. Freed variables accordingly. After a quick check, valgrind does not show any memory leaks now.
- slight formatting, reformatting - finish testing TODO
- fix fallback preprocessor check - remove duplicate build rule
f409732 to
fd40338
Compare
|
|
- TODO for compatibility with iOS Security library
|
|
|
|
Contributor
|
Seems obsolete, closing. |
Contributor
|
I wonder why this is closed without merging. Is there still a plan to use system trust store on Mac? |
Contributor
|
This is mainly a cleanup-close. Code that has been rotting since 8+ months probably needs revisiting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This implements the utilization of MacOS system root certificates. It's currently missing the implementation of a feature to remove distrusted certs from the cert pool gathered by the code.