fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.16k stars 432 forks source link

Run scripts on multiple hosts from Fleet UI #22517

Open ddribeiro opened 1 month ago

ddribeiro commented 1 month ago
noahtalerman commented 1 month ago

Moved the original issue description here for safekeeping:

Summary

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

Problem

As a Fleet admin, I want to run ad-hoc scripts on a group of hosts using the Fleet UI. Currently, to run an ad-hoc script in the Fleet UI, I have to go into each host details page to run the script.

What have you tried?

I searched the Fleet UI for a way to execute a script on multiple hosts at once, but did not find a way to do that. I was only able to run my script on each host individually.

Potential solutions

17129 might be a solution for some workflows where the execution of a script on multiple hosts can be determined

For workflows where the execution of the script is run on demand and is not automated, there should be a way in the Fleet UI to select multiple hosts to run a script on. I think a UI similar to host selection for Live Queries would work well.

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

As a Fleet admin who uses scripts to perform remote actions on my host (i.e. promote local users to admin or vice versa), I would select a script in the Fleet UI. I would then select hosts to run that script on (either individual hosts, platform, or label). The script would queue up to run on those selected hosts and execute when they come online.