-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Use SecurityUtility class #1213
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
Conversation
| // allows insecure connection | ||
| builder.trustManager(InsecureTrustManagerFactory.INSTANCE); | ||
| SslContext sslCtx = builder.clientAuth(ClientAuth.OPTIONAL).build(); | ||
| SslContext sslCtx = SecurityUtility.createNettySslContextForClient(true, |
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.
Note that the first argument forallowInsecureConnection is true because the original code always allows insecure connection regardless of configuration. If it wasn't intentional, it need to be fixed.
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.
can we also add comment SecurityUtility.createNettySslContextForClient(true\* to allow InsecureConnection*\,..)
|
I know |
rdhabalia
left a comment
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.
LGTM..
| // allows insecure connection | ||
| builder.trustManager(InsecureTrustManagerFactory.INSTANCE); | ||
| SslContext sslCtx = builder.clientAuth(ClientAuth.OPTIONAL).build(); | ||
| SslContext sslCtx = SecurityUtility.createNettySslContextForClient(true, |
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.
can we also add comment SecurityUtility.createNettySslContextForClient(true\* to allow InsecureConnection*\,..)
merlimat
left a comment
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.
👍
Motivation
Modifications
createNettySslContexttocreateNettySslContextForClientcreateNettySslContextForServercreateNettySslContextForServerfromPulsarChannelInitializerandServiceChannelInitializerResult