-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.0] [Security Solution][Endpoint] Add validation to artifact create…
…/update APIs for management of `ownerSpaceId` (#211325) (#212446) # Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution][Endpoint] Add validation to artifact create/update APIs for management of `ownerSpaceId` (#211325)](#211325) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Paul Tavares","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-25T19:52:08Z","message":"[Security Solution][Endpoint] Add validation to artifact create/update APIs for management of `ownerSpaceId` (#211325)\n\n## Summary\n\n\n#### Changes in support of space awareness\n\n> currently behind feature flag:\n`endpointManagementSpaceAwarenessEnabled`\n\n- Add logic to the server-side Lists plugin extension points for\nendpoint artifacts to ensure that only a user with the new Global\nArtifact Management privilege can update/change/add `ownerSpaceId` tags\non an artifact\n- Added validation to all endpoint artifacts (Trusted Apps, Event\nFilters, Blocklists, Host Isolation Exceptions and Endpoint Exceptions)\n\n\n#### Other changes:\n\n- Fix UI bug that failed to display artifact submit API failures. API\nerrors are now displayed in the artifact's respective edit/create forms\nif encountered\n- Fixed a bug where \"unknown\" artifact `tags` were being dropped\nwhenever the artifact assignment (global, per-policy) was updated in the\nUI\n\n\n\n\n\n\n\n\n## Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1ee97c3c8f3780cde8c23edb03b37738b506aefa","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Defend Workflows","backport:prev-minor","v9.1.0"],"title":"[Security Solution][Endpoint] Add validation to artifact create/update APIs for management of `ownerSpaceId`","number":211325,"url":"https://github.com/elastic/kibana/pull/211325","mergeCommit":{"message":"[Security Solution][Endpoint] Add validation to artifact create/update APIs for management of `ownerSpaceId` (#211325)\n\n## Summary\n\n\n#### Changes in support of space awareness\n\n> currently behind feature flag:\n`endpointManagementSpaceAwarenessEnabled`\n\n- Add logic to the server-side Lists plugin extension points for\nendpoint artifacts to ensure that only a user with the new Global\nArtifact Management privilege can update/change/add `ownerSpaceId` tags\non an artifact\n- Added validation to all endpoint artifacts (Trusted Apps, Event\nFilters, Blocklists, Host Isolation Exceptions and Endpoint Exceptions)\n\n\n#### Other changes:\n\n- Fix UI bug that failed to display artifact submit API failures. API\nerrors are now displayed in the artifact's respective edit/create forms\nif encountered\n- Fixed a bug where \"unknown\" artifact `tags` were being dropped\nwhenever the artifact assignment (global, per-policy) was updated in the\nUI\n\n\n\n\n\n\n\n\n## Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1ee97c3c8f3780cde8c23edb03b37738b506aefa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211325","number":211325,"mergeCommit":{"message":"[Security Solution][Endpoint] Add validation to artifact create/update APIs for management of `ownerSpaceId` (#211325)\n\n## Summary\n\n\n#### Changes in support of space awareness\n\n> currently behind feature flag:\n`endpointManagementSpaceAwarenessEnabled`\n\n- Add logic to the server-side Lists plugin extension points for\nendpoint artifacts to ensure that only a user with the new Global\nArtifact Management privilege can update/change/add `ownerSpaceId` tags\non an artifact\n- Added validation to all endpoint artifacts (Trusted Apps, Event\nFilters, Blocklists, Host Isolation Exceptions and Endpoint Exceptions)\n\n\n#### Other changes:\n\n- Fix UI bug that failed to display artifact submit API failures. API\nerrors are now displayed in the artifact's respective edit/create forms\nif encountered\n- Fixed a bug where \"unknown\" artifact `tags` were being dropped\nwhenever the artifact assignment (global, per-policy) was updated in the\nUI\n\n\n\n\n\n\n\n\n## Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1ee97c3c8f3780cde8c23edb03b37738b506aefa"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
068928d
commit a54f4dc
Showing
34 changed files
with
1,455 additions
and
760 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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.