-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0] [8.1] Error: [config validation of [elasticsearch].username]: value of "elastic" is forbidden #123113
Comments
Pinging @elastic/fleet (Team:Fleet) |
How much time are we talking about here? This has to go with 8.0.0-GA and 8.1.0 |
What's the safe period on your side? We need ~1 week to research it and switch to service tokens. EDIT: Hopefully it will be done sooner, but we need to deploy it in few places and might be concerned about stability. The elastic-package stack depends on Docker Compose. We may need to mount the |
One week would probably be fine, but I'll let @jportner have the final word on this one. Btw, why can't you just switch to using the |
Let me check that if it's fine. |
@pgayvallet I tried your suggestion to use
Is it something we can easily workaround with config? EDIT: I see now, we need to use EDIT2: I tried to use
|
Ok, so I tried to switch to service tokens and failed with:
@pgayvallet Is there something I missed here? |
@mtojek i made the change to fail fast at config time because Kibana will not work anymore due when configured with the elastic super user — this is due to an elasticsearch change (elastic/elasticsearch#81400). |
Just an update on our side - We managed to implement the logic around service tokens and it appears to be working. I suppose that you don't need to revert any commits :) Thanks for your cooperation. I will resolve the issue. |
@mtojek , can you list the command you used to implement the service token? I'm running into the same isssue |
@yitzchake the API is documented here: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html Hope that helps, if you have problems using it please post on our Discuss forum, thank you! |
after list my docker containers and using |
v8.5.3 here. encountered the same problem. Create a service token to start kibana. curl -XPOST -k -u 'elastic:xxxxxxxxx' 'https://localhost:9200/_security/api_key' -H 'Content-Type: application/json' -d'
{
"name": "kibana_system",
"role_descriptors": {
"kibana_system": {
"cluster": ["monitor"],
"index": [
{
"names": [".kibana*"],
"privileges": ["manage","read","index","delete"]
}
]
}
}
}' kibana.yml : ...
# elastic
elasticsearch.ssl.certificateAuthorities: [ "/data/kibana-8.5.3/config/certs/http_ca.crt" ]
elasticsearch.hosts: [ "https://xxxx:9200" ]
elasticsearch.username: "kibana_system"
elasticsearch.password: "my_encoded" error message: [2023-03-01T17:23:02.663+08:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: unable to authenticate user [kibana_system] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]
[2023-03-01T17:23:03.226+08:00][INFO ][plugins.screenshotting.chromium] Browser executable: /data/kibana-8.5.3/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell |
Sorry, I have solved this problem, the process is as follows:
bin/elasticsearch-reset-password --batch --user kibana_system Replace the password of the kibana_system user inside the Kibana configuration file (kibana/config/kibana.yml) with the password generated in the previous step. |
Stop forcing your stupid security on people who don't need it, this focking sucks |
19th October facing the same issue..... wondering how are you guys testing. |
Hi Team,
this weekend we managed to build a new Docker image for Kibana, which was supposed to include a few fixes we're waiting for. Unfortunately, it brought another problem:
It's a huge blocker for Elastic Integrations, as we're unable to start the development stack 8.0-SNAPSHOT and 8.1-SNAPSHOT. Last time we has a similar discussion with the agent team to give us some slack to switch to service tokens.
Kindly please to revert this change due to its impact.
Impact:
https://beats-ci.elastic.co/blue/organizations/jenkins/Ingest-manager%2Fintegrations/detail/master/1430/pipeline (all integrations marked as broken)
The text was updated successfully, but these errors were encountered: