-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Change Proposal] Allow security_rule objects to have rule IDs different from the object IDs #459
Comments
So when this check was first added, @rw-access (who did the original implementation on the security side) commented:
That said, as we were discussing earlier, there is some inherent use to this check as it ensures that all security-rule assets included as part of an integration are guaranteed to have a unique I'd say Ross's comment stands then, as this check doesn't need to be happening this way, and can be removed. Security Solution needs to handle the case correctly where there are multiple security-rule assets with the same Please see this related discussion (elastic/kibana#128202) with regards to enforcing unique |
So with the introduction of historical rule versions, |
Security Solution migrates the detection rules package from storing a single saved object per rule to multiple saved objects. See elastic/kibana#137420 for more context regarding the change.
The package will contain rule saved objects with rule id and version in the name (
security_rule/[ruleId]_[ruleVersion].json
) with the following content:So the saved object ID and the rule ID do not match anymore, making this validation check always return an error:
package-spec/code/go/internal/validator/semantic/validate_kibana_matching_object_ids.go
Lines 50 to 53 in fafbc4b
I would like to know why that validation exists in the first place and if we could remove or update it.
The text was updated successfully, but these errors were encountered: