# Select your space You can change your space at anytime{ No spaces match search criteria }

**URL:** <https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565>\
**Category:** Kibana\
**Created:** [June 18, 2020, 5:47am UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565 "2020-06-18T05:47:07Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![ClubberLang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clubberlang/32/72169_2.png) [@ClubberLang](https://discuss.elastic.co/u/ClubberLang)\
**Post date:** [July 29, 2020, 11:15am UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/22 "2020-07-29T11:15:54Z")

</div>

Oups, hacked again ! Basic auth does not help ☹

---

<div class="post-metadata">

**Author:** ![joshbressers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshbressers/32/42332_2.png) [@joshbressers](https://discuss.elastic.co/u/joshbressers)\
**Post date:** [July 29, 2020, 2:32pm UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/23 "2020-07-29T14:32:43Z")

</div>

Hi @ClubberLang,

Basic auth should stop this attack. Can you make sure all Elasticsearch instances in your cluster have basic auth enabled. You can verify this with curl

$ curl [https://hostname:9200](https://hostname:9200)  
{"error":{"root\_cause":[{"type":"security\_exception","reason":"action [cluster:monitor/main] requires authentication","header":{"WWW-Authenticate":["Bearer realm="security"","ApiKey","Basic realm="security" charset="UTF-8""]}}],"type":"security\_exception","reason":"action [cluster:monitor/main] requires authentication","header":{"WWW-Authenticate":["Bearer realm="security"","ApiKey","Basic realm="security" charset="UTF-8""]}},"status":401}

vs

$ curl [http://localhost:9200](http://localhost:9200)  
{  
"name" : "xxxx",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "wVHOW5HASIGrYr8HwLGKSA",  
"version" : {  
"number" : "7.8.0",  
"build\_flavor" : "default",  
"build\_type" : "tar",  
"build\_hash" : "757314695644ea9a1dc2fecd26d1a43856725e65",  
"build\_date" : "2020-06-14T19:35:50.234439Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.5.1",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ClubberLang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clubberlang/32/72169_2.png) [@ClubberLang](https://discuss.elastic.co/u/ClubberLang)\
**Post date:** [July 29, 2020, 3:25pm UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/24 "2020-07-29T15:25:11Z")

</div>

Thanks,

Some facts about my setup:

- Elastic is running inside a docker container
- I have only one instance
- The docker container has only one 'docker network', and this network is not exposed outside.

It means that (at least from my knowledege), the docker container "should'nt" be accessible from the outside, right ?

But so, once I'm logged (via ssh), I can run a docker command to execute Curl, and I got:  
{  
"name" : "es01",  
"cluster\_name" : "docker-cluster-es01",  
"cluster\_uuid" : "mLEVxGLGRTu6JH-AAZGw5w",  
"version" : {  
"number" : "7.8.0",  
"build\_flavor" : "default",  
"build\_type" : "docker",  
"build\_hash" : "757314695644ea9a1dc2fecd26d1a43856725e65",  
"build\_date" : "2020-06-14T19:35:50.234439Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.5.1",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

So, it seems it is not protected at all! I use the following docker compose:

```
version: '3.3'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
    environment:
      ELASTIC_PASSWORD: CHANGE_MY_PASS
      ES_JAVA_OPTS: -Xms1024m -Xmx1024m
      bootstrap.memory_lock: 'true'
      cluster.name: docker-cluster-es01
      discovery.type: single-node
      http.host: 0.0.0.0
      network.host: 0.0.0.0
      node.name: es01
      transport.host: 127.0.0.1
      xpack.security.enabled: 'false'
    ports:
     - 9200:9200
     - 9300:9300
    volumes:
     - /data/elastic/data:/usr/share/elasticsearch/data
    networks:
     - socloze-net
    logging:
      driver: json-file

```

I use 'ELASTIC\_PASSWORD', I also have this xpack.security.enabled: 'false', otherwise I have a message such "You have a basic licence, we deactivate the security" !

So, it mean that:

- My system is compromise, they can enter inside!
- My Elastic is not correctly secured, ELASTIC\_PASSWORD do nothing !

Right ? Any idea to solve this ?

Thanks

---

<div class="post-metadata">

**Author:** ![charan\_syba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charan_syba/32/72728_2.png) [@charan\_syba](https://discuss.elastic.co/u/charan_syba)\
**Post date:** [July 29, 2020, 3:38pm UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/25 "2020-07-29T15:38:14Z")

</div>

Hi @joshbressers,  
Can you suggest how can we enable Basic auth for elasticsearch service ?

My curl command gives the below result :  
curl -X GET "localhost:9200"  
{  
"name" : "something",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "id",  
"version" : {  
"number" : "7.8.0",  
"build\_flavor" : "default",  
"build\_type" : "rpm",  
"build\_hash" : "757314695644ea9a1dc2fecd26d1a43856725e65",  
"build\_date" : "2020-06-14T19:35:50.234439Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.5.1",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

---

<div class="post-metadata">

**Author:** ![joshbressers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshbressers/32/42332_2.png) [@joshbressers](https://discuss.elastic.co/u/joshbressers)\
**Post date:** [July 29, 2020, 6:09pm UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/26 "2020-07-29T18:09:17Z")

</div>

If you're running in containers, this page has nice instructions  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-tls-docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-tls-docker.html)

If you need to enable authentication outside of containers this blog covers things

> **[Secure Elasticsearch with TLS encryption and role-based access control](https://www.elastic.co/blog/getting-started-with-elasticsearch-security)**
>
> Secure your Elasticsearch clusters -- and the other components of the Elastic Stack -- with node-to-node TLS and role-based access control (RBAC). These features and more are now available free with the default distribution of Elasticsearch and...

Good luck!

---

<div class="post-metadata">

**Author:** ![charan\_syba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charan_syba/32/72728_2.png) [@charan\_syba](https://discuss.elastic.co/u/charan_syba)\
**Post date:** [July 30, 2020, 4:46am UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/27 "2020-07-30T04:46:31Z")

</div>

Thank you @joshbressers

---

<div class="post-metadata">

**Author:** ![charan\_syba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charan_syba/32/72728_2.png) [@charan\_syba](https://discuss.elastic.co/u/charan_syba)\
**Post date:** [July 30, 2020, 4:48am UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/28 "2020-07-30T04:48:05Z")

</div>

Hi,  
Yesterday noon I have created some indexes and dashboards, they are still working fine and there is no data vanishing till now.  
Can anyone please confirm the same ?

---

<div class="post-metadata">

**Author:** ![nitin.smartech](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nitin.smartech](https://discuss.elastic.co/u/nitin.smartech)\
**Post date:** [July 30, 2020, 7:42am UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/30 "2020-07-30T07:42:30Z")

</div>

Hi @charan_syba we have setup xpack security steps same as @joshbressers has provided!  
it has been two days now! it's safe now! and there is no any other activities on our server

Thanks @ClubberLang it's meow issue i think on our server!

---

<div class="post-metadata">

**Author:** ![charan\_syba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charan_syba/32/72728_2.png) [@charan\_syba](https://discuss.elastic.co/u/charan_syba)\
**Post date:** [August 13, 2020, 2:04pm UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/31 "2020-08-13T14:04:26Z")

</div>

Hi  
Can anyone tell me, how to feed data to the kibana from readymade REST api which is having data in json format ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 10, 2020, 2:04pm UTC](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565/32 "2020-09-10T14:04:27Z")

</div>

Closed on September 10, 2020, 2:04pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/select-your-space-you-can-change-your-space-at-anytime-no-spaces-match-search-criteria/237565.md?page=1)
