Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.10] [Security Solution] expandable flyout - Opt in to data anonymi…
…zation for the Elastic AI Assistant (#164384) (#164490) # Backport This will backport the following commits from `main` to `8.10`: - [[Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant (#164384)](#164384) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Andrew Macri","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-22T17:33:20Z","message":"[Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant (#164384)\n\n## [Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant\r\n\r\nThis PR fixes an issue where the new expandable flyout wasn't opting in to data anonymization when passing alerts as context to the Elastic AI Assistant.\r\n\r\nAs a result:\r\n\r\n- A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized\r\n- NO toggle buttons to allow specific fields and enable / disable anonymization are displayed\r\n\r\n### Reproduction steps\r\n\r\nTo reproduce:\r\n\r\n1. Navigate to Security > Alerts\r\n\r\n2. Click the `View details` action on any row in the Alerts table to view the new expandable flyout\r\n\r\n3. Click the `Chat` button, which appears next to the `Expand details` button in the flyout\r\n\r\n4. Expand the `Alert (from summary)` context\r\n\r\n**Expected results**\r\n\r\n- Stats for the number of fields that will be `Allowed`, `Anonymized`, and the total number of fields `Available` are displayed\r\n- Toggle buttons to allow specific fields and enable / disable anonymization on each field are displayed\r\n\r\n**Actual results**\r\n\r\n- A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized\r\n- NO toggle buttons to allow specific fields and enable / disable anonymization are displayed\r\n- The plain-text, non-anonymized context data is displayed in the preview, per the screenshot below:\r\n\r\n![0_anonymized](https://github.com/elastic/kibana/assets/4459398/e881bb4a-caa4-43c4-8b31-cf3deb354cf7)\r\n\r\n## Desk testing\r\n\r\n1. Reproduce the issue per the steps above\r\n\r\n2. Verify the expected results are displayed when testing the fix, per the screenshot below:\r\n\r\n![anonymization-opt-in](https://github.com/elastic/kibana/assets/4459398/79a8228d-c5a6-4ea5-a6ab-4bd992e6b7ef)\r\n\r\n_Above: After the fix, the expected stats and field level anonymization toggles are displayed_","sha":"c1fde765b98b980e5244f33e5b3651f70b3ce88b","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat Hunting:Investigations","v8.10.0","v8.11.0"],"number":164384,"url":"https://github.com/elastic/kibana/pull/164384","mergeCommit":{"message":"[Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant (#164384)\n\n## [Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant\r\n\r\nThis PR fixes an issue where the new expandable flyout wasn't opting in to data anonymization when passing alerts as context to the Elastic AI Assistant.\r\n\r\nAs a result:\r\n\r\n- A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized\r\n- NO toggle buttons to allow specific fields and enable / disable anonymization are displayed\r\n\r\n### Reproduction steps\r\n\r\nTo reproduce:\r\n\r\n1. Navigate to Security > Alerts\r\n\r\n2. Click the `View details` action on any row in the Alerts table to view the new expandable flyout\r\n\r\n3. Click the `Chat` button, which appears next to the `Expand details` button in the flyout\r\n\r\n4. Expand the `Alert (from summary)` context\r\n\r\n**Expected results**\r\n\r\n- Stats for the number of fields that will be `Allowed`, `Anonymized`, and the total number of fields `Available` are displayed\r\n- Toggle buttons to allow specific fields and enable / disable anonymization on each field are displayed\r\n\r\n**Actual results**\r\n\r\n- A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized\r\n- NO toggle buttons to allow specific fields and enable / disable anonymization are displayed\r\n- The plain-text, non-anonymized context data is displayed in the preview, per the screenshot below:\r\n\r\n![0_anonymized](https://github.com/elastic/kibana/assets/4459398/e881bb4a-caa4-43c4-8b31-cf3deb354cf7)\r\n\r\n## Desk testing\r\n\r\n1. Reproduce the issue per the steps above\r\n\r\n2. Verify the expected results are displayed when testing the fix, per the screenshot below:\r\n\r\n![anonymization-opt-in](https://github.com/elastic/kibana/assets/4459398/79a8228d-c5a6-4ea5-a6ab-4bd992e6b7ef)\r\n\r\n_Above: After the fix, the expected stats and field level anonymization toggles are displayed_","sha":"c1fde765b98b980e5244f33e5b3651f70b3ce88b"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164384","number":164384,"mergeCommit":{"message":"[Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant (#164384)\n\n## [Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant\r\n\r\nThis PR fixes an issue where the new expandable flyout wasn't opting in to data anonymization when passing alerts as context to the Elastic AI Assistant.\r\n\r\nAs a result:\r\n\r\n- A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized\r\n- NO toggle buttons to allow specific fields and enable / disable anonymization are displayed\r\n\r\n### Reproduction steps\r\n\r\nTo reproduce:\r\n\r\n1. Navigate to Security > Alerts\r\n\r\n2. Click the `View details` action on any row in the Alerts table to view the new expandable flyout\r\n\r\n3. Click the `Chat` button, which appears next to the `Expand details` button in the flyout\r\n\r\n4. Expand the `Alert (from summary)` context\r\n\r\n**Expected results**\r\n\r\n- Stats for the number of fields that will be `Allowed`, `Anonymized`, and the total number of fields `Available` are displayed\r\n- Toggle buttons to allow specific fields and enable / disable anonymization on each field are displayed\r\n\r\n**Actual results**\r\n\r\n- A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized\r\n- NO toggle buttons to allow specific fields and enable / disable anonymization are displayed\r\n- The plain-text, non-anonymized context data is displayed in the preview, per the screenshot below:\r\n\r\n![0_anonymized](https://github.com/elastic/kibana/assets/4459398/e881bb4a-caa4-43c4-8b31-cf3deb354cf7)\r\n\r\n## Desk testing\r\n\r\n1. Reproduce the issue per the steps above\r\n\r\n2. Verify the expected results are displayed when testing the fix, per the screenshot below:\r\n\r\n![anonymization-opt-in](https://github.com/elastic/kibana/assets/4459398/79a8228d-c5a6-4ea5-a6ab-4bd992e6b7ef)\r\n\r\n_Above: After the fix, the expected stats and field level anonymization toggles are displayed_","sha":"c1fde765b98b980e5244f33e5b3651f70b3ce88b"}}]}] BACKPORT--> Co-authored-by: Andrew Macri <[email protected]>
- Loading branch information