When configuring a service that also uses the request-transformer plugin to rewrite the Host header to the upstream service, the GET /v2/namespaces/{ns}/services endpoint shows the service as down, when in fact both the upstream and APS service are operating normally.
The GET /v2/namespaces/{ns}/services endpoint shows the service as up
Observed behaviour
The GET /v2/namespaces/{ns}/services endpoint erroneously responds with a "404 Down" response (in this case, because the upstream returns 404 for unknown hosts).
curl https://aps-docs.api.gov.bc.ca returns an HTTP 200 code and the correct response from the upstream service.
When configuring a service that also uses the
request-transformer
plugin to rewrite theHost
header to the upstream service, theGET /v2/namespaces/{ns}/services
endpoint shows the service as down, when in fact both the upstream and APS service are operating normally.gwconfig.yaml
gwa-api Response
Expected behaviour
The
GET /v2/namespaces/{ns}/services
endpoint shows the service as upObserved behaviour
The
GET /v2/namespaces/{ns}/services
endpoint erroneously responds with a "404 Down" response (in this case, because the upstream returns 404 for unknown hosts).curl https://aps-docs.api.gov.bc.ca
returns an HTTP 200 code and the correct response from the upstream service.