fleet/server
Lucas Manuel Rodriguez 8bf46f16a5
Fix software ingestion when fields are larger than supported (#13741)
Should fix the issue reported in #12230. For Wireshark, osquery was
reporting a `vendor` value larger than what we allowed storing in the
`vendor` column (32 bytes). But recently we enlarged the `vendor` column
to fit `114` chars. The direct software ingestion routine was inserting
a new software entry every time because the incoming software vendor was
different to what Fleet had stored in the previous ingestion (`vendor`
column trimmed from `The Wireshark developer community,
https://www.wireshark.org/` to `The Wireshark developer communit`).

I've now made sure that all fields are trimmed as soon as they are
received by osquery thus not triggering any re-inserts when any field is
larger than what Fleet supports.

- [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 (docs/Using
Fleet/manage-access.md)~
- ~[ ] 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-09-06 17:32:11 -03:00
..
authz Add /scripts/run and scripts/run/sync API endpoints to run scripts (part 1) (#13417) 2023-08-21 14:47:19 -04:00
bindata Allow users to be readded if they were ever removed (#1945) 2021-09-07 13:33:40 -03:00
config add flags to configure Windows MDM certs using their contents (#13184) 2023-08-08 10:54:50 -03:00
contexts allow clients to report errors back to the server (#13478) 2023-08-24 13:04:27 -03:00
datastore Fix software ingestion when fields are larger than supported (#13741) 2023-09-06 17:32:11 -03:00
errorstore Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
fleet Fix software ingestion when fields are larger than supported (#13741) 2023-09-06 17:32:11 -03:00
health Separate health checks for MySQL and Redis (#6468) 2022-07-01 08:08:03 -03:00
launcher Ingest pending MDM hosts (#9065) 2022-12-26 15:32:39 -06:00
live_query Bump go to 1.19.1 (#7690) 2022-09-12 20:32:43 -03:00
logging fix fleetctl apply with default configuration (#10305) 2023-03-06 10:44:40 -05:00
mail Feat UI windows automatic enrollment (#12988) 2023-08-08 15:57:55 +01:00
mdm Allow to configure fleetd for script execution (#13564) 2023-08-30 10:18:34 -03:00
mock paginate the policies API (#13459) 2023-08-30 16:30:17 -06:00
policies Refactor webhooks cron to new schedule package (#7840) 2022-09-20 14:26:36 -05:00
ptr Feature 9834: Add published date to vulnerability object (#10434) 2023-03-28 16:11:31 -04:00
pubsub Provide more feedback to the user when there's a Redis connection issue when running live queries (#11947) 2023-06-01 16:11:55 -03:00
service Fix software ingestion when fields are larger than supported (#13741) 2023-09-06 17:32:11 -03:00
sso lowercase DisplayName attributes when reading SSO response (#12545) 2023-06-28 12:19:13 -03:00
test Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
vulnerabilities Fixed iCloud false positives (#12551) 2023-06-30 13:05:34 -04:00
webhooks Mask secret query params when logging url error (#12980) 2023-07-26 16:40:58 -05:00
websocket Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
worker store email used for authentication during MDM SSO (#13480) 2023-08-23 18:23:26 -03:00
utils_test.go allow padded strings in mdm/apple/enqueue endpoint (#13502) 2023-08-24 15:17:05 -03:00
utils.go allow padded strings in mdm/apple/enqueue endpoint (#13502) 2023-08-24 15:17:05 -03:00