Skip to content

[SIEM] Removing a Rule's Action breaks Rule execution #64870

@tsg

Description

@tsg

[reported originally by @rylnd)

Kibana version: 7.7.0

After an action is removed from a rule, the rule fails to execute. To resolve this, disable and then re-enable the rule.

This is present on master and 7.7.

Steps to Reproduce

  1. Create and activate a Rule with an Action
    • any action type and frequency work, but easiest to test with on each rule execution
    • similar to above, running the rule every 30s eases testing
  2. (optional): wait for the rule to execute, generate signals, and fire the action
    • this is the pre-bug sanity check
  3. Edit the Rule and "deactivate" its Action by changing its Actions Frequency to perform no actions
  4. Observe errant behaviors:
    • Rule no longer generates signals
    • Rule no longer reports success/failure (Last response will remain as it was prior to step 3)
    • if running locally, kibana logs should show an error:
      server    log   [12:20:57.406] [error][encryptedSavedObjects][plugins] Failed to decrypt "apiKey" attribute: Unsupported state or unable to authenticate data
      server    log   [12:20:57.406] [error][alerting][alerting][plugins][plugins] Executing Alert "684c28a5-a49d-490b-9c9b-26dc865e641c" has resulted in Error: Unable to decrypt attribute "apiKey"
      

NB That querying the corresponding task, we find that it still exists in the "idle" state:

GET .kibana_task_manager*/_search
{"query":{"match":{"task.taskType":"alerting:siem.signals"}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team: SecuritySolutionSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Team:SIEMbugFixes for quality problems that affect the customer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions