Kibana's Docker Image is slow to access the `Case` UI of `Security` when the `XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY` environment variable is not set #194242
Start Elasticsearch and Kibana using the following bash command:
docker compose --file ./es01-docker.yaml up -d
curl -u elastic:es01Test \
-X POST \
http://127.0.0.1:9200/_security/user/kibana_system/_password \
-d '{"password":"'"kibanaTest"'"}' \
-H 'Content-Type: application/json'
docker compose --file ./kibana-docker.yml up -d
Then visit http://localhost:5601 and enter the account elastic and password es01Test. Enter the Case interface of Security.
This will lead to a long wait. Maybe 3 seconds.
After a while, a large number of Error Logs will load the screen, and new Error Logs will be continuously loaded. Kibana will only remind you to set XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY.
If I set the XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY environment variable for Kibana's Docker Container, none of this happens. If the corresponding environment variables are set, this interface loads very quickly.
Why is Kibana's Docker Image slow to access the Security's Case UI when the XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY environment variable is not set?
If this webpage requires the existence of the environment variable XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY to be used, it is unreasonable from my point of view. It would be more reasonable not to display the entry of this webpage in Kibana when the environment variable XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY does not exist.
es01-docker.yaml
as follows,kibana-docker.yaml
as follows,http://localhost:5601
and enter the accountelastic
and passwordes01Test
. Enter the Case interface of Security.XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY
.XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY
environment variable for Kibana's Docker Container, none of this happens. If the corresponding environment variables are set, this interface loads very quickly.Security
'sCase
UI when theXPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY
environment variable is not set?XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY
to be used, it is unreasonable from my point of view. It would be more reasonable not to display the entry of this webpage in Kibana when the environment variableXPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY
does not exist.