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

Add SSL support for Remote.Hosting #345

Merged
merged 5 commits into from Aug 3, 2023

Conversation

Arkatufus
Copy link
Contributor

@Arkatufus Arkatufus commented Aug 1, 2023

Fixes #327

Changes

  • Add SSL options to DotNetty transport

@Aaronontheweb
Copy link
Member

NOTE: this breaks MS.Ext.Configuration binding because the transport list has to be based on an abstract class.

in that case, might be better off not doing this until we actually need additional transports.

@Arkatufus
Copy link
Contributor Author

Updated the PR comment to explain why configuration binding doesn't work

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

Left some thoughts

public override string TransportId { get; }
protected override void Build(System.Text.StringBuilder builder) { }
}
public sealed class DotNettyUdpTransportOptions : Akka.Remote.Hosting.DotNettyTransportOptions
Copy link
Member

Choose a reason for hiding this comment

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

Remove - not supported in Akka.Remote and most likely won't be.

{
public RemoteOptions() { }
public System.Collections.Generic.List<Akka.Remote.Hosting.RemoteTransportOptions> EnabledTransports { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

You know, I'm thinking that even though we could support this - it's probably a footgun for 99.9999999999999% of users. Make super-users use HOCON if they want this feature.

public abstract string TransportId { get; }
protected abstract void Build(System.Text.StringBuilder builder);
}
public sealed class SslCertificateOptions
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@Arkatufus
Copy link
Contributor Author

Remove multi-transport support

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb merged commit 3d64b68 into akkadotnet:dev Aug 3, 2023
2 checks passed
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.

Akka.Remote: need to add TLS settings for DotNetty transport
2 participants