Countless admin sessions
OpenCTI version: 5.12.31
The picture below shows a partial view of the sessions. (there are so many sessions created that it's impossible to scroll down by manually turning the middle mouse button)
I've set a session timeout of 30 minutes in docker-compose, but I'm wondering why there are so many sessions under the admin account
I don't know why there are so many admin sessions created when I'm not doing anything specific as admin.
And I'm attaching a list of the connectors I'm currently connected to.
(The connectors marked in red in the # part are commented out in docker-compose due to performance degradation)
Are you running the connectors using the admin token?
@ckane Yes, As written in the docker-compose examples, I set the token for all connectors to admin's token. (https://github.com/OpenCTI-Platform/docker/blob/master/docker-compose.yml)
But I don't know why there are so many sessions being created when there are not that many connectors (when I look at the opencti container logs, sessions are constantly being created)
I advise you to give each connector a specific user account. It will allow to better track modification of the knowledge base by connectors, and also controlling their impact via max confidence level. @sbocahu are you able to give clues about this excessive amount of sessions?
@ckane Yes I was. However, the same thing happens even though I assigned a new token for each connector.
It seems that the same happens for us internally (though I don't know the setup that we have @Kedae ). Image is also cropped (list too big).
Hi @misohouse
Can you check with which user are configured your connectors ? For information, workers ping the platform regularly for health check with admin user, so it's pretty normal to have (NbWorkers X NbConnectors) sessions opened. If somes connectors uses the admin user, it also adds sessions.
@Kedae
The list of connectors currently working in my OpenCTI is shown below, all of which are using admin_token.
There are a total of 3 workers running, with a total of 151 sessions currently open, and the session timeout is 30 minutes.
I'm not sure if this is normal or not, as I don't quite understand what you mean by "Nb" in your description.
I would appreciate it if you could answer that.
Hi @misohouse
From your answer I don't think there is an issue here. Each connector, on each worker opens a few session (because you use admin_token) so I don't find your number of session delusional especially if there are correctly maintained alived.