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 Windows #3868

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

[Unprivileged] Enable --unprivileged on Windows #3868

blakerouse opened this issue Dec 5, 2023 · 3 comments · Fixed by #4264
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 Windows.

Describe a specific use case for the enhancement or feature:

To allow Elastic Agent to run on Windows without requiring Administrator privileges.

What is the definition of done?

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

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

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

@blakerouse blakerouse changed the title [Unprivileged] Enable --unprivileged on Windows [Unprivileged] Enable --unprivileged on Windows Dec 5, 2023
@nicpenning
Copy link
Contributor

Will this allow a service account or managed user to do this?

For example, if I have a service account in active dieectory that works on the system already, can I use that or is elastic creating an account and group locally?

The use case is integrations that need network access from specific service accounts in active directory to be the service context for filebeat (api, file shares, etc).

Today system is the only option but this gives me hope for 1 non system which is great, but having custom users would be excellent.

In the past you could simply install filebeat or winglogbeat with the service account you needed as a service and it would use that user context when it runs.

@cmacknz
Copy link
Member

cmacknz commented Apr 16, 2024

is elastic creating an account and group locally?

From #4264 in the initial implementation we are creating a new account unconditionally. "During installation the elastic-agent-user user and elastic-agent group is created, permissions are set correctly on the copied files, service is created running as the elastic-agent-user".

I created #4585 to track using a pre-existing account.

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.

4 participants