elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[Defend workflows]After License upgrade from Platinum to Enterprise, User is not able to access the Respond from take action on alert details flyout for the old alerts #177272

Closed sukhwindersingh-qasource closed 6 months ago

sukhwindersingh-qasource commented 6 months ago

Describe the bug: After License upgrade from Platinum to Enterprise, User is not able to access the Respond from take action on alert details flyout for the old alerts

Build Details:

VERSION: 8.12.2
BUILD: 70281
COMMIT: f5bd489c5ff9c676c4f861c42da6ea99ae350832

Preconditions

Steps to Reproduce

Whats working

Actual result

Expected Result

Screen-Cast Alert which was triggered on the platinum license

https://github.com/elastic/kibana/assets/108654988/f4fd0d37-2279-42c6-8f32-858adb3f1532

Alert triggered after the license upgraded to enterprise

https://github.com/elastic/kibana/assets/108654988/27c753d3-51ba-4d08-88ce-8d4dcec1d336

elasticmachine commented 6 months ago

Pinging @elastic/security-solution (Team: SecuritySolution)

elasticmachine commented 6 months ago

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

muskangulati-qasource commented 6 months ago

Reviewed and assigned to @dasansol92

dasansol92 commented 6 months ago

Thanks @sukhwindersingh-qasource for checking this. Is this happening in older stack versions or is it only happening in 8.12.2? Thanks! cc: @paul-tavares @ashokaditya

sukhwindersingh-qasource commented 6 months ago

Hi @dasansol92 ,

We have Tried to this on the 8.12.0 build and found the issue is not occurring on the same.

Please find below the testing details

Build Details:

VERSION: 8.12.0 BUILD: 70088 COMMIT: e9092c0a17923f4ed984456b8a5db619b0a794b3

Screencast

https://github.com/elastic/kibana/assets/108654988/da740bb7-a567-435a-be83-36fe70b4ed16

Thanks!!

tomsonpl commented 6 months ago

@sukhwindersingh-qasource hey, thanks for raising this 👍 I am not able to reproduce this locally, could you share your cloud instance that has the bug, so I could play with it a bit? Thank you! 🙇

paul-tavares commented 6 months ago

@sukhwindersingh-qasource - A few things we need to debug this issue:

FYI: The fact that the Respond option is showing up on the Alert "Take Action" menu but disabled with the message that indicates "install endpoint" means that we were not able to find the Host agent.id when we queried with it against the /api/endpoint/metadata/{agent.id_value_here} - which means the host is not running endpoint

sukhwindersingh-qasource commented 6 months ago

Hi @paul-tavares, @tomsonpl,

Below are the steps we followed to downgrade to a platinum license:

  1. Navigate to the Licensing page using this link: Internal License - X-Pack and Endgame.

  2. Download the JSON file of the required license.

  3. For release builds, we use the following JSON: image

  4. For Snapshot builds we use this - image

  5. Then add the JSON text of the required License below this PUT _license?acknowledge=true and click on run button.

Note: It's advisable to first downgrade the license to basic and then upgrade it to the desired license. For a basic license, use the following Dev Tool command: POST /_license/start_basic?acknowledge=true

After investigating the issue, we discovered that the endpoint was not running, which caused this behavior.

Please let us know if anything else is required from our end. We are closing this ticket as it is working as expected.

Thank you!

tomsonpl commented 6 months ago

Thank you @sukhwindersingh-qasource, i added the licenses page to my favorites ❤️ I am glad that in the end it works as excepted :)