lukas
(Lukas Olson)
February 18, 2021, 5:35pm
2
Hi!
This is something that is frequently posted on the forums here:
Sorry for the delay, @rupaln and sorry for giving incomplete advice.
I was able to get the Kibana server to respond with a cookie header by POSTing to /api/security/v1/login with a JSON request body of
{
"password": "<YOURPASSWORD>",
"username": "<YOURUSERNAME>"
}
and the appropriate kbn-version: 5.1.1 header.
@tsullivan @Alex_Piggott @Francisca_Lima and others interested.
Looks like you should use
proxy_set_header Host $proxy_host;
instead of
proxy_set_header Host $host;
$proxy_host takes host value from proxy_pass directive, while $host will contain your server_name. And apparently, Kibana from Elastic Cloud requires an original host to determine target cluster ID.
Works for me without proxifying any additional X-Found-Cluster headers.