8000 Bug fix/agency loop wrong credentials (#7039) · botnick/arangodb@a13f68b · GitHub
[go: up one dir, main page]

Skip to content

Commit a13f68b

Browse files
hkernbachmchacki
authored andcommitted
Bug fix/agency loop wrong credentials (arangodb#7039)
* arangod now exits when used wrong credentials during the startup process * CHANGELOG
1 parent 83c1b08 commit a13f68b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
devel
22
-----
33

4+
* in a cluster environment, the arangod process now exits if wrong credentials
5+
are used during the startup process
6+
47
* fixes validation of allowed or not allowed foxx service mount paths within
58
the Web UI
69

arangod/Agency/AgencyComm.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,12 @@ bool AgencyComm::ensureStructureInitialized() {
12211221
LOG_TOPIC(TRACE, Logger::AGENCYCOMM) << "Found an initialized agency";
12221222
break;
12231223
}
1224+
} else {
1225+
if (result.httpCode() == 401) {
1226+
// unauthorized
1227+
LOG_TOPIC(FATAL, Logger::STARTUP) << "Unauthorized. Wrong credentials.";
1228+
FATAL_ERROR_EXIT();
1229+
}
12241230
}
12251231

12261232
LOG_TOPIC(TRACE, Logger::AGENCYCOMM)

0 commit comments

Comments
 (0)
0