Skip to content

Agent gets unhealthy and shows error on Last Check-in on triggering multiple single or bulk privilege change API calls #11993

@harshitgupta-qasource

Description

@harshitgupta-qasource

Kibana version:

VERSION: 9.3.0 SNAPSHOT
BUILD: 94838
COMMIT: 1fd010eed96bf0195cbf4490405fcc067c64746e

Preconditions:

  1. A 9.3.0-SNAPSHOT Kibana cloud environment is available.
  2. Multiple agents are installed with privileged (root) access.

Steps to reproduce:

  1. Navigate to Developer tools.
  2. Execute the following API: POST kbn:/api/fleet/agents/{agent_id}/privilege_level_change.
  3. Trigger the above API multiple times for the same agent
  4. Wait for 5 mins
  5. Navigate to Fleet > Agents Tab
  6. 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:*

Image

Linked Feature ticket:
#4973

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teambugSomething isn't workingimpact:highShort-term priority; add to current release, or definitely next.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions