- Newest
- Most votes
- Most comments
Hi,
I managed to make it work by calling /_plugin/kibana/auth/login and then using the security_authentication cookie when calling Kiabana API.
First call:
curl -u user:pass -H 'Content-Type: application/json' -X POST <vpc-es-endpoint>/_plugin/kibana/auth/login' -H 'kbn-xsrf: true' -d '{"username" : <username>, "password" : <password>}' -c /tmp/kibana_cookies.txt
Next calls:
curl -u user:pass -H 'Content-Type: application/json' -X GET <vpc-es-endpoint>/_plugin/kibana/api/saved_objects/index-pattern/<id> -b /tmp/kibana_cookies.txt
Or:
curl -u user:pass -H 'Content-Type: application/json' -X GET <vpc-es-endpoint>/_plugin/kibana/api/saved_objects/index-pattern/<id> --cookie 'security_authentication=<security_auth_cookie>
Cool. It worked. Once security cookie is available, I think user:password is no longer needed. One issue I am facing is that visualization created in elastic version of kibana (7.9.x) is failing to import into AWS ES kibana 7.9. We use the _import api end point
Relevant content
- asked 2 years ago
- asked 4 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- How do I use an interface VPC endpoint to access an API Gateway private REST API in another account?AWS OFFICIALUpdated 5 months ago