Skip to content
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

Option to disable Dev Tools/Console? #1406

Closed
evandam opened this issue Mar 30, 2022 · 3 comments
Closed

Option to disable Dev Tools/Console? #1406

evandam opened this issue Mar 30, 2022 · 3 comments
Labels
enhancement New feature or request needs more info Requires more information from poster

Comments

@evandam
Copy link

evandam commented Mar 30, 2022

Is your feature request related to a problem? Please describe.

I would like to run an Opensearch Dashboards instance but without the dev tools/console that allows running queries (effectively only allowing read-only access to OpenSearch through the dashboards). It looks like there's a way to do it with Kibana (https://www.elastic.co/guide/en/kibana/current/console-kibana.html#console-settings), but I can't find the OpenSearch equivalent.

Describe the solution you'd like

A configuration flag like OPENSEARCH_CONSOLE_ENABLED=false to disable the console.

Describe alternatives you've considered

Hoping I'm just missing the doc for this. Alternatives would be jumping through some hoops to block the console endpoint, which I would like to avoid.

@evandam evandam added the enhancement New feature or request label Mar 30, 2022
@ahopp ahopp added the untriaged label Apr 5, 2022
@kavilla
Copy link
Member

kavilla commented Apr 8, 2022

Hello @evandam,

Thanks for opening! You can add the following to your opensearch_dashboards.yml:

console.enabled: false

this will remove the console from view. If that satisfies your feature request then yeah I would agree, this an issue with documentation and I will re-route this to the documentation repo. Really sorry about this not being included in the docs site.

However, if your goal was to set an environmental variable then we can keep this as feature request but specify that you would like to set the environment variable.

Let me know! Thanks!

@kavilla kavilla removed the untriaged label Apr 8, 2022
@tmarkley tmarkley added the needs more info Requires more information from poster label May 5, 2022
@ahopp
Copy link
Contributor

ahopp commented Jun 23, 2022

@evandam does @kavilla callout solve your use case? If so, we can close. If not, can you help us understand the incremental gap?

EDIT: @kavilla I added a doc issues anyways - there is no reference to "console.enabled: false" in the OpenSearch docs site that I can find and I think we need documentation on all the .yml options for both OpenSearch and OpenSearch Dashboards regardless.

@kavilla
Copy link
Member

kavilla commented Jul 25, 2022

Just verified that the docker image has the config as well: https://github.com/opensearch-project/opensearch-build/blob/main/docker/release/config/opensearch-dashboards/opensearch-dashboards-docker-entrypoint.sh#L22. So this should be supported even running from docker environment. But I do not believe there is current environment variable that allows for this.

With the security plugin installed one can give a user a role that hides a lot of plugins that filters a lot of plugins kibana_read_only. But I'm not positive if it supports granular filtering of plugins as indicated by this issue: opensearch-project/security-dashboards-plugin#857.

I will close this issue as I think the best next steps with the current information is what @ahopp mentioned with the lack of docs.

If this doesn't resolve your issue @evandam please re-open and add further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs more info Requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants