Skip to content

Conversation

@nick-benoit
Copy link
Contributor

@nick-benoit nick-benoit commented Nov 26, 2025

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

@nick-benoit nick-benoit force-pushed the add_security_list_item_1 branch from 434cb47 to dea7d64 Compare November 26, 2025 20:50
@nick-benoit nick-benoit force-pushed the add_security_list_item_1 branch from dea7d64 to 65879ca Compare November 26, 2025 22:04
@nick-benoit nick-benoit requested a review from tobio November 26, 2025 22:08
@nick-benoit nick-benoit changed the title Add security list item [WIP] Add security list item Nov 26, 2025
@nick-benoit nick-benoit requested a review from Copilot November 26, 2025 22:09
Copy link
Contributor

Copilot AI left a 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

@nick-benoit nick-benoit changed the title [WIP] Add security list item Add security list item Nov 26, 2025
tobio

This comment was marked as resolved.

@nick-benoit nick-benoit force-pushed the add_security_list_item_1 branch from cf37599 to c0d0bad Compare November 27, 2025 20:42
MarkdownDescription: "Internal identifier for the resource (format: `<space_id>/<list_item_id>`).",
Computed: true,
},
"list_item_id": schema.StringAttribute{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobio Since you last reviewed I added list_item_id to support user provided id api field. Then in the TF schema id is just the internal id more like other resources.

@nick-benoit nick-benoit marked this pull request as ready for review November 27, 2025 22:04
@nick-benoit nick-benoit requested a review from tobio November 27, 2025 22:04
Copy link
Member

@tobio tobio left a 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.

@nick-benoit nick-benoit requested a review from tobio November 28, 2025 03:08
Copy link
Member

@tobio tobio left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants