Skip to content

Commit

Permalink
Init cont3xt Db before Auth (arkime#2909)
Browse files Browse the repository at this point in the history
  • Loading branch information
awick authored Aug 13, 2024
1 parent a216e52 commit fca477f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cont3xt/cont3xt.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,6 @@ User.prototype.setCont3xtKeys = function (v) {
// Initialize stuff
// ----------------------------------------------------------------------------
async function setupAuth () {
Auth.initialize({
appAdminRole: 'cont3xtAdmin',
passwordSecretSection: 'cont3xt',
basePath: internals.webBasePath
});

const dbUrl = ArkimeConfig.get('dbUrl');
const es = ArkimeConfig.getArray('elasticsearch', 'http://localhost:9200');
const usersUrl = ArkimeConfig.get('usersUrl');
Expand All @@ -471,6 +465,12 @@ async function setupAuth () {
basicAuth: ArkimeConfig.get('elasticsearchBasicAuth')
});

Auth.initialize({
appAdminRole: 'cont3xtAdmin',
passwordSecretSection: 'cont3xt',
basePath: internals.webBasePath
});

User.initialize({
insecure: ArkimeConfig.isInsecure([usersUrl, usersEs]),
requestTimeout: ArkimeConfig.get('elasticsearchTimeout', 300),
Expand Down

0 comments on commit fca477f

Please sign in to comment.