fleet/cmd/fleetctl
Lucas Manuel Rodriguez 2a532ede94
Do not return empty SSO and SMTP settings for non-global-admins (#12180)
#11266

PS: I first attempted a serialization trick by introducing a new
`appConfigResponse` and implementing `json.Marshal` to exclude these
fields but it was too hacky and hard to maintain moving forward, so I'm
bitting the bullet now. Happy to hear other ideas.

- [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.~
- [X] 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-06-07 16:06:36 -03:00
..
testdata Prevent clearing macos updates settings when applying/modifying a team without those settings (#12160) 2023-06-06 14:31:33 -04:00
api.go New gitops role (#10850) 2023-04-12 16:11:04 -03:00
apply_test.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
apply.go Workaround to set policy specs on a team (#9978) 2023-02-22 13:14:53 -03:00
config_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
config.go Add support for custom headers in fleetctl (#6118) 2022-06-07 16:00:09 -04:00
convert_test.go Fix error writing coverage when running tests (#10278) 2023-03-02 17:11:15 -08:00
convert.go Move specs parsing functionality to a new pkg/spec package (#7050) 2022-08-05 19:07:32 -03:00
debug_test.go Fleet server and tooling to use NETWORK_TEST_GITHUB_TOKEN when environment variable is set. (#9143) 2023-01-03 14:56:11 -03:00
debug.go fix fleetctl debug commands on Windows (#6186) 2022-06-10 21:59:44 -03:00
delete_test.go Make activities typed and auto-generate docs for each type (#9069) 2022-12-23 13:05:16 -03:00
delete.go Move specs parsing functionality to a new pkg/spec package (#7050) 2022-08-05 19:07:32 -03:00
flags.go improve messaging of fleetctl debug errors and archive commands (#5590) 2022-05-10 10:44:06 -03:00
fleetctl.go Add fleetctl get mdm-commands command and supporting API endpoint (#11163) 2023-04-17 11:45:16 -04:00
generate_test.go Finalize MDM commands part 2: implement fleetctl mdm run-command (#10866) 2023-04-03 14:25:49 -04:00
generate.go Add fleetctl get mdm-commands command and supporting API endpoint (#11163) 2023-04-17 11:45:16 -04:00
get_test.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
get.go Fix table formatting of fleetctl get mdm-command-results output (#12197) 2023-06-07 14:35:48 -04:00
goquery.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
hosts_test.go Implement worker jobs that update/re-assign setup assistants on changes (#11630) 2023-05-15 14:06:09 -04:00
hosts.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05: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
kill_process.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
login.go Tweak output for fleetctl login --help (#4776) 2022-03-23 16:40:16 -04:00
logout_test.go Simplify fleetctl implementation and improve testing (#3830) 2022-01-24 16:40:51 -03:00
logout.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
mdm_test.go Improve error handling for fleetctl mdm run-comand (#11588) 2023-05-09 13:43:15 -05:00
mdm.go Revise validation errors for fleetctl mdm run-command (#11464) 2023-05-03 10:56:25 -05:00
package_test.go Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
package.go Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
preview_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
preview.go Add macos custom profiles support via fleetctl apply (#9824) 2023-02-15 13:01:44 -05:00
query_output.go add host_display_name to live query rows (#8251) 2022-10-17 15:52:25 +02:00
query_test.go Reduce size of DistributedQueryResult to improve live query performance (#11882) 2023-05-25 08:11:53 -03:00
query.go Fix small fleetctl query bug when running with --exit flag (#11894) 2023-05-25 08:12:45 -03:00
session_test.go Print version warning when using fleetctl (#4139) 2022-02-14 09:43:34 -07:00
setup.go Fleet Premium: de-anonymize usage stats (#7013) 2022-08-03 14:44:34 -04:00
testing_utils.go Fix bug preventing gitops role from fleetctl applying macos setup assistant (and bootstrap package) (#12193) 2023-06-07 13:29:36 -04:00
trigger_test.go Fix error writing coverage when running tests (#10278) 2023-03-02 17:11:15 -08:00
trigger.go Add fleetctl trigger command (#8877) 2022-12-06 09:56:54 -06:00
user.go Create Bulk Users from CSV (#3372) 2022-06-22 13:34:58 -03:00
users_test.go Make activities typed and auto-generate docs for each type (#9069) 2022-12-23 13:05:16 -03:00
vulnerability_data_stream_test.go Feature 9386: Parse the Mac Office release notes for vulnerability processing (#9993) 2023-02-24 14:18:25 -04:00
vulnerability_data_stream.go Feature 9386: Parse the Mac Office release notes for vulnerability processing (#9993) 2023-02-24 14:18:25 -04:00