elastic / kibana

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

[Fleet]: Incorrect error message is displayed at the top of the policy editor while adding AWS integration when no Fleet Server exists. #180992

Open amolnater-qasource opened 5 months ago

amolnater-qasource commented 5 months ago

Kibana Build details:

VERSION: 8.14.0-SNAPSHOT
BUILD: 73413
COMMIT: cba0e7f3f18ab7fd48ee30b0385a599d211eac7d

Host OS: All

Preconditions:

  1. 8.14.0-SNAPSHOT Kibana cloud environment should be available.

Steps to reproduce:

  1. Navigate to Fleet>Agents tab and observe no hosted fleet server is available.
  2. Navigate to Integrations and add AWS integration.
  3. Observe error message: This integration contains policy secrets(opens in a new tab or window), but you have a Fleet Server running on a version earlier than 8.10.0. Please upgrade your Fleet Server to enable policy secrets for all integrations.

Expected Result: Correct error message should be displayed under policy editor while adding AWS integration when no Fleet Server exists. This integration contains policy secrets(opens in a new tab or window), but Fleet Server is not available. Please install Fleet Server to enable policy secrets for all integrations.

Screen Recording:

https://github.com/elastic/kibana/assets/77374876/38608d3a-ce4c-4cb0-b09c-518531775b88

Feature: https://github.com/elastic/kibana/pull/178045

elasticmachine commented 5 months ago

Pinging @elastic/fleet (Team:Fleet)

amolnater-qasource commented 5 months ago

@manishgupta-qasource Please review.

manishgupta-qasource commented 5 months ago

Secondary review for this ticket is Done

kpollich commented 5 months ago

Thanks for the report. I think providing a granular message like this is doable, but we should consider this pretty low priority for now.

kpollich commented 5 months ago

For context: we'd need to do an additional check for Fleet Servers first before showing the callout, which I think we could do it's just a bit tedious.