I am having an issue when trying to import some Kibana dashboards.
What i am trying to do is the folowing curl:
curl -k -v -u user:password -X POST “https://localhost:5601/api/kibana/dashboards/import” -H “kbn-xsrf: true” --form [email protected]
and i getting redirected to the login page, as you can see in the curl response:
> User-Agent: curl/7.58.0
Content-Type: multipart/form-data; boundary=------------------------1430c10504695887
< HTTP/1.1 100 Continue
< HTTP/1.1 302 Found
< location: /login?nextUrl=/api/kibana/dashboards/import
< kbn-name: kibana
< kbn-xpack-sig: 9e6f97a98dbb9cec1ff5d75040433d8c
< content-type: text/html; charset=utf-8
< cache-control: no-cache
< content-length: 0
< connection: close
I also tried adding in kibana.yml readonlyrest_kbn.whitelistedPaths: ["*"] but it does not seem to have any effect.
The user that i am using has full access. Kibana version is 7.2 and ROR version is 1.18.9 Enterprise.
Can you please suggest a way to be able to access Kibana APIs for uploading dashboards with ROR?