fleet/server/platform/endpointer
Scott Gress 4e35de2ac3
Update fleetctl client urls and params (#41463)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41385 

# Details

This PR updates `fleetctl` to use the new API urls and params when
communicating with Fleet server. This avoids deprecation warnings
showing up on the server that users won't be able to fix.

Most of the changes are straightforward `team_id` -> `fleet_id`. A
couple of code changes have been pointed out. The most interesting is in
icon URLs, which can be persisted in the database (so we'll need to do a
migration in Fleet 5 if we want to drop support for `team_id`.

Similarly the FMA download urls are briefly persisted in the db for the
purpose of sending MDM commands. If we drop team_id support in Fleet 5
there could be a brief window where there are unprocessed commands in
the db still with `team_id` in them, so we'll probably want to migrate
those as well.

# Checklist for submitter

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

- [ ] 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/guides/committing-changes.md#changes-files)
for more information.
n/a - all internal

## Testing

- [X] Added/updated automated tests
- [X] QA'd all new/changed functionality manually
- [X] ran `fleetctl gitops` on main and saw a bunch of deprecation
warnings, ran it on this branch and the warnings were gone 💨
  - [X] same with `fleetctl generate-gitops`
- [X] ran `fleetctl get` commands and verified that the new URLs and
params were used
- [X] ran `fleetctl apply` commands and verified that the new URLs and
params were used
2026-03-13 08:38:55 -05:00
..
clientip.go Implement trusted proxies config (#38471) 2026-01-19 22:13:37 -06:00
clientip_test.go Implement trusted proxies config (#38471) 2026-01-19 22:13:37 -06:00
endpoint_utils.go Add CSP to fleet(currently disabled - needs frontend work) (#41395) 2026-03-12 18:06:54 -04:00
endpoint_utils_test.go Increase body size limits for osquerylog and osquery/dist/write endpoints (#40946) 2026-03-09 13:49:07 -04:00
extract_alias_rules_test.go Deprecate "team" and "query" API params (#39873) 2026-02-19 13:53:32 -06:00
json_key_duplicator.go Deprecate "team" and "query" API params (#39873) 2026-02-19 13:53:32 -06:00
json_key_duplicator_test.go Deprecate "team" and "query" API params (#39873) 2026-02-19 13:53:32 -06:00
json_key_rewriter.go Update fleetctl client urls and params (#41463) 2026-03-13 08:38:55 -05:00
json_key_rewriter_test.go Update fleetctl client urls and params (#41463) 2026-03-13 08:38:55 -05:00
transport_error.go Fixed client-side errors being incorrectly reported as server errors in OTEL telemetry (#40051) 2026-02-19 16:06:00 -06:00
transport_error_test.go Fixed client-side errors being incorrectly reported as server errors in OTEL telemetry (#40051) 2026-02-19 16:06:00 -06:00