Skip to content
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

feat!(core): enable tls for grpc connection #3922

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

vgonkivs
Copy link
Member

@vgonkivs vgonkivs commented Nov 6, 2024

This PR includes all changes from #3917.
The PR introduces 2 additional fields in the core config and 2 cli flags that allow to configure these fields.

@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 26.89076% with 87 lines in your changes missing coverage. Please review.

Project coverage is 45.32%. Comparing base (2469e7a) to head (7bf3546).
Report is 386 commits behind head on main.

Files with missing lines Patch % Lines
state/core_access.go 33.96% 31 Missing and 4 partials ⚠️
nodebuilder/core/tls.go 0.00% 33 Missing ⚠️
nodebuilder/state/core.go 0.00% 11 Missing ⚠️
nodebuilder/core/flags.go 63.63% 6 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3922      +/-   ##
==========================================
+ Coverage   44.83%   45.32%   +0.49%     
==========================================
  Files         265      309      +44     
  Lines       14620    21974    +7354     
==========================================
+ Hits         6555     9960    +3405     
- Misses       7313    10937    +3624     
- Partials      752     1077     +325     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vgonkivs vgonkivs changed the title improvements to pr-3917 feat!(core): enable tls for grpc connection Nov 6, 2024
@vgonkivs vgonkivs self-assigned this Nov 6, 2024
@vgonkivs vgonkivs added kind:break! Attached to breaking PRs kind:feat Attached to feature PRs labels Nov 6, 2024
@vgonkivs vgonkivs marked this pull request as ready for review November 6, 2024 13:32
// It should not include file names('cert.pem' and 'key.pem').
// If left empty, the client will be configured for an insecure (non-TLS) connection.
TLSPath string
// XTokenPath specifies the file path to the JSON file containing the X-Token for gRPC authentication.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments say this is path to the JSON file, but due to the use of the xtoken const, needs to be the path to the directory containing a file named xtoken.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:break! Attached to breaking PRs kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants