Report whether an agent is Fleet managed or standalone or unprivileged to components #4683
Labels
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team
User-Agent
beats#39403 (comment)Allow components (specifically Beats sub-processes) to determine if they are connected to a standalone or a Fleet managed agent so that they can add this information to the User-Agent string. Additionally include whether the agent is unprivileged since it is cheap to add as part of this change.
Determining the privilege level is a single function call, for example see
elastic-agent/pkg/control/v2/server/server.go
Line 401 in eaf3c43
Adding this information to the
AgentInfo
message in the control protocol is likely the best choice. https://github.com/elastic/elastic-agent-client/blob/ac72c3488d26b2b319cec87536d45eea35b81d17/elastic-agent-client.proto#L197-L210The text was updated successfully, but these errors were encountered: