You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is verified by the mongoDB log:
{"t":{"$date":"2024-11-18T18:38:52.249+02:00"},"s":"I", "c":"ACCESS", "id":5286306, "ctx":"conn82","msg":"Successfully authenticated","attr":{"client":"127.0.0.1:54324","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"root","db":"admin","result":0,"metrics":{"conversation_duration":{"micros":4601,"summary":{"0":{"step":1,"step_total":2,"duration_micros":173},"1":{"step":2,"step_total":2,"duration_micros":72}}}},"extraInfo":{}}}
Even with MONGODB_URI="mongodb://127.0.0.1:27017/soarca" , still the client will connect to "admin" database
The text was updated successfully, but these errors were encountered:
If I configure DATABASE_NAME: "test" in my .env, the Mongo client still connects to "admin" database
The setupDatabase in https://github.com/COSSAS/SOARCA/blob/development/internal/controller/controller.go does not use the DATABASE_NAME so Mongo will use the defaults
this is verified by the mongoDB log:
{"t":{"$date":"2024-11-18T18:38:52.249+02:00"},"s":"I", "c":"ACCESS", "id":5286306, "ctx":"conn82","msg":"Successfully authenticated","attr":{"client":"127.0.0.1:54324","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"root","db":"admin","result":0,"metrics":{"conversation_duration":{"micros":4601,"summary":{"0":{"step":1,"step_total":2,"duration_micros":173},"1":{"step":2,"step_total":2,"duration_micros":72}}}},"extraInfo":{}}}
Even with MONGODB_URI="mongodb://127.0.0.1:27017/soarca" , still the client will connect to "admin" database
The text was updated successfully, but these errors were encountered: