# KIbana api/status without auth?

**URL:** https://forum.search-guard.com/t/kibana-api-status-without-auth/492
**Category:** Search Guard
**Created:** [June 26, 2017, 12:11am UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492 "2017-06-26T00:11:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![posthamster](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@posthamster](https://forum.search-guard.com/u/posthamster)
#### Post date: [June 26, 2017, 12:11am UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/1 "2017-06-26T00:11:32Z")

</div>

Search Guard is installed, everything is great, except:

I have a VRRP health check for Kibana which is using curl to hit [https://kibana/api/status](https://kibana/api/status) to check for ‘green’, in case we need to fail over to another Kibana node.

The problem is, since installing Search Guard and the Kibana plugin I’m hitting /searchguard/login?nextUrl=%2Fapi%2Fstatus instead.

I’ve passed basic auth credentials with the check but that doesn’t work. Any way I can get around this? Or is it possible to expose the status API without using auth?

Thanks!

---

<div class="post-metadata">

### Author: ![Fabien\_Wernli](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Fabien\_Wernli](https://forum.search-guard.com/u/Fabien_Wernli)
#### Post date: [June 27, 2017, 11:46am UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/2 "2017-06-27T11:46:04Z")

</div>

So you created an internal user who is allowed to check health, and using curl -uuser:pass ?

---

<div class="post-metadata">

### Author: ![posthamster](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@posthamster](https://forum.search-guard.com/u/posthamster)
#### Post date: [June 28, 2017, 1:50am UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/3 "2017-06-28T01:50:15Z")

</div>

Yes, I’m currently testing with a user that has sg\_all\_access role. Previously curl would fetch the JSON result from /api/status/, but it’s now getting stuck on the login page.

My question is how to pass the credentials correctly, or how to bypass the Search Guard Kibana login page for this URL.

$ curl -vk -usomeuser:somepass [https://localhost/api/status](https://localhost/api/status)

- Trying 127.0.0.1…
- Connected to localhost (127.0.0.1) port 443 (#0)  
[…]

> GET /api/status HTTP/1.1  
> Host: localhost  
> Authorization: Basic Y2t0ZXN0OnBsb2tq  
> User-Agent: curl/7.47.0  
> Accept: _/_

\< HTTP/1.1 302 Found  
\< location: /searchguard/login?nextUrl=%2Fapi%2Fstatus  
\< kbn-name: kibana  
\< kbn-version: 5.4.2  
\< cache-control: no-cache  
\< content-length: 0  
\< Date: Wed, 28 Jun 2017 01:44:18 GMT  
\< Connection: keep-alive

---

<div class="post-metadata">

### Author: ![posthamster](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@posthamster](https://forum.search-guard.com/u/posthamster)
#### Post date: [June 28, 2017, 1:51am UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/4 "2017-06-28T01:51:14Z")

</div>

When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”

---

<div class="post-metadata">

### Author: ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)
#### Post date: [June 29, 2017, 7:54pm UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/5 "2017-06-29T19:54:02Z")

</div>

At the moment, you can’t. We always require an authenticated user to access Kibana. We’ll look into your issue, it’s been tracked here:

[https://github.com/floragunncom/search-guard-kibana-plugin/issues/31](https://github.com/floragunncom/search-guard-kibana-plugin/issues/31)

> **···**
>
> On Wednesday, June 28, 2017 at 3:51:15 AM UTC+2, CK wrote:
> 
> > When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”

---

<div class="post-metadata">

### Author: ![posthamster](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@posthamster](https://forum.search-guard.com/u/posthamster)
#### Post date: [June 29, 2017, 9:48pm UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/6 "2017-06-29T21:48:12Z")

</div>

OK, good to know you’re on it - thanks.

In the mean time I’ve adjusted my VRRP script to just check HTTP status, and hope that Kibana is OK 🙂

> **···**
>
> On Friday, 30 June 2017 07:54:02 UTC+12, Jochen Kressin wrote:
> 
> > At the moment, you can’t. We always require an authenticated user to access Kibana. We’ll look into your issue, it’s been tracked here:
> 
> > [https://github.com/floragunncom/search-guard-kibana-plugin/issues/31](https://github.com/floragunncom/search-guard-kibana-plugin/issues/31)
> > 
> > On Wednesday, June 28, 2017 at 3:51:15 AM UTC+2, CK wrote:
> > 
> > > When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”

---

<div class="post-metadata">

### Author: ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)
#### Post date: [July 4, 2017, 6:54pm UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/7 "2017-07-04T18:54:21Z")

</div>

@CK which version of ES/KI are you using, so we can prepare a snapshot for you to test?

> **···**
>
> On Thursday, June 29, 2017 at 11:48:12 PM UTC+2, CK wrote:
> 
> > OK, good to know you’re on it - thanks.
> > 
> > In the mean time I’ve adjusted my VRRP script to just check HTTP status, and hope that Kibana is OK 🙂
> > 
> > On Friday, 30 June 2017 07:54:02 UTC+12, Jochen Kressin wrote:
> > 
> > > At the moment, you can’t. We always require an authenticated user to access Kibana. We’ll look into your issue, it’s been tracked here:
> 
> > > [https://github.com/floragunncom/search-guard-kibana-plugin/issues/31](https://github.com/floragunncom/search-guard-kibana-plugin/issues/31)
> > > 
> > > On Wednesday, June 28, 2017 at 3:51:15 AM UTC+2, CK wrote:
> > > 
> > > > When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”

---

<div class="post-metadata">

### Author: ![posthamster](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@posthamster](https://forum.search-guard.com/u/posthamster)
#### Post date: [July 4, 2017, 11:52pm UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/8 "2017-07-04T23:52:59Z")

</div>

Hi Jochen,

ES/Kibana 5.4.3

Thanks very much.

> **···**
>
> On Wednesday, 5 July 2017 06:54:21 UTC+12, Jochen Kressin wrote:
> 
> > @CK which version of ES/KI are you using, so we can prepare a snapshot for you to test?
> > 
> > On Thursday, June 29, 2017 at 11:48:12 PM UTC+2, CK wrote:
> > 
> > > OK, good to know you’re on it - thanks.
> > > 
> > > In the mean time I’ve adjusted my VRRP script to just check HTTP status, and hope that Kibana is OK 🙂
> > > 
> > > On Friday, 30 June 2017 07:54:02 UTC+12, Jochen Kressin wrote:
> > > 
> > > > At the moment, you can’t. We always require an authenticated user to access Kibana. We’ll look into your issue, it’s been tracked here:
> 
> > > > [https://github.com/floragunncom/search-guard-kibana-plugin/issues/31](https://github.com/floragunncom/search-guard-kibana-plugin/issues/31)
> > > > 
> > > > On Wednesday, June 28, 2017 at 3:51:15 AM UTC+2, CK wrote:
> > > > 
> > > > > When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”

---

<div class="post-metadata">

### Author: ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)
#### Post date: [July 6, 2017, 3:34pm UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/9 "2017-07-06T15:34:18Z")

</div>

Can you please try this snapshot for 5.4.3:

[https://cdn.filestackcontent.com/I9YZTMFrTu663RBxQyj1](https://cdn.filestackcontent.com/I9YZTMFrTu663RBxQyj1)

Since we needed to change some URLs, please follow these steps when installing the snapshot to avoid caching problems:

- Uninstall the old version of the plugin

- Start Kibana once without the SG plugin. This will clear the chaches

- Install the snapshot, and start again

See also the last comments in this thread about the caching: [https://github.com/floragunncom/search-guard/issues/345](https://github.com/floragunncom/search-guard/issues/345)

Please let us know if the snapshot works for you, so we can work towards the next official release.

> **···**
>
> On Wednesday, July 5, 2017 at 1:52:59 AM UTC+2, CK wrote:
> 
> > Hi Jochen,
> > 
> > ES/Kibana 5.4.3
> > 
> > Thanks very much.
> > 
> > On Wednesday, 5 July 2017 06:54:21 UTC+12, Jochen Kressin wrote:
> > 
> > > @CK which version of ES/KI are you using, so we can prepare a snapshot for you to test?
> > > 
> > > On Thursday, June 29, 2017 at 11:48:12 PM UTC+2, CK wrote:
> > > 
> > > > OK, good to know you’re on it - thanks.
> > > > 
> > > > In the mean time I’ve adjusted my VRRP script to just check HTTP status, and hope that Kibana is OK 🙂
> > > > 
> > > > On Friday, 30 June 2017 07:54:02 UTC+12, Jochen Kressin wrote:
> > > > 
> > > > > At the moment, you can’t. We always require an authenticated user to access Kibana. We’ll look into your issue, it’s been tracked here:
> 
> > > > > [https://github.com/floragunncom/search-guard-kibana-plugin/issues/31](https://github.com/floragunncom/search-guard-kibana-plugin/issues/31)
> > > > > 
> > > > > On Wednesday, June 28, 2017 at 3:51:15 AM UTC+2, CK wrote:
> > > > > 
> > > > > > When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”

---

<div class="post-metadata">

### Author: ![posthamster](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@posthamster](https://forum.search-guard.com/u/posthamster)
#### Post date: [July 6, 2017, 9:19pm UTC](https://forum.search-guard.com/t/kibana-api-status-without-auth/492/10 "2017-07-06T21:19:28Z")

</div>

Hi Jochen,

This snapshot works great! Thank you!

> **···**
>
> On Friday, 7 July 2017 03:34:19 UTC+12, Jochen Kressin wrote:
> 
> > Can you please try this snapshot for 5.4.3:
> > 
> > [https://cdn.filestackcontent.com/I9YZTMFrTu663RBxQyj1](https://cdn.filestackcontent.com/I9YZTMFrTu663RBxQyj1)
> 
> > Since we needed to change some URLs, please follow these steps when installing the snapshot to avoid caching problems:
> 
> > 
> 
> > - Uninstall the old version of the plugin
> 
> > - Start Kibana once without the SG plugin. This will clear the chaches
> 
> > - Install the snapshot, and start again
> 
> > 
> 
> > See also the last comments in this thread about the caching: [https://github.com/floragunncom/search-guard/issues/345](https://github.com/floragunncom/search-guard/issues/345)
> 
> > 
> 
> > Please let us know if the snapshot works for you, so we can work towards the next official release.
> 
> > 
> 
> > On Wednesday, July 5, 2017 at 1:52:59 AM UTC+2, CK wrote:
> > 
> > > Hi Jochen,
> > > 
> > > ES/Kibana 5.4.3
> > > 
> > > Thanks very much.
> > > 
> > > On Wednesday, 5 July 2017 06:54:21 UTC+12, Jochen Kressin wrote:
> > > 
> > > > @CK which version of ES/KI are you using, so we can prepare a snapshot for you to test?
> > > > 
> > > > On Thursday, June 29, 2017 at 11:48:12 PM UTC+2, CK wrote:
> > > > 
> > > > > OK, good to know you’re on it - thanks.
> > > > > 
> > > > > In the mean time I’ve adjusted my VRRP script to just check HTTP status, and hope that Kibana is OK 🙂
> > > > > 
> > > > > On Friday, 30 June 2017 07:54:02 UTC+12, Jochen Kressin wrote:
> > > > > 
> > > > > > At the moment, you can’t. We always require an authenticated user to access Kibana. We’ll look into your issue, it’s been tracked here:
> 
> > > > > > [https://github.com/floragunncom/search-guard-kibana-plugin/issues/31](https://github.com/floragunncom/search-guard-kibana-plugin/issues/31)
> > > > > > 
> > > > > > On Wednesday, June 28, 2017 at 3:51:15 AM UTC+2, CK wrote:
> > > > > > 
> > > > > > > When I say “previously” I mean “prior to installing the Search Guard Kibana plugin”
