-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
TLS support for gRPC Query server #2297
Conversation
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
Please see the build error:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, for the PR, lgtm aside from a couple minor issues
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
Thanks for the review! I adjusted the code based on suggestions. For docs, i'll open a separate PR in documentation repo |
Codecov Report
@@ Coverage Diff @@
## master #2297 +/- ##
==========================================
- Coverage 96.23% 96.21% -0.02%
==========================================
Files 218 218
Lines 10692 10704 +12
==========================================
+ Hits 10289 10299 +10
- Misses 347 350 +3
+ Partials 56 55 -1
Continue to review full report at Codecov.
|
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
@jan25 let me know if you'd like to increase unit test coverage in server.go |
Yes, let me see to improve the coverage |
I see two ways to improve coverage - One is to write |
It would be nice to have both, but looking at collector code we don't have tests for the client/server TLS. Let's at least add tests for the error cases (like invalid path to a cert file). In the future we may consolidate starting the gRPC server into a shared package that can be tested for TLS. |
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
Thanks, @jan25 🎉 |
Related to: * jaegertracing/jaeger#2337 * jaegertracing/jaeger#2297 Signed-off-by: Yuri Shkuro <github@ysh.us>
Which problem is this PR solving?
Short description of the changes
pkg/config/tlscfg
and added new query optionsTODO
- Add docs for(will go in documentation repo)--query.grpc.tls.*
options