fleet/server/fleet
Magnus Jensen d6a23a79ee
Modify Windows replacement code to allow Custom SCEP variables (#34633)
and refactor to share with apple mdm

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #34246 

# 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.

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

## Database migrations

- [x] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [x] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [x] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
2025-10-22 15:46:48 -03:00
..
policytest Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
activities.go Feature: Script only package e2e followup (#34271) 2025-10-17 10:54:00 -04:00
agent_options.go Generate new osquery 5.18.1 flags, catch up VEX report (#31648) 2025-08-08 10:49:23 -03:00
agent_options_generated.go Update osquery schema and flags to 5.19.0 (#32702) 2025-09-08 18:00:46 -03:00
agent_options_test.go Update to Go 1.24.1 (#27506) 2025-03-31 11:14:09 -05:00
aggregated_stats.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
android.go AP: Validate top-level keys in android profile upload (#34360) 2025-10-16 14:06:05 -03:00
android_test.go AP: Validate top-level keys in android profile upload (#34360) 2025-10-16 14:06:05 -03:00
app.go Stop setup experience on software install fail: admin (#33968) 2025-10-08 17:51:52 +01:00
app_test.go Feature branch for Android config profiles (#32976) 2025-09-22 11:29:57 -04:00
apple_mdm.go Experimental fleet server config for custom updates & disk encryption settings (#34598) 2025-10-22 13:51:10 -04:00
apple_mdm_test.go Experimental fleet server config for custom updates & disk encryption settings (#34598) 2025-10-22 13:51:10 -04:00
authz.go Cancel upcoming activities: DB schema and backend (#27710) 2025-04-01 14:08:56 -04:00
calendar.go Update calendar event text to match recent changes to "My device" page (#32334) 2025-08-29 14:52:44 -05:00
calendar_events.go Handle null HostID on calendar webhook endpoint (#30130) 2025-06-23 13:10:10 -04:00
calendar_events_test.go Fixed issue where callback was clearing event body tag. (#20997) 2024-08-05 13:44:30 -03:00
campaigns.go Added a new synchronous live query endpoint: POST /api/v1/fleet/queries/:id/run (#15860) 2024-01-03 09:39:16 -06:00
capabilities.go Add macos web setup experience capability check (#34582) 2025-10-21 12:32:16 -05:00
capabilities_test.go fix panic if concurrent requests write capabilities (#13278) 2023-08-10 19:49:07 -03:00
carves.go report errors that can occur during file carving (#8972) 2022-12-09 13:21:30 -03:00
certificate_authorities.go Support $FLEET_VAR_SCEP_RENEWAL_ID in OU field (#34403) 2025-10-17 12:47:04 -05:00
certificate_authorities_test.go Add backend support for Smallstep CA (#32872) 2025-09-25 10:03:36 -05:00
conditional_access_microsoft.go Microsoft Compliance Partner backend changes (#29540) 2025-06-11 14:22:46 -03:00
cron_schedules.go Unenroll Android BYOD hosts (#33546) 2025-09-29 08:15:30 -04:00
datastore.go Modify Windows replacement code to allow Custom SCEP variables (#34633) 2025-10-22 15:46:48 -03:00
db.go Add Read-only Transaction to fetch profiles to install and remove all at once (#32737) 2025-09-10 09:29:04 -04:00
device.go Hide "Self-service" in Fleet Desktop and My device page (#20047) 2024-07-02 11:32:49 -05:00
digicert.go Hydrant CA Feature Branch (#31807) 2025-09-04 12:39:41 -04:00
emails.go Migrate from aws-sdk-go v1 to v2 (#30308) 2025-06-30 17:45:39 -03:00
emails_test.go Custom email device-mapping: implement the CLI (fleetd + fleetctl) changes (#15763) 2023-12-21 11:22:59 -06:00
errors.go LM: fix missing error for manually enrolled ios and ipados when locking (#34216) 2025-10-15 17:24:49 -03:00
errors_test.go Adding telemetry for specific Fleet Desktop errors (#23349) 2024-10-31 14:24:42 -05:00
fleet_vars.go Prevent IT admins from deleting a secret variable in use (#32161) 2025-08-22 11:22:37 -03:00
fleet_vars_test.go Prevent IT admins from deleting a secret variable in use (#32161) 2025-08-22 11:22:37 -03:00
fleetctl.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
gen_activity_doc.go Update docs: Webhooks for global activity (#19863) 2024-06-26 16:48:58 -04:00
geoip.go 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
global_schedule.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
host_certificates.go Support $FLEET_VAR_SCEP_RENEWAL_ID in OU field (#34403) 2025-10-17 12:47:04 -05:00
host_certificates_test.go Support $FLEET_VAR_SCEP_RENEWAL_ID in OU field (#34403) 2025-10-17 12:47:04 -05:00
hostresponse.go Add options to populate users and labels on list hosts endpoint (#25621) 2025-01-22 11:17:26 -05:00
hosts.go IDP user update API (#34332) 2025-10-21 12:02:25 -06:00
hosts_test.go BMAA: Add personal enrollment type including aggregate counts (#31091) 2025-07-22 17:24:19 -04:00
hydrant.go Hydrant CA Feature Branch (#31807) 2025-09-04 12:39:41 -04:00
installer.go add a new tool to upload installers to blob storage (#6661) 2022-07-14 16:11:52 -03:00
integrations.go Hydrant CA Feature Branch (#31807) 2025-09-04 12:39:41 -04:00
invites.go Allow opting in users to email verification on login (#24273) 2024-12-05 08:37:10 -06:00
jobs.go Allow "not_before" timestamp for worker jobs, schedule more quickly (#11512) 2023-05-03 16:25:36 -04:00
labels.go Use host IDs instead of host names when doing generate-gitops for manual labels (#34254) 2025-10-15 13:31:40 -05:00
labels_test.go Improved label(s) validation when running queries (#23834) 2024-11-21 16:13:30 -06:00
linux_mdm.go Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
live_query_store.go Address multiple redis-related issues observed with live queries (#16855) 2024-02-27 19:35:27 -06:00
logging.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
maintained_apps.go software categories: backend (#28479) 2025-05-02 11:41:26 -04:00
mdm.go Modify Windows replacement code to allow Custom SCEP variables (#34633) 2025-10-22 15:46:48 -03:00
mdm_test.go Wait for expected profiles to be sent before releasing device (#31381) 2025-07-31 17:50:57 +02:00
meta.go Add count to host upcoming activities API response (#16511) 2024-02-06 10:02:38 -06:00
microsoft_mdm.go Added additional logging information for Windows MDM discovery endpoint. (#31691) 2025-08-07 17:05:15 +02:00
microsoft_mdm_test.go fix: process Add commands in Windows MDM profiles (#17570) 2024-03-12 15:21:17 -04:00
network_interfaces.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
nudge.go Retime Nudge to 20:00 UTC (#23373) 2024-10-30 09:08:43 -05:00
operating_systems.go Added util func around semver to allow for custom preprocessing. Upgraded semver lib (#25437) 2025-01-23 10:21:15 -06:00
operating_systems_test.go Strip RSR suffixes prior to handing off OS version from Nudge check to Semver comparison (#22830) 2024-10-10 12:15:53 -05:00
orbit.go Add sticky MDM enrollment Redis key (#33935) 2025-10-09 11:22:44 -03:00
orbit_test.go Add arm64 support for fleetd extensions and fixes on test scripts (#31084) 2025-07-21 15:47:59 -03:00
osquery.go Add sticky MDM enrollment Redis key (#33935) 2025-10-09 11:22:44 -03:00
packs.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
packs_test.go Fix incorrect integer conversion (#10188) 2023-02-28 18:01:25 -08:00
policies.go Microsoft Compliance Partner backend changes (#29540) 2025-06-11 14:22:46 -03:00
policies_test.go Add validation for policy specs (#13294) 2023-08-21 10:22:07 -06:00
queries.go Add labels to queries using gitops (#27259) 2025-03-20 15:32:52 -05:00
queries_test.go 15381 host query report api (#15441) 2023-12-11 15:33:31 -07:00
query_results.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
redis_pool.go Use a redis cluster-friendly store for rate limit (#2577) 2021-10-19 16:24:13 -04:00
scheduled_queries.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
scim.go Add support for IdP department to SCIM and add FLEET_VAR_HOST_END_USER_IDP_DEPARTMENT fleet variable (#30375) 2025-06-29 15:23:03 -03:00
scripts.go Add lost mode behaviour for iOS/iPadOS (#33805) 2025-10-14 11:30:05 -03:00
scripts_test.go Allow use of bash as a script interpreter (#25449) 2025-02-04 12:42:40 -05:00
secret_variables.go Add backend APIs for adding, deleting and listing secret variables (#31936) 2025-08-14 19:33:47 -03:00
secret_variables_test.go Add backend APIs for adding, deleting and listing secret variables (#31936) 2025-08-14 19:33:47 -03:00
secrets.go Add secrets software script support (#24912) 2024-12-20 17:17:18 -05:00
service.go IDP user update API (#34332) 2025-10-21 12:02:25 -06:00
sessions.go Replace home-made SAML implementation with https://github.com/crewjam/saml (#28486) 2025-07-07 15:13:46 -03:00
sessions_test.go Change role of existing users only if SSO attributes are present in the SAMLResponse (#11966) 2023-05-30 17:49:59 -03:00
setup_experience.go Stop setup experience on software install failure (#34173) 2025-10-17 08:38:53 -05:00
setup_experience_test.go Setup experience state machine (#22845) 2024-10-18 12:01:53 -04:00
software.go Adding name to software checksum for mac software (#34097) 2025-10-14 17:36:34 -05:00
software_browser_test.go Add support for VSCode fork extensions in software inventory (#33595) 2025-10-07 14:05:22 -07:00
software_installer.go Feature: Script only package e2e followup (#34271) 2025-10-17 10:54:00 -04:00
software_installer_test.go Feature: Script only package e2e followup (#34271) 2025-10-17 10:54:00 -04:00
software_test.go Updated host_software_installs table. 2024-09-06 09:49:27 -05:00
software_title_icons.go Add custom software icons (#32652) 2025-09-05 17:31:03 -05:00
statistics.go Add statistic to measure ABM pending hosts (#28226) 2025-04-15 11:30:07 -04:00
targets.go Update live query selector logic (OR -> AND) (#9559) 2023-01-30 18:35:56 -03:00
targets_test.go Optimize requests on packs page (#3327) 2021-12-13 21:50:24 -08:00
teams.go Allow setting software icons via GitOps (#32886) 2025-09-26 15:59:48 -05:00
teams_test.go Add "No Team" integration configurations for Jira and Zendesk (#32387) 2025-09-02 18:02:34 -05:00
traits.go Add support for downloading a list of hosts in CSV format (#4596) 2022-03-15 15:14:42 -04:00
translator.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
user_roles.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
users.go Prevent user invite race condition (#29559) 2025-05-29 15:26:02 -04:00
users_test.go Cap salt length before concatenating with plaintext for password updates (#17068) 2024-02-28 11:16:02 -08:00
utils.go Hydrant CA Feature Branch (#31807) 2025-09-04 12:39:41 -04:00
utils_test.go Added util func around semver to allow for custom preprocessing. Upgraded semver lib (#25437) 2025-01-23 10:21:15 -06:00
vpp.go Add custom software icons (#32652) 2025-09-05 17:31:03 -05:00
vulnerabilities.go Pull xz'd goval-dictionary sqlite files to evaluate vulnerabilities on Amazon Linux hosts (#21506) 2024-08-26 14:07:42 -05:00
windows_mdm.go Experimental fleet server config for custom updates & disk encryption settings (#34598) 2025-10-22 13:51:10 -04:00
windows_mdm_test.go Experimental fleet server config for custom updates & disk encryption settings (#34598) 2025-10-22 13:51:10 -04:00
windows_updates.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00
windows_updates_tests.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00