fleet/server
Scott Gress 47ac964768
Don't validate software/profile labels in dry run mode (#28201)
For #28154

This PR fixes a bug where GitOps dry runs would fail when software
installers or profiles referenced labels that were created in the same
run. The issue is that GitOps utilizes the real APIs for batch
software/profile creation for validation, sending a `dryRun` flag to
prevent those APIs from actually writing data. In dry run mode, no
labels are actually created, so validation checks for "don't use labels
that don't exist" will always fail when new labels are referenced.
Recent updates to GitOps have given it the ability to validate the
labels itself, removing the need to use the API for this check.

I added a new test for this in the mdm profiles tests. The test suite
for software installers is a little more challenging to update for this
case, and since it's not a happy path test I'm not prioritizing it, but
will try to add one time permitting.
2025-04-17 08:39:24 -05:00
..
archtest Basic Android MDM on/off functionality (#26309) 2025-02-18 09:43:11 -06:00
authz Added scim/details endpoint (#28007) 2025-04-10 14:08:45 -05:00
bindata
config Add Secureframe partnership override env var for transparency URL (#27388) 2025-03-31 14:43:17 -05:00
contexts Update to Go 1.24.1 (#27506) 2025-03-31 11:14:09 -05:00
cron Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
datastore prevent new host software that is a re-name of existing software from being processed as regular new software (#28286) 2025-04-16 16:17:59 -04:00
errorstore Adding telemetry for specific Fleet Desktop errors (#23349) 2024-10-31 14:24:42 -05:00
fleet Update API message for Windows MDM not configured error (#28247) 2025-04-15 13:52:17 -05:00
goose Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
health 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
launcher Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
live_query Fix flakey livequery test (#21666) 2024-08-29 10:03:45 -06:00
logging Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
mail Ignore EOF errors when sending QUIT to mail server (#27994) 2025-04-08 15:43:21 -05:00
mdm Add more test coverage for Fleet-maintained apps (#27722) 2025-04-03 09:18:27 -05:00
mock Added scim/details endpoint (#28007) 2025-04-10 14:08:45 -05:00
policies 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
ptr Added better handling of timeout and insufficient permissions errors in NDES SCEP proxy. (#23654) 2024-11-11 14:57:28 -06:00
pubsub Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
service Don't validate software/profile labels in dry run mode (#28201) 2025-04-17 08:39:24 -05:00
shellquote Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
sso Merge commit from fork 2025-03-05 07:31:17 -06:00
test Cancel upcoming activities: create past canceled activities (#27956) 2025-04-09 16:08:51 -04:00
version Move external dependency fleetdm/kolide-kit to monorepo (#15861) 2024-01-02 18:22:52 -03:00
vulnerabilities Fix non-Windows false positive for CVE-2024-6286 (#27325) 2025-03-20 09:21:42 -05:00
webhooks Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
websocket Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
worker SCIM + host integration (#27880) 2025-04-08 09:35:06 -05:00
utils.go Allow opting in users to email verification on login (#24273) 2024-12-05 08:37:10 -06:00
utils_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00