Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching permission mode on not installed agent #6506

Open
michalpristas opened this issue Jan 10, 2025 · 2 comments
Open

Switching permission mode on not installed agent #6506

michalpristas opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@michalpristas
Copy link
Contributor

Switching permission mode on not installed agent has not defined behavior.

While CLI allows to switch permission mode e.g from unprivileged to privileged what happens is:

  • permission of files is changed
  • running process keeps running
  • service is installed referencing not existing files (standard install directory)
  • service is not starting hence binary is not found

We should either

  • disable commands for not installed agent (switch implementation states it support installed agents only)
  • fix the behavior for not installed agents.
@michalpristas michalpristas added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Jan 10, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@blakerouse
Copy link
Contributor

Disable! Because we are not running the daemon, it is on the user to exercise the binary correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

3 participants