fleet/pkg
Ian Littman 0a8a396643
Ensure scripts set in no-team.yml can be used in run-script actions for No Team (#22809)
For #22787

Also revises the spec check to explain that scripts have to be defined
"controls" when used in policies for the same team, with an explicit
call-out for no-team.yml since this fix doesn't support pulling scripts
from the global file. This is because parsing and script-matching
happens early enough that we can't throw an error in the part of the
code where we bail when controls are defined in both no-team and default
files.

To minimize diff size, we're both "passing-by-ref" and returning the
maps-by-team of scripts and installers, though the former would be
sufficient on its own.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- N/A Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated tests (sorta)
- [x] Manual QA for all new/changed functionality
2024-10-10 06:12:24 -05:00
..
buildpkg chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
certificate Fixes to fleetctl debug connection and TLS certs documentation (#20166) 2024-07-09 14:04:23 -03:00
download Fix to not panic if MSRC for current month is not available (#21749) 2024-09-27 16:59:43 -05:00
file Use pkgutil approach to be more effective at uninstalling (#22618) 2024-10-03 14:21:23 -03:00
filepath_windows Allow custom osquery database on fleetd (#16554) 2024-02-05 09:41:06 -03:00
fleetdbase use the latest fleetd-base version for MDM commands (#20078) 2024-06-28 16:35:07 -03:00
fleethttp add CLI and endpoints to set software via fleetctl apply (#18876) 2024-05-14 15:06:33 -03:00
mdm/mdmtest Updating scep package with latest fixes (#22372) 2024-09-27 07:04:11 -05:00
nettest fix RunWithNetRetry (#8590) 2022-11-07 16:31:10 +01:00
open Orbit: Add Fleet Desktop support to Windows (#4873) 2022-04-01 17:28:51 -03:00
optjson NDES SCEP proxy backend (#22542) 2024-10-09 13:47:27 -05:00
rawjson Merging Bitlocker feature branch (#14350) 2023-10-06 19:04:33 -03:00
retry Add exponential backoff to orbit enroll retries (#17368) 2024-03-13 07:57:00 -03:00
scripts Fix windows installer stuck in pending state forever (#22592) 2024-10-02 16:18:37 -04:00
secure Sync CVE scores periodically (#5838) 2022-06-01 10:06:57 -06:00
spec Ensure scripts set in no-team.yml can be used in run-script actions for No Team (#22809) 2024-10-10 06:12:24 -05:00
README.md Add CentOS parsing+post-processing to reduce false positives in vulnerability processing (#4037) 2022-02-14 15:13:44 -03:00

pkg directory

This top-level pkg directory contains packages that may be shared between all fleet backend components.