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

Port sharing using Kestrel+YARP #39640

Open
1 of 4 tasks
adityamandaleeka opened this issue Jan 19, 2022 · 7 comments
Open
1 of 4 tasks

Port sharing using Kestrel+YARP #39640

adityamandaleeka opened this issue Jan 19, 2022 · 7 comments
Assignees
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Milestone

Comments

@adityamandaleeka
Copy link
Member

adityamandaleeka commented Jan 19, 2022

Story for tracking a port-sharing experience using Kestrel + YARP

@ghost
Copy link

ghost commented Jan 19, 2022

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@adityamandaleeka adityamandaleeka changed the title Port sharing for Kestrel Port sharing using Kestrel+YARP Jan 19, 2022
@adityamandaleeka
Copy link
Member Author

Configuration stuff can be incremental; we don't need to nail it down entirely for 7 since we can always add more later.

@Tratcher Tratcher removed their assignment Oct 18, 2022
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
@rizi
Copy link

rizi commented Nov 6, 2023

Any update on this?
br

@davidfowl
Copy link
Member

Our goto solution for port sharing is YARP. We should have a sample somewhere on how to set it up (cc @Tratcher) but the end to end isn't as smooth as it could be. It still requires manual code and configuration, but it works.

@rizi
Copy link

rizi commented Nov 6, 2023

Our goto solution for port sharing is YARP. We should have a sample somewhere on how to set it up (cc @Tratcher) but the end to end isn't as smooth as it could be. It still requires manual code and configuration, but it works.

@davidfowl thats great!
@Tratcher it would be great if you could direct me to the sample.

@Tratcher
Copy link
Member

Tratcher commented Nov 6, 2023

@rizi the general YARP docs are here: https://microsoft.github.io/reverse-proxy/articles/config-files.html. You don't have to do anything special from YARP's perspective for the port sharing scenario, just set up routes to decide which destination gets which requests (e.g. by host, path, etc.).

Would you want TLS/HTTPS enabled on the shared port using different host names / certificates? Then you'd need to configure Kestrel with multiple certs. https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-7.0#configure-endpoints-using-server-name-indication

@amcasey amcasey modified the milestones: .NET 8 Planning, Backlog Feb 14, 2024
@sebastienros
Copy link
Member

This is the sample I worked on at some point https://github.com/sebastienros/udssample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

No branches or pull requests

6 participants