Finding myself at a bit of a hault on my ELK stack setup.
I've setup kibana, elasticsearch and logstash on a Centos VM and have everything working great prior to introducing xpack.security.enabled for user authentication.
I've created the system user accounts using 'auto' and 'interactive'. Currently using 'auto' and have documented the pre-defined passwords.
Restarting Kibana and Elasticsearch, I can get to the Kibana webadmin, but am unable to sign into the GUI due to:
// [security_exception] missing authentication credentials for REST request [/_security/_authenticate], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } }"
Running a curl against my elasticsearch server I get:
[root@elk bin]# curl http://127.0.0.1:9200 -u elastic:<password> -v
* Rebuilt URL to: http://127.0.0.1:9200/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 9200 (#0)
* Server auth using Basic with user 'elastic'
> GET / HTTP/1.1
> Host: 127.0.0.1:9200
> Authorization: Basic ZWxhc3RpYzpnY2s3bU1zTzl2cWlpY3FLTDZ6ZQ==
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 540
<
{
"name" : "elasticnode-01",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "VXbZotfpS0e9xV7rH7FtHQ",
"version" : {
"number" : "7.10.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "51e9d6f22758d0374a0f3f5c6e8f3a7997850f96",
"build_date" : "2020-11-09T21:30:33.964949Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
* Connection #0 to host 127.0.0.1 left intact
kibana.log reads:
//
{"type":"log","@timestamp":"2020-11-17T20:04:43Z","tags":["info","plugins","security","routes"],"pid":64353,"message":"Logging in with provider \"basic\" (basic)"}
{"type":"response","@timestamp":"2020-11-17T20:04:43Z","tags":[],"pid":64353,"method":"post","statusCode":401,"req":{"url":"/internal/security/login","method":"post","headers":{"host":"10.1.2.219:9603","connection":"keep-alive","content-length":"166","kbn-version":"7.10.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36","content-type":"application/json","accept":"*/*","origin":"http://10.1.2.219:9603","referer":"http://10.1.2.219:9603/login?next=%2F","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"10.1.10.176","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36","referer":"http://10.1.2.219:9603/login?next=%2F"},"res":{"statusCode":401,"responseTime":52,"contentLength":9},"message":"POST /internal/security/login 401 52ms - 9.0B"}
Any help would be awesome to get me rolling.