mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #37306 I think we should actually solve this at the osquery level, but this is just an alternative solution. # Checklist for submitter - [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 - [x] QA'd all new/changed functionality manually #### Setup On a macOS VM: 1. Generated a certificate with Cyrillic characters in CN and O fields: ```bash openssl req -x509 -newkey rsa:2048 -keyout newkey.pem -out newcert.pem -days 365 -nodes -utf8 -subj "/CN=АБВГДЕЖЗИКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯа/O=АБВГДЕЖЗИКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯа" ``` 2. Installed the certificate: ```bash sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain newcert.pem ``` #### Before Refetched vitals and observed certificate field too long error logs: ``` ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=subject_org host_id=32 original_length=304 max_length=255 truncated_value=\xC3\x90\xC2\xA2\xC3\x90\xC2\xB5\xC3\x91\xC2\x81\xC3\x91\xC2\x82\xC3\x90\xC2\xBE\xC3\x90\xC2\xB2\xC3\x90\xC2\xB0\xC3\x91\xC2\x8F\xC3\x90\xC2\x9E\xC3\x91\xC2\x80\xC3\x90\xC2\xB3\xC3\x90\xC2\xB0\xC3\x90\xC2\xBD\xC3\x90\xC2\xB8\xC3\x90\xC2\xB7\xC3\x90\xC2\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=subject_common_name host_id=32 original_length=304 max_length=255 truncated_value=\xC3\x90\xC2\xA2\xC3\x90\xC2\xB5\xC3\x91\xC2\x81\xC3\x91\xC2\x82\xC3\x90\xC2\xBE\xC3\x90\xC2\xB2\xC3\x90\xC2\xB0\xC3\x91\xC2\x8F\xC3\x90\xC2\x9E\xC3\x91\xC2\x80\xC3\x90\xC2\xB3\xC3\x90\xC2\xB0\xC3\x90\xC2\xBD\xC3\x90\xC2\xB8\xC3\x90\xC2\xB7\xC3\x90\xC2\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=issuer_org host_id=32 original_length=304 max_length=255 truncated_value=\xC3\x90\xC2\xA2\xC3\x90\xC2\xB5\xC3\x91\xC2\x81\xC3\x91\xC2\x82\xC3\x90\xC2\xBE\xC3\x90\xC2\xB2\xC3\x90\xC2\xB0\xC3\x91\xC2\x8F\xC3\x90\xC2\x9E\xC3\x91\xC2\x80\xC3\x90\xC2\xB3\xC3\x90\xC2\xB0\xC3\x90\xC2\xBD\xC3\x90\xC2\xB8\xC3\x90\xC2\xB7\xC3\x90\xC2\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=issuer_common_name host_id=32 original_length=304 max_length=255 truncated_value=\xC3\x90\xC2\xA2\xC3\x90\xC2\xB5\xC3\x91\xC2\x81\xC3\x91\xC2\x82\xC3\x90\xC2\xBE\xC3\x90\xC2\xB2\xC3\x90\xC2\xB0\xC3\x91\xC2\x8F\xC3\x90\xC2\x9E\xC3\x91\xC2\x80\xC3\x90\xC2\xB3\xC3\x90\xC2\xB0\xC3\x90\xC2\xBD\xC3\x90\xC2\xB8\xC3\x90\xC2\xB7\xC3\x90\xC2\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=subject_org host_id=32 original_length=256 max_length=255 truncated_value=\xD0\x90\xD0\x91\xD0\x92\xD0\x93\xD0\x94\xD0\x95\xD0\x96\xD0\x97\xD0\x98\xD0\x9A\xD0\x9B\xD0\x9C\xD0\x9D\xD0\x9E\xD0\x9F\xD0\xA0\xD0\xA1\xD0\xA2\xD0\xA3\xD0\xA4\xD0\xA5\xD0\xA6\xD0\xA7\xD0\xA8\xD0\xA9\xD0\xAA\xD0\xAB\xD0\xAC\xD0\xAD\xD0\xAE\xD0\xAF\xD0\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=subject_common_name host_id=32 original_length=256 max_length=255 truncated_value=\xD0\x90\xD0\x91\xD0\x92\xD0\x93\xD0\x94\xD0\x95\xD0\x96\xD0\x97\xD0\x98\xD0\x9A\xD0\x9B\xD0\x9C\xD0\x9D\xD0\x9E\xD0\x9F\xD0\xA0\xD0\xA1\xD0\xA2\xD0\xA3\xD0\xA4\xD0\xA5\xD0\xA6\xD0\xA7\xD0\xA8\xD0\xA9\xD0\xAA\xD0\xAB\xD0\xAC\xD0\xAD\xD0\xAE\xD0\xAF\xD0\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=issuer_org host_id=32 original_length=256 max_length=255 truncated_value=\xD0\x90\xD0\x91\xD0\x92\xD0\x93\xD0\x94\xD0\x95\xD0\x96\xD0\x97\xD0\x98\xD0\x9A\xD0\x9B\xD0\x9C\xD0\x9D\xD0\x9E\xD0\x9F\xD0\xA0\xD0\xA1\xD0\xA2\xD0\xA3\xD0\xA4\xD0\xA5\xD0\xA6\xD0\xA7\xD0\xA8\xD0\xA9\xD0\xAA\xD0\xAB\xD0\xAC\xD0\xAD\xD0\xAE\xD0\xAF\xD0\xB ts=2026-02-18T21:50:47Z level=error msg="truncating certificate field" err="certificate field too long" field=issuer_common_name host_id=32 original_length=256 max_length=255 truncated_value=\xD0\x90\xD0\x91\xD0\x92\xD0\x93\xD0\x94\xD0\x95\xD0\x96\xD0\x97\xD0\x98\xD0\x9A\xD0\x9B\xD0\x9C\xD0\x9D\xD0\x9E\xD0\x9F\xD0\xA0\xD0\xA1\xD0\xA2\xD0\xA3\xD0\xA4\xD0\xA5\xD0\xA6\xD0\xA7\xD0\xA8\xD0\xA9\xD0\xAA\xD0\xAB\xD0\xAC\xD0\xAD\xD0\xAE\xD0\xAF\xD0\xB ``` https://github.com/user-attachments/assets/31b80643-34fb-42ee-b3a1-19d54fe1d516 #### After https://github.com/user-attachments/assets/d49c1643-0920-4607-a2f1-fa6bb658c16b |
||
|---|---|---|
| .. | ||
| policytest | ||
| activities.go | ||
| agent_options.go | ||
| agent_options_generated.go | ||
| agent_options_test.go | ||
| aggregated_stats.go | ||
| android.go | ||
| android_test.go | ||
| app.go | ||
| app_test.go | ||
| apple_mdm.go | ||
| apple_mdm_test.go | ||
| authz.go | ||
| calendar.go | ||
| calendar_events.go | ||
| calendar_events_test.go | ||
| campaigns.go | ||
| capabilities.go | ||
| capabilities_test.go | ||
| carves.go | ||
| certificate_authorities.go | ||
| certificate_authorities_test.go | ||
| certificate_templates.go | ||
| certificate_templates_test.go | ||
| conditional_access_idp.go | ||
| conditional_access_microsoft.go | ||
| cron_schedules.go | ||
| datastore.go | ||
| db.go | ||
| device.go | ||
| digicert.go | ||
| emails.go | ||
| emails_test.go | ||
| errors.go | ||
| errors_test.go | ||
| est_ca.go | ||
| fleet_vars.go | ||
| fleet_vars_test.go | ||
| fleetctl.go | ||
| geoip.go | ||
| global_schedule.go | ||
| host_certificate_template.go | ||
| host_certificates.go | ||
| host_certificates_test.go | ||
| hostresponse.go | ||
| hosts.go | ||
| hosts_test.go | ||
| in_house_apps.go | ||
| installer.go | ||
| integrations.go | ||
| invites.go | ||
| jobs.go | ||
| labels.go | ||
| labels_test.go | ||
| linux_mdm.go | ||
| live_query_store.go | ||
| logging.go | ||
| maintained_apps.go | ||
| mdm.go | ||
| mdm_test.go | ||
| meta.go | ||
| microsoft_mdm.go | ||
| microsoft_mdm_test.go | ||
| network_interfaces.go | ||
| nudge.go | ||
| operating_systems.go | ||
| operating_systems_test.go | ||
| orbit.go | ||
| orbit_test.go | ||
| osquery.go | ||
| packs.go | ||
| packs_test.go | ||
| policies.go | ||
| policies_test.go | ||
| queries.go | ||
| queries_test.go | ||
| query_results.go | ||
| redis_pool.go | ||
| request.go | ||
| scheduled_queries.go | ||
| scim.go | ||
| scripts.go | ||
| scripts_test.go | ||
| secret_variables.go | ||
| secret_variables_test.go | ||
| secrets.go | ||
| service.go | ||
| sessions.go | ||
| sessions_test.go | ||
| setup_experience.go | ||
| setup_experience_test.go | ||
| software.go | ||
| software_browser_test.go | ||
| software_installer.go | ||
| software_installer_test.go | ||
| software_test.go | ||
| software_title_icons.go | ||
| statistics.go | ||
| targets.go | ||
| targets_test.go | ||
| teams.go | ||
| teams_test.go | ||
| traits.go | ||
| translator.go | ||
| user_roles.go | ||
| users.go | ||
| users_test.go | ||
| utils.go | ||
| utils_test.go | ||
| vpp.go | ||
| vulnerabilities.go | ||
| windows_mdm.go | ||
| windows_mdm_test.go | ||
| windows_updates.go | ||
| windows_updates_tests.go | ||