1
0
Fork 0

Bug fix 3.4/agency loop wrong credentials (#7072)

* arangod now exits when used wrong credentials during the startup process

* changelog
This commit is contained in:
Heiko 2018-10-25 14:17:20 +02:00 committed by Michael Hackstein
parent 94a793fe61
commit e1480cfd11
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,9 @@
v3.4.0-rc.4 (XXXX-XX-XX)
------------------------
* in a cluster environment, the arangod process now exits if wrong credentials
are used during the startup process.
* added option `--rocksdb.total-write-buffer-size` to limit total memory usage
across all RocksDB in-memory write buffers

View File

@ -1221,6 +1221,12 @@ bool AgencyComm::ensureStructureInitialized() {
LOG_TOPIC(TRACE, Logger::AGENCYCOMM) << "Found an initialized agency";
break;
}
} else {
if (result.httpCode() == 401) {
// unauthorized
LOG_TOPIC(FATAL, Logger::STARTUP) << "Unauthorized. Wrong credentials.";
FATAL_ERROR_EXIT();
}
}
LOG_TOPIC(TRACE, Logger::AGENCYCOMM)