-
I'm not able to see where the breaking change may be, but after upgrading to preview 8 all of our requests fail with the error below. I have included our config from appsettings. We aren't doing any config in code. Is it possible our route transforms aren't working like they did in preview 7?
Config: "ReverseProxy": {
"Routes": [
{
"RouteId": "PtmsDevReportingApiRoute",
"ClusterId": "PtmsDevReportingCluster",
"CorsPolicy": "AllowDevApiOrigins",
"Match": {
"Hosts": [ "ptms-dev.wakegov.com" ],
"Path": "/api/reports/{**catch-all}"
},
"Transforms": [
{ "PathRemovePrefix": "/api" },
{
"RequestHeader": "Host",
"Set": "services-ptms-dev.wakegov.com"
}
]
},
{
"RouteId": "PtmsDevApiRoute",
"ClusterId": "PtmsDevCluster",
"CorsPolicy": "AllowDevApiOrigins",
"Match": {
"Hosts": [ "ptms-dev.wakegov.com" ],
"Path": "/api/{**catch-all}"
},
"Transforms": [
{ "PathRemovePrefix": "/api" },
{
"RequestHeader": "Host",
"Set": "services-ptms-dev.wakegov.com"
}
]
},
{
"RouteId": "PtmsDevAuthRoute",
"ClusterId": "PtmsDevCluster",
"CorsPolicy": "AllowDevAuthOrigins",
"Match": {
"Hosts": [ "services-ptms-dev.wakegov.com" ],
"Path": "/identity/{**catch-all}"
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
},
{
"RouteId": "PtmsDevReportingServicesCatchAllRoute",
"ClusterId": "PtmsDevReportingCluster",
"CorsPolicy": "disable",
"Match": {
"Hosts": [ "services-ptms-dev.wakegov.com" ],
"Path": "/reports/{**catch-all}"
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
},
{
"RouteId": "PtmsDevServicesCatchAllRoute",
"ClusterId": "PtmsDevCluster",
"CorsPolicy": "disable",
"Match": {
"Hosts": [ "services-ptms-dev.wakegov.com" ],
"Path": "{**catch-all}"
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
},
{
"RouteId": "PtmsDevClientRoute",
"ClusterId": "PtmsDevCluster",
"CorsPolicy": "disable",
"Match": {
"Hosts": [ "ptms-dev.wakegov.com" ]
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
},
{
"RouteId": "PtmsStagingApiRoute",
"ClusterId": "PtmsStagingCluster",
"Match": {
"Hosts": [ "ptms-staging.wakegov.com" ],
"Path": "/api/{**catch-all}"
},
"Transforms": [
{ "PathRemovePrefix": "/api" },
{
"RequestHeader": "Host",
"Set": "services-ptms-staging.wakegov.com"
}
]
},
{
"RouteId": "PtmsStagingAuthRoute",
"ClusterId": "PtmsStagingCluster",
"CorsPolicy": "AllowStagingAuthOrigins",
"Match": {
"Hosts": [ "services-ptms-staging.wakegov.com" ],
"Path": "/identity/{**catch-all}"
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
},
{
"RouteId": "PtmsStagingServicesCatchAllRoute",
"ClusterId": "PtmsStagingCluster",
"Match": {
"Hosts": [ "services-ptms-staging.wakegov.com" ],
"Path": "{**catch-all}"
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
},
{
"RouteId": "PtmsStagingClientRoute",
"ClusterId": "PtmsStagingCluster",
"CorsPolicy": "disable",
"Match": {
"Hosts": [ "ptms-staging.wakegov.com" ]
},
"Transforms": [
{ "RequestHeaderOriginalHost": "true" }
]
}
],
"Clusters": {
"PtmsDevCluster": {
"Destinations": {
"lrptmsdev1": {
"Address": "https://lrptmsdev1/"
},
"lrptmsdev2": {
"Address": "https://lrptmsdev2/"
}
}
},
"PtmsDevReportingCluster": {
"Destinations": {
"lrptmsrptdev1": {
"Address": "https://lrptmsrptdev1/"
}
}
},
"PtmsStagingCluster": {
"Destinations": {
"lrptmsstaging1": {
"Address": "https://lrptmsstaging1/"
},
"lrptmsstaging2": {
"Address": "https://lrptmsstaging2/"
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Interesting timing, we just released preview10 today 😁. RemoteCertificateNameMismatch implies that the destination's certificate host name doesn't match the Host header on the request. Is that service expecting the public host or the internal one? Is see your setting |
Beta Was this translation helpful? Give feedback.
Interesting timing, we just released preview10 today 😁.
https://github.com/microsoft/reverse-proxy/releases/tag/v1.0.0-preview10
RemoteCertificateNameMismatch implies that the destination's certificate host name doesn't match the Host header on the request. Is that service expecting the public host or the internal one? Is see your setting
"RequestHeaderOriginalHost": "true"
to flow the public host on some routes, but using{ "RequestHeader": "Host", "Set": "services-ptms-dev.wakegov.com" }
on others? Which route is failing?