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:
Tomas Dvorak
2023-10-06 08:17:36 +02:00
committed by GitHub
parent 4edf5ddbe8
commit f6c476230e
24 changed files with 436 additions and 149 deletions

View File

@@ -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;