Opendistro Elasticsearch Give admin level privilege to anonymous userElasticsearch aggregate function error on laravelElasticsearch + Shield, security_exception happens when Document Level Security is enabledElasticsearch Shield Plugin - Users can not be authenticated, even users with Admin PrivilegesGetting error in Elasticsearch while creating index using postmanError: Request to Elasticsearch failedNo feature for name ['/appointments'] exception elasticsearch on heroku using Tire gemElasticsearch Master not discovered exceptionElasticSearch: New user with admin privileges of an index unable to access it in KibanaSetting enabled to true Elasticsearch

Beyond Futuristic Technology for an Alien Warship?

Youtube not blocked by iptables

Algorithm that generates orthogonal vectors: C++ implementation

If a spaceship ran out of fuel somewhere in space between Earth and Mars, does it slowly drift off to Sun?

Why is STARTTLS still used?

Why solving a differentiated integral equation might eventually lead to erroneous solutions of the original problem?

Is a Middle Name a Given Name?

Is the mass of paint relevant in rocket design?

What secular civic space would pioneers build for small frontier towns?

Lost Update Understanding

Why does the leading tone (G#) go to E rather than A in this example?

Past participle ending in -t versus -en

Should the average user with no special access rights be worried about SMS-based 2FA being theoretically interceptable?

New road bike: alloy dual pivot brakes work poorly

Is it a good idea to leave minor world details to the reader's imagination?

Why was it decided in 1956 to abolish the spelling чорт (devil) in favor of чёрт?

Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?

Why did the Soviet Union not "grant" Inner Mongolia to Mongolia after World War Two?

Subverting the emotional woman and stoic man trope

Suffocation while cooking under an umbrella?

How 象【しょう】 ( ≈かたち、 すがた、ようす) and 象【ぞう】 (どうぶつ) got to be written with the same kanji?

A food item only made possible by time-freezing storage?

MaxDetect speed

Is it acceptable to say that a reviewer's concern is not going to be addressed because then the paper would be too long?



Opendistro Elasticsearch Give admin level privilege to anonymous user


Elasticsearch aggregate function error on laravelElasticsearch + Shield, security_exception happens when Document Level Security is enabledElasticsearch Shield Plugin - Users can not be authenticated, even users with Admin PrivilegesGetting error in Elasticsearch while creating index using postmanError: Request to Elasticsearch failedNo feature for name ['/appointments'] exception elasticsearch on heroku using Tire gemElasticsearch Master not discovered exceptionElasticSearch: New user with admin privileges of an index unable to access it in KibanaSetting enabled to true Elasticsearch






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I am trying to give anonymous user admin level privilege to write to certain indices on Opendistro bundle of Elasticsearch. I have updated the config.yml with http.anonymous_auth_enabled: true and also made required changes to role.yml for anonymous_backendrole role.



But I am still getting this error -



 "error" : "root_cause" : [ "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" ], "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" , "status" : 403 


Looking for here if anyone could provide correct way to setup the anonymous auth with Opendistro.










share|improve this question






























    1















    I am trying to give anonymous user admin level privilege to write to certain indices on Opendistro bundle of Elasticsearch. I have updated the config.yml with http.anonymous_auth_enabled: true and also made required changes to role.yml for anonymous_backendrole role.



    But I am still getting this error -



     "error" : "root_cause" : [ "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" ], "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" , "status" : 403 


    Looking for here if anyone could provide correct way to setup the anonymous auth with Opendistro.










    share|improve this question


























      1












      1








      1








      I am trying to give anonymous user admin level privilege to write to certain indices on Opendistro bundle of Elasticsearch. I have updated the config.yml with http.anonymous_auth_enabled: true and also made required changes to role.yml for anonymous_backendrole role.



      But I am still getting this error -



       "error" : "root_cause" : [ "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" ], "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" , "status" : 403 


      Looking for here if anyone could provide correct way to setup the anonymous auth with Opendistro.










      share|improve this question














      I am trying to give anonymous user admin level privilege to write to certain indices on Opendistro bundle of Elasticsearch. I have updated the config.yml with http.anonymous_auth_enabled: true and also made required changes to role.yml for anonymous_backendrole role.



      But I am still getting this error -



       "error" : "root_cause" : [ "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" ], "type" : "security_exception", "reason" : "no permissions for [cluster:monitor/health] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]" , "status" : 403 


      Looking for here if anyone could provide correct way to setup the anonymous auth with Opendistro.







      elasticsearch elasticsearch-opendistro






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 17:45









      Prabuddha ChakrabortyPrabuddha Chakraborty

      3932 silver badges11 bronze badges




      3932 silver badges11 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          3
















          Backend roles is really just a confusing name for "roles imported from an external server." In this case, you can ignore them.



          Instead, you want a "regular" role, which you can create in Kibana > Security > Roles (or using the REST API). Just make sure it has the same cluster and index permissions as the existing admin role. I named mine anonymous-admin and gave it UNLIMITED for cluster permissions and * for indices.



          Then go to Security > Role Mappings > Add a new role mapping. Choose your anonymous-admin role, add the string opendistro_security_anonymous to the Users field, and hit Submit.



          Before:



          $ curl -XGET https://localhost:9200 -k
          "error":"root_cause":["type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]"],"type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]","status":403


          After:



          $ curl -XGET https://localhost:9200 -k

          "name" : "W8ehfvx",
          "cluster_name" : "odfe-cluster",
          "cluster_uuid" : "Uk67h4MkSL-U_48NJwjeRg",
          "version" :
          "number" : "6.5.4",
          "build_flavor" : "oss",
          "build_type" : "tar",
          "build_hash" : "d2ef93d",
          "build_date" : "2018-12-17T21:17:40.758843Z",
          "build_snapshot" : false,
          "lucene_version" : "7.5.0",
          "minimum_wire_compatibility_version" : "5.6.0",
          "minimum_index_compatibility_version" : "5.0.0"
          ,
          "tagline" : "You Know, for Search"






          share|improve this answer

























          • Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

            – Marco
            May 21 at 12:26













          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403916%2fopendistro-elasticsearch-give-admin-level-privilege-to-anonymous-user%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3
















          Backend roles is really just a confusing name for "roles imported from an external server." In this case, you can ignore them.



          Instead, you want a "regular" role, which you can create in Kibana > Security > Roles (or using the REST API). Just make sure it has the same cluster and index permissions as the existing admin role. I named mine anonymous-admin and gave it UNLIMITED for cluster permissions and * for indices.



          Then go to Security > Role Mappings > Add a new role mapping. Choose your anonymous-admin role, add the string opendistro_security_anonymous to the Users field, and hit Submit.



          Before:



          $ curl -XGET https://localhost:9200 -k
          "error":"root_cause":["type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]"],"type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]","status":403


          After:



          $ curl -XGET https://localhost:9200 -k

          "name" : "W8ehfvx",
          "cluster_name" : "odfe-cluster",
          "cluster_uuid" : "Uk67h4MkSL-U_48NJwjeRg",
          "version" :
          "number" : "6.5.4",
          "build_flavor" : "oss",
          "build_type" : "tar",
          "build_hash" : "d2ef93d",
          "build_date" : "2018-12-17T21:17:40.758843Z",
          "build_snapshot" : false,
          "lucene_version" : "7.5.0",
          "minimum_wire_compatibility_version" : "5.6.0",
          "minimum_index_compatibility_version" : "5.0.0"
          ,
          "tagline" : "You Know, for Search"






          share|improve this answer

























          • Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

            – Marco
            May 21 at 12:26















          3
















          Backend roles is really just a confusing name for "roles imported from an external server." In this case, you can ignore them.



          Instead, you want a "regular" role, which you can create in Kibana > Security > Roles (or using the REST API). Just make sure it has the same cluster and index permissions as the existing admin role. I named mine anonymous-admin and gave it UNLIMITED for cluster permissions and * for indices.



          Then go to Security > Role Mappings > Add a new role mapping. Choose your anonymous-admin role, add the string opendistro_security_anonymous to the Users field, and hit Submit.



          Before:



          $ curl -XGET https://localhost:9200 -k
          "error":"root_cause":["type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]"],"type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]","status":403


          After:



          $ curl -XGET https://localhost:9200 -k

          "name" : "W8ehfvx",
          "cluster_name" : "odfe-cluster",
          "cluster_uuid" : "Uk67h4MkSL-U_48NJwjeRg",
          "version" :
          "number" : "6.5.4",
          "build_flavor" : "oss",
          "build_type" : "tar",
          "build_hash" : "d2ef93d",
          "build_date" : "2018-12-17T21:17:40.758843Z",
          "build_snapshot" : false,
          "lucene_version" : "7.5.0",
          "minimum_wire_compatibility_version" : "5.6.0",
          "minimum_index_compatibility_version" : "5.0.0"
          ,
          "tagline" : "You Know, for Search"






          share|improve this answer

























          • Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

            – Marco
            May 21 at 12:26













          3














          3










          3









          Backend roles is really just a confusing name for "roles imported from an external server." In this case, you can ignore them.



          Instead, you want a "regular" role, which you can create in Kibana > Security > Roles (or using the REST API). Just make sure it has the same cluster and index permissions as the existing admin role. I named mine anonymous-admin and gave it UNLIMITED for cluster permissions and * for indices.



          Then go to Security > Role Mappings > Add a new role mapping. Choose your anonymous-admin role, add the string opendistro_security_anonymous to the Users field, and hit Submit.



          Before:



          $ curl -XGET https://localhost:9200 -k
          "error":"root_cause":["type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]"],"type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]","status":403


          After:



          $ curl -XGET https://localhost:9200 -k

          "name" : "W8ehfvx",
          "cluster_name" : "odfe-cluster",
          "cluster_uuid" : "Uk67h4MkSL-U_48NJwjeRg",
          "version" :
          "number" : "6.5.4",
          "build_flavor" : "oss",
          "build_type" : "tar",
          "build_hash" : "d2ef93d",
          "build_date" : "2018-12-17T21:17:40.758843Z",
          "build_snapshot" : false,
          "lucene_version" : "7.5.0",
          "minimum_wire_compatibility_version" : "5.6.0",
          "minimum_index_compatibility_version" : "5.0.0"
          ,
          "tagline" : "You Know, for Search"






          share|improve this answer













          Backend roles is really just a confusing name for "roles imported from an external server." In this case, you can ignore them.



          Instead, you want a "regular" role, which you can create in Kibana > Security > Roles (or using the REST API). Just make sure it has the same cluster and index permissions as the existing admin role. I named mine anonymous-admin and gave it UNLIMITED for cluster permissions and * for indices.



          Then go to Security > Role Mappings > Add a new role mapping. Choose your anonymous-admin role, add the string opendistro_security_anonymous to the Users field, and hit Submit.



          Before:



          $ curl -XGET https://localhost:9200 -k
          "error":"root_cause":["type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]"],"type":"security_exception","reason":"no permissions for [cluster:monitor/main] and User [name=opendistro_security_anonymous, roles=[opendistro_security_anonymous_backendrole], requestedTenant=null]","status":403


          After:



          $ curl -XGET https://localhost:9200 -k

          "name" : "W8ehfvx",
          "cluster_name" : "odfe-cluster",
          "cluster_uuid" : "Uk67h4MkSL-U_48NJwjeRg",
          "version" :
          "number" : "6.5.4",
          "build_flavor" : "oss",
          "build_type" : "tar",
          "build_hash" : "d2ef93d",
          "build_date" : "2018-12-17T21:17:40.758843Z",
          "build_snapshot" : false,
          "lucene_version" : "7.5.0",
          "minimum_wire_compatibility_version" : "5.6.0",
          "minimum_index_compatibility_version" : "5.0.0"
          ,
          "tagline" : "You Know, for Search"







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 5 at 21:27









          aetteraetter

          461 bronze badge




          461 bronze badge















          • Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

            – Marco
            May 21 at 12:26

















          • Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

            – Marco
            May 21 at 12:26
















          Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

          – Marco
          May 21 at 12:26





          Hi @eatter, could you please add some screenshots im still being unable to edit security setting with anonymous admin. Could it had anything to do with the fact that im trying yo add this role to a LDAP user?

          – Marco
          May 21 at 12:26




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403916%2fopendistro-elasticsearch-give-admin-level-privilege-to-anonymous-user%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해