Skip to content

Conversation

@covert8
Copy link

@covert8 covert8 commented Oct 8, 2025

Description

This PR adds the ability to disable SSL/TLS in the OpenSearch cluster by introducing a new configuration option DisableSSL in the OpenSearchCluster CRD. When enabled, this option configures the cluster to operate without SSL encryption, which can be useful for development environments or in secure, isolated networks.

based on pr: #966

Issues Resolved

Fix: #967

Check List

  • Commits are signed per the DCO using --signoff
  • Unittest added for the new/changed functionality and all unit tests are successful
  • Customer-visible features documented
  • No linter warnings (make lint)
    linter shows errors, but they appear to be pre-existing
    infrastructure issues unrelated to the DisableSSL changes
    If CRDs are changed:
  • CRD YAMLs updated (make manifests) and also copied into the helm chart
  • Changes to CRDs documented

Please refer to the PR guidelines before submitting this pull request.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

func (r *TLSReconciler) Reconcile() (ctrl.Result, error) {
if r.instance.Spec.General.DisableSSL {
r.logger.Info("SSL is disabled. Skipping TLS setup")
r.reconcilerContext.AddConfig("plugins.security.disabled", "true")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This disables the security plugin and it is much more than disabling SSL.

If the original issue only requires to disable REST layer TLS(which users interact mainly), then we need to set plugins.security.ssl.http.enabled as false. Its default value is false and operator sets it as true here.

r.reconcilerContext.AddConfig("plugins.security.ssl.http.enabled", "true")

There is no option to disable TLS for transport layer yet. opensearch-project/security#4759

@covert8 covert8 changed the title Feat: Allow disabling SSL in OpenSearchCluster CRD with DisableSSL DRAFT: Feat: Allow disabling SSL in OpenSearchCluster CRD with DisableSSL Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[FEATURE] Allow disabling SSL in OpenSearchCluster CRD with DisableSSL option

2 participants