fleet/cmd/fleetctl
Victor Lyuboslavsky 05eb338561
Enable gitops to create teams with no enroll secrets, or clear enroll secrets for an existing team (#19616)
Enable gitops to create teams with no enroll secrets, or clear enroll
secrets for an existing team
#19332 

`fleetctl apply` also gains this extra functionality. In `fleetctl
apply` secrets will not be change if one of the following:
- secrets is missing from yml
- They are blank in yml, like: `secrets:`
- They are null in yml, like: `secrets: null`

They will only be cleared with `fleetctl apply` if the user explicitly
sets them to an empty array, like:
- `secrets: []`

# 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. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-11 13:20:32 -05:00
..
testdata Enable gitops to create teams with no enroll secrets, or clear enroll secrets for an existing team (#19616) 2024-06-11 13:20:32 -05:00
api.go add CLI for the new MDM cert flow (#19240) 2024-05-27 11:14:37 -03:00
api_test.go Initial fleetctl api command works with GETS and fields (#17971) 2024-05-07 11:22:05 -05:00
apply.go Support environment variables in config profiles (#18891) 2024-05-28 13:44:43 -03:00
apply_test.go Merge remote-tracking branch 'origin/main' into feat-save-certs 2024-05-31 09:34:48 -03:00
config.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
config_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
convert.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
convert_test.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
debug.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
debug_test.go Orbit to kill pre-existing osqueryd processes during startup (#16343) 2024-01-29 16:44:50 -03:00
delete.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
delete_test.go Activity feed webhooks backend (#19261) 2024-05-24 11:25:27 -05:00
flags.go improve messaging of fleetctl debug errors and archive commands (#5590) 2022-05-10 10:44:06 -03:00
fleetctl.go Initial fleetctl api command works with GETS and fields (#17971) 2024-05-07 11:22:05 -05:00
generate.go add CLI for the new MDM cert flow (#19240) 2024-05-27 11:14:37 -03:00
generate_test.go fix fleetctl generate mdm-apple-bm (#19507) 2024-06-04 18:19:09 -03:00
get.go Docs: Fix broken links & add redirects (#19066) 2024-05-17 11:24:33 -05:00
get_test.go Merge branch 'main' into feat-software-self-service 2024-05-31 16:35:56 -05:00
gitops.go fleetctl gitops --dry-run now errors on duplicate (or conflicting) global/team enroll secrets. (#19344) 2024-05-31 07:01:13 -05:00
gitops_enterprise_integration_test.go generate/ingest SCEP challenges and improve error messages (#19468) 2024-06-03 18:33:52 -03:00
gitops_enterprise_no_mdm_integration_test.go GitOps remove teams (#18640) 2024-05-03 08:03:00 -05:00
gitops_integration_test.go generate/ingest SCEP challenges and improve error messages (#19468) 2024-06-03 18:33:52 -03:00
gitops_test.go Enable gitops to create teams with no enroll secrets, or clear enroll secrets for an existing team (#19616) 2024-06-11 13:20:32 -05:00
goquery.go fleetctl now runs saved queries (#15667) 2023-12-15 12:55:39 -06:00
hosts.go fleetctl can now transfer hosts to No team (#16759) 2024-02-13 10:17:59 -06:00
hosts_test.go Activity feed webhooks backend (#19261) 2024-05-24 11:25:27 -05:00
kill_process.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
kill_process_windows.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
login.go Provide feedback to user in fleetctl login when using env vars (#12371) 2023-06-16 11:42:04 -03:00
logout.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
logout_test.go Simplify fleetctl implementation and improve testing (#3830) 2022-01-24 16:40:51 -03:00
mdm.go iPhone/iPad support (#19221) 2024-05-28 19:17:14 -03:00
mdm_test.go Merge remote-tracking branch 'origin/main' into feat-save-certs 2024-05-30 18:34:40 -03:00
package.go Update fleetctl package usage description (#18545) 2024-04-26 15:10:28 -05:00
package_test.go Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
preview.go Fix fleetctl preview bug caused by creating enroll secrets (#19497) 2024-06-10 16:49:59 -03:00
preview_test.go Move external dependency osquery-in-a-box to monorepo (#15871) 2024-01-10 11:45:52 -03:00
query.go fleetctl now runs saved queries (#15667) 2023-12-15 12:55:39 -06:00
query_output.go add host_display_name to live query rows (#8251) 2022-10-17 15:52:25 +02:00
query_test.go Move CalculateAggregatedPerfStatsPercentiles reads to the replica (#19206) 2024-05-31 07:08:31 -05:00
scripts.go Adding cli improvements for run-scripts (#18010) 2024-05-07 10:10:22 -05:00
scripts_test.go Adding cli improvements for run-scripts (#18010) 2024-05-07 10:10:22 -05:00
session_test.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
setup.go Fleet Premium: de-anonymize usage stats (#7013) 2022-08-03 14:44:34 -04:00
testing_utils.go 19016 ingest certs on start (#19360) 2024-05-30 18:18:42 -03:00
trigger.go Add fleetctl trigger command (#8877) 2022-12-06 09:56:54 -06:00
trigger_test.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
upgrade_packs.go fleetctl now runs saved queries (#15667) 2023-12-15 12:55:39 -06:00
upgrade_packs_test.go Save Query Results to DB (#14335) 2023-10-10 09:44:03 -03:00
user.go Create Bulk Users from CSV (#3372) 2022-06-22 13:34:58 -03:00
users_test.go Activity feed webhooks backend (#19261) 2024-05-24 11:25:27 -05:00
vulnerability_data_stream.go Fix backoff in vuln stream logging (#19148) 2024-05-28 08:13:46 -06:00
vulnerability_data_stream_test.go generate/ingest SCEP challenges and improve error messages (#19468) 2024-06-03 18:33:52 -03:00