Kibana version:
VERSION: 9.3.0 SNAPSHOT
BUILD: 94838
COMMIT: 1fd010eed96bf0195cbf4490405fcc067c64746e
Preconditions:
- A 9.3.0-SNAPSHOT Kibana cloud environment is available.
- Multiple agents are installed with privileged (root) access.
Steps to reproduce:
- Navigate to Developer tools.
- Execute the following API:
POST kbn:/api/fleet/agents/{agent_id}/privilege_level_change.
- Trigger the above API multiple times for the same agent
- Wait for 5 mins
- Navigate to Fleet > Agents Tab
- Observe that Agent gets unhealthy and shows error on Last Check-in
Expected behavior:
- API should prevent or reject multiple simultaneous or repeated privilege_level_change API calls for the same agent.
Screen shot:*
Linked Feature ticket:
#4973