mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
Use random http auth password during preflight web setup (#16749)
* Use random http auth password during preflight web setup * set initial preflight password once and persist it in mongodb * refactor structure of the preflight config service, add migration * add license * code cleanup * manually trigger password creation migration in preflight * Fixing up import. * fixed preflight auth filter init * migrations for prefligh boot phase * code cleanup * add migration to the PreflightWebModule * fix injector reference in preflight migrations * Include logo, make sure that all relevant information is shown at last. * Consolidating banner logging into single call. --------- Co-authored-by: Dennis Oelkers <dennis@graylog.com>
This commit is contained in:
@@ -76,9 +76,7 @@ public class OpensearchConfigurationProvider implements Provider<OpensearchConfi
|
||||
}
|
||||
|
||||
private boolean isPreflight() {
|
||||
final PreflightConfigResult preflightResult = preflightConfigService.getPersistedConfig()
|
||||
.map(PreflightConfig::result)
|
||||
.orElse(PreflightConfigResult.UNKNOWN);
|
||||
final PreflightConfigResult preflightResult = preflightConfigService.getPreflightConfigResult();
|
||||
|
||||
// if preflight is finished, we assume that there will be some datanode registered via node-service.
|
||||
return preflightResult != PreflightConfigResult.FINISHED;
|
||||
|
||||
Reference in New Issue
Block a user