Guys, please help me to understand what am I doing wrong. I’ve set up elasticsearch and kibana, I can login with curl to both, but from browser I expect to see or a special login page, or basic auth popup page, but I see only 401 (or 403) depends on prompt_for_basic_auth…
Elasticsearch, Kibana and plugin version is 7.10.1 free
elasticsearch.yml
cluster.name: ES
node.name: es-node-1
network.host: 10.0.0.21
http.port: 9200
discovery.seed_hosts: ["10.0.0.22", "10.0.0.23", "10.0.0.24"]
cluster.initial_master_nodes: ["10.0.0.21", "10.0.0.22", "10.0.0.23", "10.0.0.24"]
path.data: /mnt/data/elasticsearch
path.logs: /var/log/elasticsearch
path.repo: /mnt/data/elasticsearch/snapshot
bootstrap.memory_lock: true
action.destructive_requires_name: true
script.painless.regex.enabled: true
xpack.security.enabled: false
readonlyrest.yml (basic one from documentation)
readonlyrest:
audit_collector: true
access_control_rules:
- name: KIBANA_SERVER
auth_key: kibana:kibana
verbosity: error
- name: PERSONAL_GRP
groups: [ Personal ]
kibana_access: rw
kibana_hide_apps: [readonlyrest_kbn, timelion]
kibana_index: '.kibana_@{user}'
verbosity: error
- name: ADMIN_GRP
groups: [Administrators]
kibana_access: admin
verbosity: error
- name: Infosec
groups: [ Infosec ]
kibana_access: rw
kibana_hide_apps: [ readonlyrest_kbn, timelion]
kibana_index: .kibana_infosec
verbosity: error
users:
- username: admin
auth_key: admin:passwd
groups: [Administrators, Infosec]
- username: user1
auth_key: user1:passwd
groups: [Administrators, Personal, Infosec]
kibana.yml
server.port: 5601
xpack.security.enabled: false
xpack.monitoring.enabled: true
xpack.graph.enabled: false
xpack.reporting.enabled: false
logging.json: false
server.host: "localhost" (or 0.0.0.0 doesn't matter)
server.name: "ES"
elasticsearch.hosts: ["http://10.0.0.21:9200", "http://10.0.0.22:9200", "http://10.0.0.23:9200", "http://10.0.0.24:9200"]
elasticsearch.username: "kibana"
elasticsearch.password: "kibana"
logging.dest: /var/log/kibana/kibana.log
What I see in browser (no popup windows to put creds):
{"statusCode":401,"error":"Unauthorized","message":"forbidden: Response Error"}
What I see in curl:
root@elastic-node-1:~# curl -I -u kibana:kibana localhost:5601
HTTP/1.1 302 Found
location: /spaces/enter
root@staging-elastic-node-1:~# curl -u kibana:kibana 10.10.10.201:9200/_cat/nodes
10.10.10.202 3 64 0 0.00 0.22 0.29 cdhilmrstw - es-node-2
10.10.10.201 4 69 1 0.10 0.25 0.24 cdhilmrstw * es-node-1
10.10.10.203 4 65 0 0.04 0.14 0.16 cdhilmrstw - es-node-3
10.10.10.204 2 64 0 0.01 0.14 0.16 cdhilmrstw - es-node-4
What am I doing wrong?