Skip to content

Conversation

jr0me
Copy link
Member

@jr0me jr0me commented Mar 31, 2025

Description

Closes #680

This PR includes an SCA class with the basic methods defined in the ModuleWrapper template interface. It serves as a starting point for the rest of the SCA development.

Proposed Changes

  • Create a SCA class, adapting the ModuleWrapper interface.
  • Add a IDBSync interface, to be able to mock the database in following issues (better testing)

Configuration Changes

  • Inventory's db is renamed to inventory.db instead of local.db.

Documentation Updates

New page added for SCA.

Tests Introduced

Basic tests for SCA.

Review Checklist

  • Code changes reviewed
  • Relevant evidence provided
  • Tests cover the new functionality
  • Configuration changes documented
  • Developer documentation reflects the changes
  • Meets requirements and/or definition of done
  • No unresolved dependencies with other issues

@jr0me jr0me linked an issue Mar 31, 2025 that may be closed by this pull request
4 tasks
@jr0me jr0me self-assigned this Mar 31, 2025
@jr0me jr0me force-pushed the enhancement/680-sca-define-module-interface branch 2 times, most recently from 854eace to fb1ae95 Compare March 31, 2025 14:59
jr0me added 22 commits March 31, 2025 12:22
We'll have to figure out what to do if this path changes in the configuration file and a reload modules is triggered.
…interface

It's not clear if this is needed atm
@jr0me jr0me force-pushed the enhancement/680-sca-define-module-interface branch from fb1ae95 to 6d2a6cf Compare March 31, 2025 15:23
@jr0me jr0me force-pushed the enhancement/680-sca-define-module-interface branch from e8fe46b to 6225186 Compare March 31, 2025 19:25
@jr0me jr0me force-pushed the enhancement/680-sca-define-module-interface branch from 6225186 to 296c546 Compare March 31, 2025 19:47
|`ENABLE_CLANG_TIDY`|Check code with _clang-tidy_ (requires `clang-tidy-18`) |`ON`|
|`ENABLE_INVENTORY`|Enable Inventory module |`ON`|
|`ENABLE_LOGCOLLECTOR`|Enable Logcollector module|`ON`|
|`ENABLE_SCA`|Enable SCA module|`OFF`|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|`ENABLE_SCA`|Enable SCA module|`OFF`|
|`ENABLE_SCA`|Enable SCA module|`ON`|

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to change this in the future.

@jr0me jr0me marked this pull request as ready for review March 31, 2025 22:09
@TomasTurina TomasTurina merged commit d320c4a into main Mar 31, 2025
6 checks passed
@TomasTurina TomasTurina deleted the enhancement/680-sca-define-module-interface branch March 31, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SCA: Define Module Interface

2 participants