Add kibana_system role to users_roles array#1117
Add kibana_system role to users_roles array#1117coalpig wants to merge 1 commit intodeviantony:mainfrom
Conversation
When I used docker-compose up setup to update the password for kibana_system in an already created ELK cluster, the KIBANA_SYSTEM_PASSWORD variable was modified. However, the logs displayed: [+] User 'kibana_system' ⠍ No role defined, skipping creation instead of [+] User 'logstash_internal' ⠿ User exists, setting password So I added [kibana_system]='kibana_system' to users_roles=( to resolve this issue.
|
Thank you for your contribution 🙌
This part of the setup script specifically checks whether the user exists, and if so, sets its password: docker-elk/setup/entrypoint.sh Lines 105 to 109 in 1308388 The only reason I can think of why the password could not be updated is that the |
|
I didn't delete my user. You can test this by first setting the password in .env and then running docker-compose up setup. You can verify this by running: docker-compose exec -it kibana bash curl -u "kibana_system:youchangepasswd" http://elasticsearch:9200/ |
|
You can see line 108 of setup/entrypoint.sh bash ``` |
|
Sorry, it seems kibana_system is a system user. The modification works fine without adding any code.😅 |
|
Exactly. You're never supposed to see "No role defined" for You can see the expected output here: https://github.com/deviantony/docker-elk/actions/runs/18436687193/job/52531082071#step:6:63 In case the link becomes invalid in the future, here is a copy of the linked text: |
Fix: Allow
kibana_systempassword update in docker-compose setupProblem
When using
docker-compose up setupto update thekibana_systempassword in an existing ELK cluster, the password was not applied correctly.The logs show:
Instead of updating the password like
logstash_internal:This issue is caused by
kibana_systemnot being assigned a role in theusers_rolesarray.Solution
Add
kibana_systemto theusers_rolesarray: