-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[bitnami/kibana] Wrong ENV reference in libkibana.sh #76379
Comments
Hi! Thank you so much for spotting the issue. As you discovered it, would you like to submit a PR? If not, the team will work on it. |
I would like to, but I'm not used to git hub that much so i will try my best to submit PR soon Also another things is keystore configuration is still not work properly after solve this environment reference issues
as you see above if you prefer to configure the Keystore instead of PEM certificate you will achieved by this function kibana_set_key_value() {
local key="${1:?missing key}"
local value="${2:?missing value}"
debug "Storing key: ${key}"
kibana-keystore add --stdin --force "$key" <<<"$value"
} here is the calling function kibana_set_key_value "server.ssl.keystore.password" "$SERVER_KEYSTORE_PASSWORD" I try to redo the process mannually by this cli kibana-keystore add --stdin --force "server.ssl.keystore.password" <<<"$SERVER_KEYSTORE_PASSWORD" the result show this I have no name!@kibana-6c5bf7568c-fszkp:/$ kibana-keystore add --stdin --force "server.ssl.keystore.password" <<<"$SERVER_KEY_PASSWORD"
Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/8.17/production.html#openssl-legacy-provider
ERROR: Kibana keystore not found. Use 'create' command to create one. its confirm from the logs above with this error happen kibana 07:16:31.91 DEBUG ==> Storing key: server.ssl.keystore.password
Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/8.17/production.html#openssl-legacy-provider
ERROR: Kibana keystore not found. Use 'create' command to create one. so i think the problem is you could not configure the JKS in configuration file ...
elasticsearch:
username: kibana_system
password: xxxxxxxxxxxxxx
ssl:
verificationMode: full
truststore:
path: /opt/bitnami/kibana/config/certs/elasticsearch/elasticsearch.truststore.p12
server:
ssl:
enabled: true
keystore:
path: /opt/bitnami/kibana/config/certs/server/kibana.keystore.p12 but configure the keystore password using cli instead of configuration file because they could not find it propery like so i would suggest to change this to kibana_conf_set "server.ssl.keystore.password" "$SERVER_KEYSTORE_PASSWORD" |
Thank you so much for the detailed report! Please let us know if you find any issue with the PR, and we will help you or create the PR. But as you discovered the issue, I think it's better that you appear as the contributor |
this part is script for configure the kibana TLS
as you see above if you intend to use KEYSTORE
its checking for the
$SERVER_KEYSTORE_PASSWORD
is not emptythen configure the
server.ssl.keystore.password
but this line seem refference into
$SERVER_KEY_PASSWORD
instead ofSERVER_KEYSTORE_PASSWORD
that was checked beforeps. I didn't know this is a wrong refference or intended but my k8s is could not able to start after configure key
kibana-keystore-password
and the logs result inThe text was updated successfully, but these errors were encountered: