New user can't login kibana

I setup eck and login by default "elastic" account successfully.But I or logstash can't login by new account created in kibana.

{"statusCode":401,"error":"Unauthorized","message":"[security_exception] unable to authenticate user [gmt-log-logstash] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="Bearer realm=\"security\"" & 1="ApiKey" & 2="Basic realm=\"security\" charset=\"UTF-8\"" } } }"}

This is a known issue in the current beta1 release, unfortunately. The native realm is disabled by the operator. You can reenable it with this cluster definition (this example is based on the cluster we use in the quickstart guide, you have to adapt it to your needs)

apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
  name: quickstart
spec:
  version: 7.4.0
  nodeSets:
  - name: default
    count: 1
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false
      xpack.security.authc.realms:
        native:
          native1: 
            order: 1

The important part is:

    xpack.security.authc.realms:
        native:
          native1: 
            order: 1

which enables the native realm and should fix your issue.

We are tracking this bug in this Github issue:


This will be fixed in the next release.

2 Likes

thank you,it's solved

I did the workaround. Now I'm able to log in, but I get "Error in visualization [esaggs] > Internal Server Error" when trying to access Kibana dashboards.
Elastic version 7.4.2