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

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

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

          Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?