-
Notifications
You must be signed in to change notification settings - Fork 122
Add Support for Multiple Kibana Security Detection Rule Types #1292
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
7d0e420
Initial plan
Copilot f422394
Implement core functionality for Kibana Security Detection Rule resource
Copilot da03510
Complete Kibana Security Detection Rule implementation with docs and …
Copilot 1f92d49
Set composite id in updateDataFromRule
nick-benoit c71d69f
Handle nullable setup field
nick-benoit ac26851
Use id instead of rule_id for update payloads (for now)
nick-benoit e7df951
Add test destroyed
nick-benoit 1f28a7f
Fix lint error
nick-benoit b31762b
If provided send rule_id otherwise use id
nick-benoit 828ef7a
Refactor security detection rule implementation based on code review …
Copilot c5f9a57
Add comprehensive schema and create logic for all detection rule types
Copilot 41c8b0a
Refactor update logic and improve error handling for different rule t…
Copilot 3d1a020
Add EQL rule support for create, update, and read operations
Copilot 373e3c9
Use discriminator for parsing rule
nick-benoit 6acc02e
Support other rule types
nick-benoit 0702d81
Extract read implementation into helper
nick-benoit cbeab6d
Properly write composite id when reading
nick-benoit f22ab1d
Set nil values with types
nick-benoit ef054eb
Add basic acceptance tests for all rule types
nick-benoit 9674efb
Add update acc tests
nick-benoit 6d86040
Handle UUID parsing error
nick-benoit 730c578
Add correct discriminators to generated client
nick-benoit d0a88bb
Various schema tweaks
nick-benoit 3658797
Support setting nested types (Threshold, ThreatMapping)
nick-benoit b570027
Skip tests for unsupported versions
nick-benoit bd2b666
Use common props structs
nick-benoit 2e90abc
Extract building threshold / threat_mapping into shared helpers
nick-benoit 1537f6d
Update internal/kibana/security_detection_rule/schema.go
nick-benoit b0b1b95
Extract language mapping into shared function
nick-benoit 64379fa
Add type assertions
nick-benoit a0bae20
Remove `parseRuleResponse`
nick-benoit da655cb
Trigger replacement when rule_id changes
nick-benoit 6538bba
Remove tmpl file
nick-benoit 156dfc4
Generate docs
nick-benoit ba13d09
Merge branch 'main' into copilot/fix-1290-2
nick-benoit 6584b30
Generate docs... again
nick-benoit 085c9d1
Update docs
nick-benoit 38f299e
Update internal/kibana/security_detection_rule/models.go
nick-benoit ea6aeaf
Return pointer to SecurityDetectionRuleData from read
nick-benoit f87e3f1
Support "actions" field
nick-benoit 2218757
Merge branch 'copilot/fix-1290-2' of github.com:elastic/terraform-pro…
nick-benoit 48f798f
Add support for exceptions_list
nick-benoit 4a3105b
Add support for `risk_score_mapping`
nick-benoit 725c400
Add support building_block_type
nick-benoit 18ff977
Add support for data_view_id, namespace
nick-benoit eec419a
Lint
nick-benoit 280e3ed
Add support for rule_name_override, timestamp_override, timestamp_ove…
nick-benoit 0127197
Add support for investigation_fields
nick-benoit 51de6c0
Add support for related_integrations, required_fields, severity_mapping
nick-benoit 2b4c56b
Add support for related_integrations, required_fields, severity_mapping
nick-benoit 57a8924
Merge branch 'copilot/fix-1290-2' of github.com:elastic/terraform-pro…
nick-benoit bab3774
Merge branch 'main' of github.com:elastic/terraform-provider-elastics…
nick-benoit a918c46
Support for response_actions
nick-benoit 4e0fc38
Psuedo discriminator for "params"
nick-benoit 3b3f79d
Add support for "meta"
nick-benoit c7e1f2d
Support filters
nick-benoit ef6828a
Update docs
nick-benoit 15ce2c5
Add support for alert_suppression
nick-benoit b171dcd
Update docs
nick-benoit 808210b
Dont force replacement for rule_id
nick-benoit 75cade8
Fix threshold test for alert_supression
nick-benoit 9662f6c
Add minimal query rule test case
nick-benoit 2244d09
Fix various update cases
nick-benoit f5ea9a2
Add models_test.go
nick-benoit fcab004
Add model_<type> for all rule types
nick-benoit e847f2e
Reorganize common field defaults
nick-benoit 7055b89
Add helper for setting common fields from rules
nick-benoit 8c5e8e9
Add version check for response_actions
nick-benoit 64a43e4
Update docs
nick-benoit f39b546
Add diags to response diags
nick-benoit 782671e
Update internal/kibana/security_detection_rule/models.go
nick-benoit e9d1439
Merge branch 'copilot/fix-1290-2' of github.com:elastic/terraform-pro…
nick-benoit 97b875b
Use schema definitions for runtime types
nick-benoit 0517526
Update internal/kibana/security_detection_rule/models.go
nick-benoit 348bd9f
Update internal/kibana/security_detection_rule/models_saved_query.go
nick-benoit 6d45b5d
Update internal/kibana/security_detection_rule/models.go
nick-benoit 43f94ec
Use schema definitions for runtime types
nick-benoit 4c3f032
Merge branch 'copilot/fix-1290-2' of github.com:elastic/terraform-pro…
nick-benoit b14b6ed
Remove nil check in conjunction with isKnown
nick-benoit 9939fe8
Update internal/kibana/security_detection_rule/models.go
nick-benoit eef2d11
Refactor to remove IsNull checks
nick-benoit 229e40e
Update internal/kibana/security_detection_rule/models.go
nick-benoit 671fab4
Update internal/kibana/security_detection_rule/models.go
nick-benoit 713a4a6
Only send machine_learning_job_id as array
nick-benoit 9b2fea9
Use utils.ListValueFrom for empty slice
nick-benoit aa72fee
Support reading multiple or single job id
nick-benoit ca37831
Add response processor abstraction / Rearrange utilities
nick-benoit ca4fe82
Use custom duration type
nick-benoit 0e6b02a
Update docs
nick-benoit aaacd4c
Replace if rule_id is configured
nick-benoit bcd1f05
Merge branch 'main' into copilot/fix-1290-2
tobio aebe532
Remove meta field
nick-benoit fc1a135
Merge branch 'copilot/fix-1290-2' of github.com:elastic/terraform-pro…
nick-benoit 2ef50a1
Remove meta field in acc_test
nick-benoit 246ed2e
Update docs
nick-benoit d6780b9
Make lint
nick-benoit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.