fleetdm / fleet

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

Manage scripts with YAML #9828

Closed lukeheath closed 11 months ago

lukeheath commented 1 year ago

CLI usage

Update config and team YAML files

See the Figma here for changes, behavior, and error messages.

Create POST to batch-apply scripts

Matches the format and behavior of POST /api/v1/fleet/mdm/apple/profiles/batch. This API endpoint is documented here.

POST /api/v1/fleet/scripts/batch

Parameters

Name Type In Description
team_id number query Available in Fleet Premium The team ID to apply the scripts to. Only one of team_name/team_id can be provided.
team_name string query Available in Fleet Premium The name of the team to apply the scripts to. Only one of team_name/team_id can be provided.
dry_run bool query Validate the provided scripts and return any validation errors, but do not apply the changes.
scripts json body An array of strings, the base64-encoded script files to apply.

Example

POST /api/v1/scripts/batch

Default response

204

lukeheath commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @gillespi314 @mna @roperzh

mna commented 1 year ago

@noahtalerman Questions based on the experience of the similar ticket for macos custom settings:

mna commented 1 year ago

@noahtalerman answering the question regarding the name from my comment above, as mentioned in the estimation meeting, the answer is in the UI figma: the name of the script is the filename (with the extension, but without any directory and path separator).

So if a script has the same filename as another script in another directory, we reject it as a duplicate.

noahtalerman commented 1 year ago

the name of the script is the filename

@mna correct.

if a script has the same filename as another script in another directory, we reject it as a duplicate.

Yep!

noahtalerman commented 1 year ago

Sarah: It would be great to have the error messages be spec'd outside of the UI and CLI because we can see where we need the same errors for CLI and UI and where they're different.

georgekarrv commented 1 year ago

Please add your planning poker estimate with Zenhub @ghernandez345

georgekarrv commented 1 year ago

Please add your planning poker estimate with Zenhub @marcosd4h

fleet-release commented 11 months ago

Scripts managed with ease, In YAML's gentle breeze, Fleet's growth, it shall please.