Kibana is not accepting the default elasticsearch-master-credentials
The following ELK stack configuration is all version 8.5.1
running in a single node cluster:
pod/elasticsearch-master-0 1/1 Running 0 28m
pod/logstash-0 1/1 Running 0 28m
pod/elk-filebeat-j78fx 1/1 Running 0 28m
pod/elk-kibana-8596dcf6c-rdpzt 1/1 Running 0 25m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/logstash-headless ClusterIP None <none> 9600/TCP 28m
service/elasticsearch-master-headless ClusterIP None <none> 9200/TCP,9300/TCP 28m
service/logstash ClusterIP 10.43.12.129 <none> 5044/TCP,8080/TCP 28m
service/elasticsearch-master ClusterIP 10.43.206.4 <none> 9200/TCP,9300/TCP 28m
service/elk-kibana ClusterIP 10.43.185.0 <none> 5601/TCP 25m
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/elk-filebeat 1 1 1 1 1 <none> 28m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/elk-kibana 1/1 1 1 25m
NAME DESIRED CURRENT READY AGE
replicaset.apps/elk-kibana-8596dcf6c 1 1 1 25m
NAME READY AGE
statefulset.apps/elasticsearch-master 1/1 28m
statefulset.apps/logstash 1/1 28m
I port forward the kibana service and receive the Welcome to Elastic
log on screen when connecting to http://www.localhost:5602/login
To log in I utilize the default elasticsearch-master-credentials
username and password via
echo $(kubectl get secrets -n analytics elasticsearch-master-credentials -ojsonpath='{.data.username}' | base64 -d)
elastic
echo $(kubectl get secrets -n analytics elasticsearch-master-credentials -ojsonpath='{.data.password}' | base64 -d)
XSVoEFBANicJNZ3q
When attempting to log in, I receive the Username or password is incorrect. Please try again.
error message and see the below in the elasticsearch POD log.
{"@timestamp":"2023-07-24T19:15:20.922Z", "log.level": "INFO", "message":"Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch-master-0][system_critical_read][T#1]","log.logger":"org.elasticsearch.xpack.security.authc.RealmsAuthenticator","trace.id":"87d4f012851ecf678aa090d8cd662881","elasticsearch.cluster.uuid":"qti4HuKWS7ewy2HWIlu9KQ","elasticsearch.node.id":"16fM8XeXQ0KiY0uCtnetKg","elasticsearch.node.name":"elasticsearch-master-0","elasticsearch.cluster.name":"elasticsearch"}
Kibana:
[2023-07-24T19:15:20.844+00:00][INFO ][plugins.security.routes] Logging in with provider "basic" (basic)