Skip to content

[soc-ai-plugin] Implement Dependency Injection and remove global state usage #1647

@osmontero

Description

@osmontero

The soc-ai plugin relies on global state and lacks a proper dependency injection mechanism:

  1. Global State: The plugin uses global variables for managing the internal alert queue and configuration state.
  2. Lack of DI: Dependencies are accessed globally instead of being explicitly injected into the correlation logic.

Proposed Changes:

  • Refactor the queue system to use an instance-based approach.
  • Implement dependency injection for the configuration manager and the alert processor.
  • Ensure all components receive their dependencies explicitly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🔖 Defined

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions