Skip to content

Commit

Permalink
remove TLS check to allow for proxy TLS termination scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkoopmann committed Aug 26, 2020
1 parent 0c670af commit 68f95d2
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,6 @@ private void validate() throws IncompleteConfigurationException, InvalidConfigur
LOG.error(e);
throw new InvalidConfigurationException("Parameter [interfaces." + ConfigurationKeys.TLS_KEY_PATH + "] cannot be parsed into a path. Make sure it is correct.");
}
} else {
// URI schemes must be HTTP if TLS is disabled.
if (!parseRestListenUri().getScheme().equals("http")) {
throw new InvalidConfigurationException("TLS is disabled but [interfaces." + ConfigurationKeys.REST_LISTEN_URI + "] is not configured to use HTTP. Do not use HTTPS.");
}

if (!parseHttpExternalUri().getScheme().equals("http")) {
throw new InvalidConfigurationException("TLS is disabled but [interfaces." + ConfigurationKeys.HTTP_EXTERNAL_URI + "] is not configured to use HTTP. Do not use HTTPS.");
}
}
}

Expand Down

0 comments on commit 68f95d2

Please sign in to comment.