-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Feature-16658][RPC] Implement of Netty add ssl #16659
Conversation
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.
Missing test, doc, DSIP.
public NettyRemotingServer(final NettyServerConfig serverConfig, final NettySslConfig nettySslConfig) { | ||
this.nettySslConfig = nettySslConfig; | ||
if (nettySslConfig.isEnabled()) { | ||
try { | ||
sslContext = SslContextBuilder.forServer(new File(nettySslConfig.getCertFilePath()), | ||
new File(nettySslConfig.getKeyFilePath())).build(); | ||
} catch (SSLException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} |
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.
NettySslConfig should as a field in NettyServerConfig and NettyClientConfig.
rpc: | ||
ssl: | ||
enabled: false | ||
cert-file-path: /path/cert.crt | ||
key-file-path: /path/private.pem |
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.
Should under master
Duplicated with #16673 |
Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md