elastic / cloudbeat

Analyzing Cloud Security Posture
Other
38 stars 43 forks source link

Cloudbeat panics on configuration changes #2217

Open orouz opened 1 month ago

orouz commented 1 month ago

Describe the bug

cloudbeat panics after getting a new config (for example, updated integration version). it ends up restarting, but it shouldn't panic

To Reproduce Steps to reproduce the behavior:

  1. Install integration and deploy an agent
  2. Send reconfiguration by doing one of the following:
    • edit integration values other than name, if possible
    • update integration version
    • change agent log level
  3. monitor agent logs and look for:
    1. configuration change
    2. fatal panic error

Expected behavior

cloudbeat handles reconfiguration gracefully and restarts without panic

Screenshots

Screenshot 2024-05-20 at 9 09 12

Additional context