-
Notifications
You must be signed in to change notification settings - Fork 361
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
[CELEBORN-1348] Update infrastructure for SSL communication #2427
Conversation
The test failure looks unrelated to this PR, please let me know if I am missing anything:
|
+CC @otterc, @pan3793, @waitinfuture, @FMX |
* <p>If this method returns a ByteBuf, then that buffer's reference count will be incremented and | ||
* the caller will be responsible for releasing this new reference. | ||
*/ | ||
public abstract Object convertToNettyForSsl() throws IOException; |
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.
The encryption process will happen here in another PR?
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.
Yes, that is in a subsequent PR, which will use this method.
You can see this getting used in the consolidated PR (I am afk, so unable to point to exact details unfortunately).
This PR is only setting up the base infra for it.
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. This PR will be merged tonight. Waiting for others comments.
### What changes were proposed in this pull request? Update infrastructure for SSL support. Please see apache#2416 for the consolidated PR with all the changes for reference. ### Why are the changes needed? At a high level, the changes are: * `ManagedBuffer.convertToNettyForSsl`, to support SSL encryption. * Add `EncryptedMessageWithHeader`, which is used to wrap the message and body, for use with SSL. * `SslMessageEncoder` is an encoder for SSL ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The overall PR apache#2416 (and this PR as well) passes all tests, and this PR includes relevant subset of tests. Closes apache#2427 from mridulm/update-infra-for-ssl. Authored-by: Mridul Muralidharan <mridulatgmail.com> Signed-off-by: SteNicholas <[email protected]>
Thanks for the reviews @FMX, @RexXiong and @SteNicholas ! |
What changes were proposed in this pull request?
Update infrastructure for SSL support.
Please see #2416 for the consolidated PR with all the changes for reference.
Why are the changes needed?
At a high level, the changes are:
ManagedBuffer.convertToNettyForSsl
, to support SSL encryption.EncryptedMessageWithHeader
, which is used to wrap the message and body, for use with SSL.SslMessageEncoder
is an encoder for SSLDoes this PR introduce any user-facing change?
No.
How was this patch tested?
The overall PR #2416 (and this PR as well) passes all tests, and this PR includes relevant subset of tests.