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

[Unprivileged] Enable --unprivileged on macOS #3867

Closed
blakerouse opened this issue Dec 5, 2023 · 3 comments · Fixed by #4362
Closed

[Unprivileged] Enable --unprivileged on macOS #3867

blakerouse opened this issue Dec 5, 2023 · 3 comments · Fixed by #4362
Assignees
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@blakerouse
Copy link
Contributor

Describe the enhancement:

Current support for --unprivileged is isolated to Linux, this needs to be expanded to support macOS.

Describe a specific use case for the enhancement or feature:

To allow Elastic Agent to run on macOS without requiring root privileges.

What is the definition of done?

When install --unprivileged installs and Elastic Agent works running on macOS in this mode.

@blakerouse blakerouse added the Team:Elastic-Agent Label for the Agent team label Dec 5, 2023
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@intxgo
Copy link
Contributor

intxgo commented Mar 11, 2024

I've never heard about --unprivileged flag. Is it something new, as it's not mentioned for 8.12 https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html#elastic-agent-install-command ?

I wonder what is the intended use case. I guess that this mode should explicitly disable Elastic Defend support to avoid confusion. Elastic Defend won't talk to Agent running under unprivileged account.

@cmacknz
Copy link
Member

cmacknz commented Mar 11, 2024

I've never heard about --unprivileged flag. Is it something new, as it's not mentioned for 8.12 https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html#elastic-agent-install-command ?

It is being developed and not considered ready for users yet.

I wonder what is the intended use case. I guess that this mode should explicitly disable Elastic Defend support to avoid confusion. Elastic Defend won't talk to Agent running under unprivileged account.

People don't want to install agent as root/admin unless they have to (to access data protected by root permissions, to run Elastic Defend, etc). We won't allow installing Elastic Defend on an unprivileged agent so this isn't something the defend team has to account for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants