-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically add and remove client CAs to GRPCServer
This completes the work for handling mutual TLS by adding two new methods to the GRPCServer object: - AppendClientRootCAs - RemoveClientRootCAs These functions allow you to add/remove root certificates used to verify client certificates to a running instance of a GRPCServer Had to refactor the internal structure in order to deal with the way pointers work in Go in order for this to work. * patchset 2 added the JIRA entry to commit * patchset 3 adds locking to make Append and/or Remove mutually exclusive. Given that these should not be called too often, just went with a stright mutex lock. Added test which passes the race detector. NOTE: there is still a possible race condition (which will not crash the process) between Append/Remove and the the TLS server handling handshakes. Will address in future changeset if people think its needed Fixes FAB-1492 Change-Id: I600bff8a5aa448a1fe301c9397daca5bd31d367a Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
- Loading branch information
1 parent
af3a722
commit 05bb7d6
Showing
2 changed files
with
441 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.