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

Add ability to run ad-hoc scripts on multiple hosts in the Fleet UI #25568

Open
ddribeiro opened this issue Jan 17, 2025 · 1 comment
Open

Add ability to run ad-hoc scripts on multiple hosts in the Fleet UI #25568

ddribeiro opened this issue Jan 17, 2025 · 1 comment
Labels
customer-cisneros ~feature fest Will be reviewed at next Feature Fest

Comments

@ddribeiro
Copy link
Member

ddribeiro commented Jan 17, 2025

Gong snippet: https://us-65885.app.gong.io/call?id=7102013700127118567&highlights=%5B%7B%22type%22%3A%22SHARE%22%2C%22from%22%3A224%2C%22to%22%3A948%7D%5D

  • @noahtalerman: I think we still want to guide users who are trying to enforce remediation (not one off scripts) to write a policy and then attach a script to it
  • @noahtalerman: User requested this because it’s too much work and takes too much time to add a policy and then add a script to it. Then I have to wait an hour for the policy to get evaluated. And after the script runs I have to deleted the policy. I just want to run a script on many hosts at once. If it doesn't work for some hosts the first time, I want to easily run it again.
    • @noahtalerman: In the interim the user can build an automation w/ Tines to hit the run script API endpoint.
    • @noahtalerman: Eventually Fleet could add the ability to multi-select hosts on Hosts page (or in live query results) and then run a script against all these hosts at once.
    • @allenhouchins: Policies are sometimes not desirable because the end user can see them in My device page. In troubleshooting use cases, I don't want to bother the end user. They can notice when I add a policy.

@ddribeiro ddribeiro added :product Product Design department (shows up on 🦢 Drafting board) customer-cisneros labels Jan 17, 2025
@noahtalerman
Copy link
Member

Problem

As a Fleet admin managing Linux hosts, scripting is the primary mechanism I have to perform management actions on a host. The Fleet UI allows me to run ad-hoc scripts on a single host, but if I want to run a script on multiple hosts, I need to use policy automations. This can be a barrier to an admin who wants to run scripts on multiple hosts but is unfamiliar with osquery/SQL syntax.

What have you tried?

customer-cisneros has scripts uploaded to teams in their Fleet server. They can navigate to an individual host's details page and run a script on that host from the UI. However, there is no practical way to apply this workflow to multiple hosts in the UI.

Scripts triggered by policy automations could work in many workflows, but there are some cases where an ad-hoc script needs to be run on a batch of hosts as fast as possible. Building a query for a policy takes additional time, especially for admins who may not be familiar with osquery.

Potential solutions

In addition to the ability to run an ad-hoc script on a single host in the Fleet UI, Fleet could add the ability to target multiple hosts and run a script.

What is the expected workflow as a result of your proposal?

If a Fleet admin needs to perform a quick action on a group of Linux hosts, they would write a script that performs that task. Once they have the script, they would upload it to Fleet. They would then select the script to be run, select a group of hosts to run the script against, and Fleet would execute it on those hosts.

@noahtalerman noahtalerman added ~feature fest Will be reviewed at next Feature Fest and removed :product Product Design department (shows up on 🦢 Drafting board) labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-cisneros ~feature fest Will be reviewed at next Feature Fest
Development

No branches or pull requests

2 participants