COSSAS / SOARCA

SOARCA - The Open Source CACAO-based Security Orchestrator!
https://cossas.github.io/SOARCA/
Apache License 2.0
51 stars 8 forks source link

Rework mongo database driver #209

Open MaartendeKruijf opened 1 month ago

MaartendeKruijf commented 1 month ago

Is your feature request related to a problem? Please describe. The database has a problem when initialising cacao playbooks to mitigate this the mongo driver needs to be changed.

Describe the solution you'd like The proposed change is to expose the mongo collection to the playbook database driver. In this way the playbookrepo can correctly initialise the playbook and return it to the caller.

Describe alternatives you've considered An alternative could be to map the object to a new object using the current driver. The downside is this might lead to incorrect parsing.

MaartendeKruijf commented 1 month ago

Additional resource https://medium.com/@mohitdubey_83162/mastering-mongodb-integration-with-go-a-step-by-step-developers-guide-3fcbe46a906e