Skip to content

[SIEM] ML Permissions are verified on the backend #62532

@rylnd

Description

@rylnd

Prior to the availability of the ML plugin contract, we were unable to perform these checks.

This causes the following errant behaviors:

  • API users can create/update ML Rules regardless of their ML permissions.
  • UI users can create an enabled ML Rule by importing it

NB that in both of the above situations, the user must have a valid ML license (platinum/trial).

This might merit a separate PR, but rule execution is going to be even trickier: since the rule executes with the permissions of the last person who modified it, ML services will need to be refactored to accept a non-extended cluster client (currently they expect paths like ml.jobs which do not exist on the scoped alerting client). Even then, a user could lose their ML permissions and the job will happily continue to execute with its own (now outdated) copy of that user's permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team: SecuritySolutionSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Team:SIEMenhancementNew value added to drive a business resultv7.8.0v8.0.0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions