For Microsoft Reverse Proxy (https://github.com/microsoft/reverse-proxy) also known as YARP. Different from the other YARP: yarp.it
Questions tagged [ms-yarp]
75 questions
1
vote
1 answer
Is it possible to configure YARP during runtime?
I have a scenario where I would like to use YARP and be able to change the configuration (in this case the Address of a destination within a cluser) during runtime, is this possible?.
The idea is that we have an application that runs as two…

Inx51
- 1,911
- 3
- 24
- 44
1
vote
0 answers
Yarp integration with Dapr
I want to integrate YARP with DAPR.
My use case is that when a user hits the yarp URL, the downstream of it must invoke the DAPR sidecar URL for service invocation
Eg.
http(s):///api/< service name >/XXXXX (Upstream)
To…

MAQ
- 443
- 7
- 15
1
vote
1 answer
Having trouble for hitting two destination in YARP
I have two controller that I want to hit both controllers api at same time but it can hit only once randomly so please guide me solution from which I can solve this problem.
TeaController
[Route("api/[controller]")]
[ApiController]
public class…

Faizan Khan
- 11
- 2
1
vote
4 answers
How to transform request header such that I don't run into CORS error?
I currently have a site which take in all ingoing request and forward them to the correct website.
This is currently setup via this Yarp configuration:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore":…

J.Down
- 700
- 1
- 9
- 32
1
vote
1 answer
ASP.NET Core YARP Reverse Proxy multiple listen ports
I want to Reverse Proxy multiple ports, with YARP.
0.0.0.0:5001 => RemoteHost.com:7001
0.0.0.0:5002 => RemoteHost.com:7002
0.0.0.0:5003 => RemoteHost.com:7003
0.0.0.0:5004 => RemoteHost.com:7004
All the examples seem to map URLs, and not…

FlappySocks
- 3,772
- 3
- 32
- 33
1
vote
0 answers
Use YARP in kubernetes as a service plus ingress
Following this article.
I'm wondering if it's okay or good practice to add a BFF/gateway(YARP) as a service in K8S with an Ingress in front? I have some custom code in my YARP such as JWT validation and REDIS token invalidation services which seem…

Pilouk
- 1,267
- 1
- 18
- 36
1
vote
0 answers
The I/O operation has been aborted because of either a thread exit or an application request while trying to connect signalR endpoint through yarp
I am trying to connect signalR endpoint using Yarp as a reverse proxy.
However I faced this error:
The yarp configuration is:
"ReverseProxy": {
"Clusters": {
"ws-cluster": {
"Destinations": {
"ws-destination1": {
…

Mhaz2000
- 43
- 5
1
vote
1 answer
Yarp proxy does not log a redirect?
I am currently playing around with YARP (yet another reverse proxy)
And seem to have managed to "short-cicuit" a redirect?
one of the redirect is being logged, and the other one is not being logged eventhough they have been setup the same…

I am not Fat
- 283
- 11
- 36
1
vote
1 answer
Route '0' requires Hosts or Path specified. Set the Path to '/{**catchall}' to match all requests
I am trying to use Yarp in my gateway app for routing my applications. However as soon as it's started, I get "Route '0' requires Hosts or Path specified. Set the Path to '/{**catchall}' to match all requests."
Here is my AppSettings file:
…

Mhaz2000
- 43
- 5
1
vote
1 answer
How to switch between legacy and new app using YARP
I have a legacy Asp.Net Web forms app which I'm migrating to .net 5. I'm trying to migrate this piece by piece. I'm using Microsoft YARP as reverse proxy - https://github.com/microsoft/reverse-proxy which helps to retarget URLs of old application to…

Codie
- 464
- 2
- 5
- 16
0
votes
0 answers
How to configure Yarp routes based on attribute routing
i want to user a reverse proxy for a project im working and i have decided to try yarp.
Most if not all documentation on it uses catch-all on and that got me thinking how would i setup something like
/yarp-gateway/api/users,…
0
votes
0 answers
YARP - do not proxy to old API selected new endpoints
Im in the middle of process to rewrite endpoints from .NET Framework -> .NET6, we are using YARP to proxy request to old API.
Here is configuration of our Map Forwarder:
app.MapForwarder("/{**catch-all}", app.Configuration["ProxyTo"]!).Add(static…

Mateusz S.
- 21
- 5
0
votes
0 answers
Kestrel SNI certificate choosing (SSL/TLS)
I have a YARP gateway which uses the following configuration:
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://+:80"
},
"HttpsInlineCertAndKeyFile": {
"Url": "https://+:443",
"Certificate": {
"Path":…

Parsa99
- 307
- 1
- 13
0
votes
0 answers
Is there any way to route get and post to different cluster in MS YARP?
Do we have any setting option in MS Yarp to send http put/post requests to one cluster and http get to different cluster?
Or any way to apply different header transformation for http put/post and get request?
In this example I am trying to forward…

Sandeep Kumar
- 783
- 1
- 5
- 13
0
votes
0 answers
How does YARP load balancing work with Azure App Service Automatic scaling?
I have a angular frontend and three microservices developed using .NET 7 as mentioned below :
APIGatway using YARP 2.0 (Latest version)
Microservice1
Microservice2
I have the following deployment options:
Angular Frontend hosted in Azure App…

santosh kumar patro
- 7,231
- 22
- 71
- 143