Kibana health check through API endpoint doesn't work anymore

Solution Verified - Updated -

Issue

We're trying to monitor the kibana service (as we used to do in previous versoins) and the problem is when we try to curl the URL, we get the redirect response to the login page:

$ curl -k -H "Authorization: Bearer $(oc whoami -t)" -H "X-Proxy-Remote-User: $(oc whoami)" -H "X-Forwarded-For: 127.0.0.1" https://kibana.redhat.com/api/status -v

< HTTP/1.1 302 Found
< Content-Type: text/html; charset=utf-8
[...]
<a href="https://kibana.redhat.com/oauth/authorize?approval_prompt=force&amp;client_id=kibana-proxy&amp;redirect_uri=https%3A%2F%2Fkibana.redhat.com%2Foauth%2Fcallback&amp;response_type=code&amp;scope=user%3Ainfo+user%3Acheck-access+user%3Alist-projects&amp;state=757a6a76a8fd047ce76c9552861a8504%3A%2Fapi%2Fstatus">Found</a>.

Environment

OCP 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content