Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Security Solution][Endpoint] Ensure that DS indices for respon…
…se actions are created prior to sending action to Endpoint (#196953) (#197901) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution][Endpoint] Ensure that DS indices for response actions are created prior to sending action to Endpoint (#196953)](#196953) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Paul Tavares","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-25T19:18:12Z","message":"[Security Solution][Endpoint] Ensure that DS indices for response actions are created prior to sending action to Endpoint (#196953)\n\n## Summary\r\n\r\nPR adds changes to Security Solution so that DOT indices (restricted in\r\nServerless) are created in Kibana prior to Elastic Defend (Endpoint)\r\nattempting to stream documents to these indices. The indices that are\r\nnow created in kibana are:\r\n\r\n- `.logs-endpoint.diagnostic.collection-<namespace_from_policy>`\r\n- `.logs-endpoint.action.responses-<namespace_from_policy>`\r\n- `.logs-endpoint.heartbeat-<namespace_from_policy>` _(⚠️ created only\r\nin serverless only)_\r\n\r\n\r\n### Fleet changes:\r\n\r\n- Added support for the following two server-side extension points:\r\n- `packagePolicyPostUpdate` : callbacks invoked after an integration\r\npolicy has been updated successfully\r\n- `agentPolicyPostUpdate` : callbacks invoked after an agent policy has\r\nbeen updated successfully\r\n\r\n\r\n### Security Solution:\r\n\r\n- Logic was added to the following Fleet server-side extension points\r\nthat checks if the necessary indices exist and if not, it creates them:\r\n - After creating an Elastic Defend integration policy\r\n - After updating an Elastic Defend integration policy\r\n- After updating a Fleet Agent Policy that includes Elastic Defend\r\nintegration policy","sha":"ae9c0d385015f3068a04af46678e18e2f00b519a","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Defend Workflows","backport:prev-minor"],"number":196953,"url":"https://github.com/elastic/kibana/pull/196953","mergeCommit":{"message":"[Security Solution][Endpoint] Ensure that DS indices for response actions are created prior to sending action to Endpoint (#196953)\n\n## Summary\r\n\r\nPR adds changes to Security Solution so that DOT indices (restricted in\r\nServerless) are created in Kibana prior to Elastic Defend (Endpoint)\r\nattempting to stream documents to these indices. The indices that are\r\nnow created in kibana are:\r\n\r\n- `.logs-endpoint.diagnostic.collection-<namespace_from_policy>`\r\n- `.logs-endpoint.action.responses-<namespace_from_policy>`\r\n- `.logs-endpoint.heartbeat-<namespace_from_policy>` _(⚠️ created only\r\nin serverless only)_\r\n\r\n\r\n### Fleet changes:\r\n\r\n- Added support for the following two server-side extension points:\r\n- `packagePolicyPostUpdate` : callbacks invoked after an integration\r\npolicy has been updated successfully\r\n- `agentPolicyPostUpdate` : callbacks invoked after an agent policy has\r\nbeen updated successfully\r\n\r\n\r\n### Security Solution:\r\n\r\n- Logic was added to the following Fleet server-side extension points\r\nthat checks if the necessary indices exist and if not, it creates them:\r\n - After creating an Elastic Defend integration policy\r\n - After updating an Elastic Defend integration policy\r\n- After updating a Fleet Agent Policy that includes Elastic Defend\r\nintegration policy","sha":"ae9c0d385015f3068a04af46678e18e2f00b519a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196953","number":196953,"mergeCommit":{"message":"[Security Solution][Endpoint] Ensure that DS indices for response actions are created prior to sending action to Endpoint (#196953)\n\n## Summary\r\n\r\nPR adds changes to Security Solution so that DOT indices (restricted in\r\nServerless) are created in Kibana prior to Elastic Defend (Endpoint)\r\nattempting to stream documents to these indices. The indices that are\r\nnow created in kibana are:\r\n\r\n- `.logs-endpoint.diagnostic.collection-<namespace_from_policy>`\r\n- `.logs-endpoint.action.responses-<namespace_from_policy>`\r\n- `.logs-endpoint.heartbeat-<namespace_from_policy>` _(⚠️ created only\r\nin serverless only)_\r\n\r\n\r\n### Fleet changes:\r\n\r\n- Added support for the following two server-side extension points:\r\n- `packagePolicyPostUpdate` : callbacks invoked after an integration\r\npolicy has been updated successfully\r\n- `agentPolicyPostUpdate` : callbacks invoked after an agent policy has\r\nbeen updated successfully\r\n\r\n\r\n### Security Solution:\r\n\r\n- Logic was added to the following Fleet server-side extension points\r\nthat checks if the necessary indices exist and if not, it creates them:\r\n - After creating an Elastic Defend integration policy\r\n - After updating an Elastic Defend integration policy\r\n- After updating a Fleet Agent Policy that includes Elastic Defend\r\nintegration policy","sha":"ae9c0d385015f3068a04af46678e18e2f00b519a"}}]}] BACKPORT-->
- Loading branch information