Kibana advanced setting automation

Hi,

I am automating ES/Kibana deployments and I would like to programmatically set some advanced settings, this is possible only via kibana API (not via kibana.yml). When I execute:

curl -v --insecure -u <ADMIN_USER> -X POST -H “Content-Type: application/json” -H “kbn-xsrf: true” -d ‘{“value”:“10”}’ http://localhost:<KIBANA_PORT>/api/kibana/settings/visualization:tileMap:maxPrecision

``

After inserting the password, I get this error message back:
{“statusCode”:403,“error”:“Forbidden”,“message”:“Error: Unauthorized”}

``

I am using Search Guard Community Edition. Does this happen because if the community edition and REST API management is available only in the EE? Or I am doing something wrong?

Cheers,

tracked here https://github.com/floragunncom/search-guard-kibana-plugin/issues/58

···

On Wednesday, 11 October 2017 09:47:49 UTC+2, Alessandro Puccetti wrote:

Hi,

I am automating ES/Kibana deployments and I would like to programmatically set some advanced settings, this is possible only via kibana API (not via kibana.yml). When I execute:

curl -v --insecure -u <ADMIN_USER> -X POST -H “Content-Type: application/json” -H “kbn-xsrf: true” -d ‘{“value”:“10”}’ http://localhost:<KIBANA_PORT>/api/kibana/settings/visualization:tileMap:maxPrecision

``

After inserting the password, I get this error message back:
{“statusCode”:403,“error”:“Forbidden”,“message”:“Error: Unauthorized”}

``

I am using Search Guard Community Edition. Does this happen because if the community edition and REST API management is available only in the EE? Or I am doing something wrong?

Cheers,

Fixed in 6.x-21 version of Search Guard.

···

On Thursday, February 1, 2018 at 11:29:24 PM UTC+1, Search Guard wrote:

tracked here https://github.com/floragunncom/search-guard-kibana-plugin/issues/58

On Wednesday, 11 October 2017 09:47:49 UTC+2, Alessandro Puccetti wrote:

Hi,

I am automating ES/Kibana deployments and I would like to programmatically set some advanced settings, this is possible only via kibana API (not via kibana.yml). When I execute:

curl -v --insecure -u <ADMIN_USER> -X POST -H “Content-Type: application/json” -H “kbn-xsrf: true” -d ‘{“value”:“10”}’ http://localhost:<KIBANA_PORT>/api/kibana/settings/visualization:tileMap:maxPrecision

``

After inserting the password, I get this error message back:
{“statusCode”:403,“error”:“Forbidden”,“message”:“Error: Unauthorized”}

``

I am using Search Guard Community Edition. Does this happen because if the community edition and REST API management is available only in the EE? Or I am doing something wrong?

Cheers,