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

support ssl encryption #191

Merged
merged 2 commits into from
Apr 3, 2023
Merged

Conversation

MegaByte875
Copy link
Contributor

@MegaByte875 MegaByte875 commented Apr 1, 2023

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@MegaByte875 MegaByte875 added the doc affected PR: improvements or additions to documentation label Apr 1, 2023
@MegaByte875 MegaByte875 mentioned this pull request Apr 1, 2023
imagePullPolicy: Always

imagePullSecrets: []
imagePullSecrets: [ ]
Copy link
Contributor

Choose a reason for hiding this comment

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

why need add a extra space?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is formatted by development tool.

Comment on lines 37 to 40
if opts.EnableClusterTLS {
sock, err = thrift.NewSSLSocketTimeout(endpoint, opts.TLSConfig, opts.Timeout)
} else if opts.EnableMetaTLS && !opts.IsStorage {
sock, err = thrift.NewSSLSocketTimeout(endpoint, opts.TLSConfig, opts.Timeout)
Copy link
Contributor

Choose a reason for hiding this comment

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

if opts.EnableClusterTLS or opts.EnableMetaTLS && !opts.IsStorage sock are same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here can be simplified.

Copy link
Contributor

@kqzh kqzh left a comment

Choose a reason for hiding this comment

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

LGTM

@MegaByte875 MegaByte875 merged commit 367c133 into vesoft-inc:master Apr 3, 2023
@MegaByte875 MegaByte875 deleted the ssl_support branch July 24, 2023 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc affected PR: improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants