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

[CELEBORN-1348] Update infrastructure for SSL communication #2427

Closed
wants to merge 2 commits into from

Conversation

mridulm
Copy link
Contributor

@mridulm mridulm commented Mar 27, 2024

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.
  • 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 #2416 (and this PR as well) passes all tests, and this PR includes relevant subset of tests.

mridulm pushed a commit to mridulm/celeborn that referenced this pull request Mar 27, 2024
@mridulm
Copy link
Contributor Author

mridulm commented Mar 27, 2024

The test failure looks unrelated to this PR, please let me know if I am missing anything:

[info] Test run org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController started
[info] Test org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController.testUserMetrics started
[info] Test org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController.testSingleUser started
[error] Test org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController.testSingleUser failed: java.lang.AssertionError: null, took 0.003 sec
[error]     at org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController.testSingleUser(TestCongestionController.java:75)
[error]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[error]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error]     at java.lang.reflect.Method.invoke(Method.java:568)
[error]     ...
[info] Test org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController.testMultipleUsers started
[info] Test run org.apache.celeborn.service.deploy.worker.congestcontrol.TestCongestionController finished: 1 failed, 0 ignored, 3 total, 4.018s

@mridulm
Copy link
Contributor Author

mridulm commented Mar 27, 2024

+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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

CodingCat pushed a commit to CodingCat/incubator-celeborn that referenced this pull request Apr 1, 2024
### 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]>
@mridulm
Copy link
Contributor Author

mridulm commented Apr 2, 2024

Thanks for the reviews @FMX, @RexXiong and @SteNicholas !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants