Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] expandable flyout - Opt in to data anonymization …
…for the Elastic AI Assistant (#164384) ## [Security Solution] expandable flyout - Opt in to data anonymization for the Elastic AI Assistant This 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. As a result: - A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized - NO toggle buttons to allow specific fields and enable / disable anonymization are displayed ### Reproduction steps To reproduce: 1. Navigate to Security > Alerts 2. Click the `View details` action on any row in the Alerts table to view the new expandable flyout 3. Click the `Chat` button, which appears next to the `Expand details` button in the flyout 4. Expand the `Alert (from summary)` context **Expected results** - Stats for the number of fields that will be `Allowed`, `Anonymized`, and the total number of fields `Available` are displayed - Toggle buttons to allow specific fields and enable / disable anonymization on each field are displayed **Actual results** - A stat that reads `0 Anonymized` indicates the alert data will NOT be anonymized - NO toggle buttons to allow specific fields and enable / disable anonymization are displayed - The plain-text, non-anonymized context data is displayed in the preview, per the screenshot below: ![0_anonymized](https://github.com/elastic/kibana/assets/4459398/e881bb4a-caa4-43c4-8b31-cf3deb354cf7) ## Desk testing 1. Reproduce the issue per the steps above 2. Verify the expected results are displayed when testing the fix, per the screenshot below: ![anonymization-opt-in](https://github.com/elastic/kibana/assets/4459398/79a8228d-c5a6-4ea5-a6ab-4bd992e6b7ef) _Above: After the fix, the expected stats and field level anonymization toggles are displayed_
- Loading branch information