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

[Feature-16658][RPC] Implement of Netty add ssl #16659

Closed
wants to merge 7 commits into from

Conversation

wangxj3
Copy link
Contributor

@wangxj3 wangxj3 commented Sep 26, 2024

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

@wangxj3 wangxj3 changed the title [Feature-16658]Netty add ssl Netty add ssl [Feature]Netty add ssl Netty add ssl Sep 26, 2024
@wangxj3 wangxj3 changed the title [Feature]Netty add ssl Netty add ssl [Feature-16658][RPC] Implement of Netty add ssl Sep 26, 2024
Copy link
Member

@ruanwenjun ruanwenjun left a 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.

Comment on lines +79 to +88
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);
}
}
Copy link
Member

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.

Comment on lines +151 to +155
rpc:
ssl:
enabled: false
cert-file-path: /path/cert.crt
key-file-path: /path/private.pem
Copy link
Member

Choose a reason for hiding this comment

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

Should under master

@SbloodyS
Copy link
Member

Duplicated with #16673

@SbloodyS SbloodyS closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants