Sunju
September 11, 2024, 7:41am
1
Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.9.0
Describe the issue :
OpensearchDashboard failed to fetch when I disable security plugin.
How can I fix it?
Configuration :
I followed this. I removed all security plugins and configurations.
Relevant Logs or Screenshots :
Mantas
September 11, 2024, 9:35am
2
Hi @Sunju ,
Have you cleared your session data after disabling the security plugin?
Have you rebooted your nodes after configuration changes?
Could you please share your opensearch.yml
and opensearch_dashboards.yml
best,
mj
Sunju
September 11, 2024, 10:22am
3
How can I clear the session data?
Sunju
September 11, 2024, 10:25am
4
opensearch-dashboard.yml
logging.dest: /var/log/opensearch-dashboard/opensearch_dashboard.log
opensearch.hosts: ['http://localhost:9200']
opensearch.ssl.verificationMode: none
server.host: 0.0.0.0
server.port: 5601
opensearch.yml
action.destructive_requires_name: true
bootstrap.memory_lock: true
bootstrap.system_call_filter: false
cluster.initial_cluster_manager_nodes: ['myhost']
cluster.name: opensearch
compatibility.override_main_response_version: true
discovery.seed_hosts: ['myhost']
http.port: 9200
network.host: 0.0.0.0
node.attr.rack: r1
node.name: myhost
path.data: ['/var/data/opensearch']
path.logs: /var/log/opensearch
Mantas
September 11, 2024, 10:27am
5
You can use a different browser or start a private (incognito) session.
Mantas
September 11, 2024, 10:32am
6
@Sunju , I do not see you disabling the security plugin:
plugins.security.disabled: true
Sunju
September 11, 2024, 10:38am
7
I removed security plugins. So, I got this error when I add that props.
java.lang.IllegalArgumentException: unknown setting [plugins.security.disabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Sunju
September 11, 2024, 10:39am
8
Session clear does not work.
Mantas
September 11, 2024, 10:41am
9
Can you add plugins.security.disabled: true
to your opensearch.yml and test once more.
Sunju
September 11, 2024, 10:45am
10
I just did it, and I got that error.
Mantas
September 11, 2024, 11:01am
11
I see, you have removed the plugin itself, I’ll run some tests in my lab and get back if Ill find a fix/reason for you.
Sunju
September 11, 2024, 11:05am
12
I saw the guide that I need to remove plugin in the linked opensearch docs.
Thanks.
Mantas
September 12, 2024, 12:08pm
13
@Sunju , I have successfully removed the security plugin from Opensearch v2.9.0 using the instructions here:
https://opensearch.org/docs/2.9/security/configuration/disable/ (these are for v2.9 rather than 2.16)
The cluster seems to be fine:
How did you deploy your cluster?
Best,
mj
Sunju
September 13, 2024, 8:57am
14
I deploy tar.gz.
Did you just disable security or Remove plugins as well?
Mantas
September 13, 2024, 12:53pm
15
I`ve removed it as per the instructions. Have you removed anything using:
sudo bin/opensearch-dashboards-plugin remove <plugin-name>
best,
mj
Sunju
September 24, 2024, 12:24am
16
Remove OpenSearch Dashboards plugin
The Security plugin is actually two plugins: one for OpenSearch and one for OpenSearch Dashboards. You can use the OpenSearch plugin independently, but the OpenSearch Dashboards plugin depends on a secured OpenSearch cluster.
If you disable the Security plugin in opensearch.yml
(or delete the plugin entirely) and still want to use OpenSearch Dashboards, you must remove the corresponding OpenSearch Dashboards plugin. For more information, see OpenSearch Dashboards remove plugins .
I Remove securityDashboards as above guide.
I think I always have the issue with capabilities api.
Should I configure anything about capabilities.