Open cmacknz opened 6 months ago
Pinging @elastic/elastic-agent (Team:Elastic-Agent)
This comes back to having an Active Directory based user/group as the service account that Elastic Agent uses to run.
This would be really nice to have on Windows because it would allow deployed agents to have the correct access and permissions that administrators want all configured in Active Directory.
Would need to add new installation parameters to allowing passing the group, user and password to configure the service.
@blakerouse once we have this AD user/group mapping to the agent, in the future can we use it to either tag or move the agent to a pre-defined policy? this type of feature has been asked before and is part of what our own Security team wants to see implemented for Defend.
@nimarezainia Sorry I don't understand the ask about tags and pre-defined policy. Can you provide more context?
@blakerouse sorry should have been clearer. there has been an ask for a while that we allow the users to tag agents and map those tags to Agent Policies. Some of that is described here. Obviously tagging is a way to group. An extended ask was to allow users in the same Active Directory group to dynamically be placed in a given agent policy. ( like those in Finance dept are always mapped to policy A and Engineering is mapped to policy B dynamically. No matter where they travel etc). Now we have none of these capabilities today.
Anyway this is way far away from what we are planning so perhaps I am complicating things by asking.
I think we can tag the Agent but to change the applying a policy depending on that tag should probably be done on the Fleet side.
I don't know if mixing the two is a good idea. When they install and enroll the Elastic Agent they can set the tag then, just like they will have to provide the username/password for it to use that specific user in Active Directory.
@michalpristas please sync with Pavel to ensure we're running the right sets of tests for sudo vs non-sudo. cc @rowlandgeoff @ycombinator
Quoting https://github.com/elastic/elastic-agent/issues/3868#issuecomment-2053871719 for a Windows use case for this: