1
0
Fork 0

dont whine about --server.jwt-secret if it isn't used (#8546)

This commit is contained in:
Jan 2019-03-25 12:08:43 +01:00 committed by GitHub
parent 5711854531
commit f2ab6da5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,8 @@ void AuthenticationFeature::start() {
TRI_ASSERT(isEnabled());
// If this is empty here, --server.jwt-secret was used
if (_jwtSecretKeyfileProgramOption.empty()) {
if (!_jwtSecretProgramOption.empty() &&
_jwtSecretKeyfileProgramOption.empty()) {
LOG_TOPIC(WARN, arangodb::Logger::AUTHENTICATION)
<< "--server.jwt-secret is insecure. Use --server.jwt-secret-keyfile "
"instead.";