fleet/server
Lucas Manuel Rodriguez 407d05eab9
Workaround to set policy specs on a team (#9978)
For the CIS benchmark feature, we need a way to import a group of
policies (spec yml) into a team.
This PR adds a flag to `apply -f` to allow setting a team name to a
group of policies.

Sample:
```sh
fleetctl apply --context dogfood --policies-team "📊 CIS Benchmarks" -f ee/cis/macos-13/cis-policy-queries.yml
```

- [X] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- ~[ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)~
- ~[ ] Documented any permissions changes~
- ~[ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)~
- ~[ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.~
- [ ] Added/updated tests
- [X] Manual QA for all new/changed functionality
  - ~For Orbit and Fleet Desktop changes:~
- ~[ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.~
- ~[ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).~
2023-02-22 13:14:53 -03:00
..
authz Add authz and datastore methods for mdm config profiles (#9781) 2023-02-14 09:12:18 -06:00
bindata Allow users to be readded if they were ever removed (#1945) 2021-09-07 13:33:40 -03:00
config vuln processing distinct command (#9813) 2023-02-17 10:00:57 -05:00
contexts Refactor license so it is stored in the context (#8544) 2022-11-15 09:08:05 -05:00
datastore Fix golangci-lint issue and run Github action on all OSs (#9944) 2023-02-21 14:30:45 -03:00
errorstore Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
fleet Workaround to set policy specs on a team (#9978) 2023-02-22 13:14:53 -03:00
health Separate health checks for MySQL and Redis (#6468) 2022-07-01 08:08:03 -03:00
launcher Ingest pending MDM hosts (#9065) 2022-12-26 15:32:39 -06:00
live_query Bump go to 1.19.1 (#7690) 2022-09-12 20:32:43 -03:00
logging add mocks + tests and move things around (#9574) 2023-01-31 11:46:01 -03:00
mail update copyright year in core product transactional email templates (#3549) 2022-01-01 12:41:32 -06:00
mdm/apple don't filter DEP hosts by OS before ingesting and improve logs (#9815) 2023-02-14 10:23:19 -03:00
mock update mockimpl version to allow concurrent mock calls (#9989) 2023-02-21 16:36:06 -03:00
policies Refactor webhooks cron to new schedule package (#7840) 2022-09-20 14:26:36 -05:00
ptr Feature 7077: Add MSRC feed parser (#7424) 2022-08-30 16:39:50 -04:00
pubsub Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
service Workaround to set policy specs on a team (#9978) 2023-02-22 13:14:53 -03:00
sso Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
test Implement API endpoint for MDM manual enrollment profile download (#9232) 2023-01-16 10:22:12 -05:00
vulnerabilities vuln processing distinct command (#9813) 2023-02-17 10:00:57 -05:00
webhooks Add ability to mark policy as critical. (#8896) 2022-12-06 15:59:20 +01:00
websocket Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
worker Add critical policies as a premium feature (#8959) 2022-12-09 19:23:08 +01:00
utils.go Modify /server/utils to handle all 2xx codes as POST success (#3534) 2021-12-30 16:00:10 -06:00