Skip to content

Commit

Permalink
Re-enable hostname verification in opensearch #16219 (#16810)
Browse files Browse the repository at this point in the history
  • Loading branch information
todvora authored Oct 5, 2023
1 parent 880fa3b commit 087eb93
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ public Map<String, String> getProperties() throws GeneralSecurityException, IOEx
config.put("plugins.security.ssl.transport.truststore_filepath", TRUSTSTORE_FILENAME);
config.put("plugins.security.ssl.transport.truststore_password", truststore.passwordAsString());

// this disables hostname verification for transport. It's a workaround for localnode communication
// via SSL, where Opensearch still tries to communicate with 'localhost' and not the publish_host or other
// configured node names.
config.put("plugins.security.ssl.transport.enforce_hostname_verification", "false");

config.put("plugins.security.ssl.http.enabled", "true");

config.put("plugins.security.ssl.http.keystore_type", KEYSTORE_FORMAT);
Expand Down

0 comments on commit 087eb93

Please sign in to comment.