-
Notifications
You must be signed in to change notification settings - Fork 123
Add security list item #1492
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
base: main
Are you sure you want to change the base?
Add security list item #1492
Conversation
434cb47 to
dea7d64
Compare
dea7d64 to
65879ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for managing Kibana security list items through the new elasticstack_kibana_security_list_item resource. The implementation depends on the security list functionality (PR #1489) and includes both the security list and list item resources to enable end-to-end testing. Once the security list PR is merged, the squashed commit will be removed to prevent conflicts.
Key changes include:
- Implementation of CRUD operations for security list items
- Support for optional metadata and custom IDs
- Comprehensive acceptance tests covering default and custom spaces
- Integration with the existing Kibana OAPI client infrastructure
Reviewed changes
Copilot reviewed 38 out of 40 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
provider/plugin_framework.go |
Registers the new security list and list item resources as experimental |
internal/kibana/security_list_item/*.go |
Core implementation of list item resource with CRUD operations and models |
internal/kibana/security_list/*.go |
Core implementation of security list resource with CRUD operations and models |
internal/clients/kibana_oapi/security_lists.go |
API client wrapper functions for security list and list item operations |
internal/kibana/security_list_item/testdata/**/*.tf |
Terraform test configurations for list item acceptance tests |
internal/kibana/security_list/testdata/**/*.tf |
Terraform test configurations for list acceptance tests |
examples/resources/**/*.tf |
Example usage documentation for both resources |
docker-compose.yml, .env, .github/workflows/test.yml |
Test environment configuration to enable experimental features |
CODING_STANDARDS.md |
Documents standard for deriving final state from read requests |
…tack into add_security_list_item_1
cf37599 to
c0d0bad
Compare
| MarkdownDescription: "Internal identifier for the resource (format: `<space_id>/<list_item_id>`).", | ||
| Computed: true, | ||
| }, | ||
| "list_item_id": schema.StringAttribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tobio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, couple of minor things before we merge this one.
examples/resources/elasticstack_kibana_security_list_item/resource_ip.tf
Outdated
Show resolved
Hide resolved
Co-authored-by: Toby Brain <[email protected]>
…rm-provider-elasticstack into add_security_list_item_1
tobio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, way easier to review these independently. Thanks for splitting them up!
Adds Security List Item resource (docs)
Should be reviewed after Security List PR
This PR contains a squashed commit of the changes from the security list PR. This enables tests to run in this intermediate state. Once the security list PR is merged to master I will pull into this branch and drop the commit from this PR to prevent conflicts.
Rel: #1332