Skip to content

Commit

Permalink
Allow security_rule objects to have rule IDs different from the objec…
Browse files Browse the repository at this point in the history
…t IDs
  • Loading branch information
xcrzx committed Jan 16, 2023
1 parent c7b54ab commit 0cc0050
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ func ValidateKibanaObjectIDs(fsys fspath.FS) ve.ValidationErrors {
errs = append(errs, errors.Wrapf(err, "unable to get rule ID in file [%s]", fsys.Path(filePath)))
continue
}

if ruleID != objectID {
errs = append(errs, errors.New("rule ID is different from the object ID"))
continue
}
}

// fileID == filename without the extension == expected ID of Kibana object defined inside file.
Expand Down

0 comments on commit 0cc0050

Please sign in to comment.