Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Sep 12, 2023
1 parent b4f9a06 commit 1e587a1
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,9 @@ public OpenSearchSecurityPlugin(final Settings settings, final Path configPath)

transportPassiveAuthSetting = new TransportPassiveAuthSetting(settings);

System.out.println("Checking is default password is empty");
if (settings.get(ConfigConstants.SECURITY_BOOTSTRAP_ADMIN_DEFAULT_PASSWORD) == null) {
throw new RuntimeException("A default admin password must be provided in the opensearch.yml file.");
}
System.out.println("Default password is not empty");

if (disabled) {
this.sslCertReloadEnabled = false;
Expand Down Expand Up @@ -1014,11 +1012,7 @@ public Collection<Object> createComponents(

adminDns = new AdminDNs(settings);

try {
cr = ConfigurationRepository.create(settings, this.configPath, threadPool, localClient, clusterService, auditLog);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
cr = ConfigurationRepository.create(settings, this.configPath, threadPool, localClient, clusterService, auditLog);

userService = new UserService(cs, cr, settings, localClient);

Expand Down
Loading

0 comments on commit 1e587a1

Please sign in to comment.