# Cannot login to the Kibaba with the username and the password from the Secret file

**URL:** <https://discuss.elastic.co/t/cannot-login-to-the-kibaba-with-the-username-and-the-password-from-the-secret-file/307122>\
**Category:** Elasticsearch\
**Created:** [June 14, 2022, 9:02am UTC](https://discuss.elastic.co/t/cannot-login-to-the-kibaba-with-the-username-and-the-password-from-the-secret-file/307122 "2022-06-14T09:02:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frida](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Frida](https://discuss.elastic.co/u/Frida)\
**Post date:** [June 14, 2022, 9:02am UTC](https://discuss.elastic.co/t/cannot-login-to-the-kibaba-with-the-username-and-the-password-from-the-secret-file/307122/1 "2022-06-14T09:02:37Z")

</div>

Hi,  
if possible- I have a question:  
this is my Elasticsearch:

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: jhsearch
spec:
  version: 7.6.2
  auth:
    fileRealm:
    - secretName: jhsecret
  nodeSets:
  - name: default
    count: 1
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false

```

this is my Kibaba:

```auto
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: jhkb
spec:
  version: 7.6.2
  count: 1
  elasticsearchRef:
    name: jhsearch
  http:
    service:
        spec:
            type: LoadBalancer

```

and this is my Secret:

```auto
apiVersion: v1
kind: Secret
metadata:
  name: jhsecret
type: kubernetes.io/basic-auth
stringData:
  username: dXNlcm5hbWUM 
  password: chjFGVApm0K

```

when I tried login to the kibaba by the external ip-  
the username and the password was unknown,  
If anyone knows the reason - will help me a lot.  
Thanks,  
Frida

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2022, 9:02am UTC](https://discuss.elastic.co/t/cannot-login-to-the-kibaba-with-the-username-and-the-password-from-the-secret-file/307122/2 "2022-07-12T09:02:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
