fleet/server/platform/endpointer
Scott Gress 30632040b1
Fix addFleetMaintainedAppEndpoint to accept fleet_id param (#41805)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41771

# Details

Solves two issues in 4.82:

1. The `fleet_id` param in `POST /software/fleet_maintained_apps` wasn't
being read, causing all FMAs using that param to be added to fleet ID 0
(unassigned aka No Team)
2. We were logging deprecation warnings for body params even if the
topic was turned off, meaning Fleet would generate deprecation warnings
in certain cases that users wouldn't be able to fix.

# Checklist for submitter

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

- [X] 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.

## Testing

- [X] Added/updated automated tests
Added unit tests for the decoder since it's got one-off logic in it
- [X] QA'd all new/changed functionality manually
  - [X] Added an FMA to a fleet successfully using `fleet_id`
- [X] Added an FMA to a fleet successfully using `team_id` and saw
deprecation warning
  - [X] Added an FMA to "Unassigned" successfully using `fleet_id=0`
  - [X] Added an FMA to "Unassigned" successfully using `team_id=0`
- [X] Added an FMA to "Unassigned" successfully with no `fleet_id` or
`team_id` param (this seems like a bug but it's existing behavior)

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2026-03-17 09:59:03 -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 Fix addFleetMaintainedAppEndpoint to accept fleet_id param (#41805) 2026-03-17 09:59:03 -05: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 add keymap for new renames, and shallow duplication (#41682) 2026-03-16 08:37:23 -05:00
json_key_duplicator_test.go add keymap for new renames, and shallow duplication (#41682) 2026-03-16 08:37:23 -05: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