[Fleet] Install security_rule assets as saved objects#95885
[Fleet] Install security_rule assets as saved objects#95885rw-access merged 18 commits intoelastic:masterfrom rw-access:fleet-install-security-rule-asset
Conversation
|
@jgowdyelastic if you don't mind helping me out, I ran into this error. Did you see this too or have any guesses? Code-wise everything looks the same AFAICT DetailsGot the same thing again for the 0.1.0 -> 0.2.0 upgrade script. |
|
Pinging @elastic/fleet (Feature:Fleet) |
|
@elasticmachine update branch |
| mappings: ruleStatusSavedObjectMappings, | ||
| }; | ||
|
|
||
| export const ruleAssetSavedObjectType = 'security-rule'; |
There was a problem hiding this comment.
@FrankHassanabad is this change okay?
for some reason, it doesn't look like fleet hasn't yet recognized this saved object when running tests (at least locally)
There was a problem hiding this comment.
Should be ok. Don't see anything weird here.
| map: 'Map', | ||
| data_stream_ilm_policy: 'Data Stream ILM Policy', | ||
| lens: 'Lens', | ||
| security_rule: 'Detection Engine Rule', |
There was a problem hiding this comment.
I stumble over the mismatch of naming and description. Is this something to worry about?
There was a problem hiding this comment.
updated to "Security Rule", confirming with PM on the naming
spong
left a comment
There was a problem hiding this comment.
Checked out, tested locally, and Security Solution changes LGTM! So awesome seeing Detection Rules under Fleet now, great stuff @randomuserid! 🙂🎉🚀🙌
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
* [Fleet] Install security_rule assets as saved objects * Add security-rule to update_assets.ts * Update UUIDs for security_rule asset * Change .type to match the saved object type not the asset type * Add saved object mapping for security-rule * Make SO non-hidden * Fix SO mapping for security-rule * Make security-rule a non-hidden asset
* [Fleet] Install security_rule assets as saved objects * Add security-rule to update_assets.ts * Update UUIDs for security_rule asset * Change .type to match the saved object type not the asset type * Add saved object mapping for security-rule * Make SO non-hidden * Fix SO mapping for security-rule * Make security-rule a non-hidden asset Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

Summary
This adds a new
security_ruleasset type per elastic/package-spec#142.I saw #94950 and copied the approach for the integration test that I saw there. No asset UUIDs yet though.
Example integration was published to elastic/integrations#797 and elastic/package-storage#1082.
Checklist
Delete any items that are not applicable to this PR.
For maintainers