[Security Solution] API users can create rules with blank name and description #81319
Labels
bug
Fixes for quality problems that affect the customer experience
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
v7.11.0
Bug originally reported by: @rylnd
Describe the bug
API users can create rules with
name
and/ordescription
fields of""
(empty string). While the UI forms prevent this, the backend allows it. While I haven't yet seen any errors (since the fields are still strings), it does cause some weird UI bugs:Preconditions
Kibana 7.7+
To Reproduce
Steps to reproduce the behavior:
api/detection_engine/rules
) with the following body:Expected behavior
The request is rejected with a 4xx
On 2 Sep @spong commented:
Note, linking #65764 as the
Rule
column displayed as--
is the result of a separate issue.The text was updated successfully, but these errors were encountered: