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

[BUG][opensearch-dashboards] opensearch_security.cookie.secure is not a valid configuration option #8810

Open
jpanynines opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working untriaged

Comments

@jpanynines
Copy link

jpanynines commented Nov 5, 2024

Describe the bug
When using the security plugin, the following error is shown in the logs:

{"type":"log","@timestamp":"2024-10-22T02:10:49Z","tags":["fatal","root"],"pid":8,"message":"InvalidConfigurationError: Unknown configuration key(s): \"opensearch_security.cookie.secure\". Check for spelling errors and ensure that expected plugins are installed.\n    at ensureValidConfiguration (/var/vcap/data/packages/opensearch-dashboards/caa6e98035eac8fd70825811ba3a41f635aec962/src/core/server/legacy/config/ensure_valid_configuration.js:50:11)\n    at Server.setup (/var/vcap/data/packages/opensearch-dashboards/caa6e98035eac8fd70825811ba3a41f635aec962/src/core/server/server.js:156:5)\n    at Root.setup (/var/vcap/data/packages/opensearch-dashboards/caa6e98035eac8fd70825811ba3a41f635aec962/src/core/server/root/index.js:60:14)\n    at bootstrap (/var/vcap/data/packages/opensearch-dashboards/caa6e98035eac8fd70825811ba3a41f635aec962/src/core/server/bootstrap.js:113:5)\n    at Command.<anonymous> (/var/vcap/data/packages/opensearch-dashboards/caa6e98035eac8fd70825811ba3a41f635aec962/src/cli/serve/serve.js:192:5) {\n  code: 'InvalidConfig',\n  processExitCode: 64,\n  cause: undefined\n}"}

To Reproduce
Steps to reproduce the behavior:

  1. Set the configuration on opensearch_dashboards.yml (here is a snippet of the config file for context):
# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
# These settings enable SSL for outgoing requests from the OpenSearch Dashboards server to the browser.
server.ssl.enabled: true
server.ssl.certificate: ***REDACTED***
server.ssl.key: ***REDACTED***


# Optional settings that provide the paths to the PEM-format SSL certificate and key files.
# These files are used to verify the identity of OpenSearch Dashboards to OpenSearch
opensearch.ssl.certificate: ***REDACTED***
opensearch.ssl.key: ***REDACTED***

# Optional setting that enables you to specify a path to the PEM file for the certificate
# authority for your OpenSearch instance.
opensearch.ssl.certificateAuthorities: ["***REDACTED***"]

# To disregard the validity of SSL certificates, change this setting's value to 'none'.
opensearch.ssl.verificationMode: full

opensearch_security.cookie.secure: true
  1. Start opensearch-dashboards
  2. Check logs for the error

Expected behavior
This configuration option should be valid, as stated in the documentation: https://opensearch.org/docs/latest/install-and-configure/install-dashboards/tls/

OpenSearch Version
2.16

Dashboards Version
2.16

Plugins

os/6dc97238-a182-4cad-b02a-fcd6b59d1357:/var/vcap/packages/opensearch/bin# ./opensearch-plugin list
opensearch-alerting
opensearch-index-management
opensearch-job-scheduler
opensearch-notifications
opensearch-notifications-core
opensearch-security
repository-azure
repository-s3

Host/Environment (please complete the following information):

  • OS: Ubuntu Jammy
@jpanynines jpanynines added bug Something isn't working untriaged labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant