Open nicolechec opened 2 days ago
OpenSearch Version:
plugins.security.disabled: true and plugins.security.ssl.http.enabled: false,
seems that you have disabled security plugin for OpenSearch, you need to disable security-dashboard-plugin in your opensearch_dashboards.yml file
by adding opensearch_security.enabled: false
after add this configuration, please remember restart your OpenSearch Dashboard.
@Hailong-am thanks so much for the reply! I retest. info:plugins.security.disabled: false
,plugins.ssl.http.enabled:true
we have set up an OpenSearch cluster with security features enabled. Specifically:
The OpenSearch cluster has the security plugin enabled, with SSL/TLS encryption configured for the HTTP interface. This means that all communication with the OpenSearch cluster must be done over a secure HTTPS connection. To enable secure communication, we have configured the OpenSearch cluster to use self-signed TLS certificates. However, to simplify the setup, we have also configured OpenSearch to skip the verification of these TLS certificates. The Prometheus Agent, which is responsible for scraping metrics from the OpenSearch cluster, is configured to access the "_prometheus/metrics" endpoint over HTTPS. It is also configured to skip the verification of the TLS certificates, matching the OpenSearch cluster's configuration. The OpenSearch Dashboards component, which provides a web-based interface for interacting with the OpenSearch cluster, is also configured to connect to the OpenSearch cluster over HTTPS and skip the TLS certificate verification.
the Prometheus Agent is still encountering ahttps://192.168.8.235:9200/_prometheus/metrics": 401; expecting 200; response body: "Unauthorized" error when trying to access the OpenSearch metrics endpoint over HTTPS, even though you have configured the basicAuth settings in the ServiceMonitor.
can you try with curl --insecure -u <user>:<password> -XGET http://172.29.253.204:9200/_prometheus/metrics
to make sure OpenSearch configuration is correct?
Describe the bug
A clear and concise description of what the bug is.
plugins.security.disabled: true and plugins.security.ssl.http.enabled: false, opensearch_dashboards.yml
In opensearch_dashboards.yml use HTTP instead of HTTPS to OpenSearch node.
An error occurs when you access the dashboard
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
OpenSearch Version Please list the version of OpenSearch being used.
Dashboards Version Please list the version of OpenSearch Dashboards being used.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.