fleet/server/worker
Magnus Jensen 16d62da6a4
use redis to block double profile work for apple devices setting up (#42421)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #34433 Part 2

# 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. Added by first PR

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes

## Testing

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


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
  * Profiles now install during device enrollment setup

* **Bug Fixes**
* Enhanced Apple MDM profile synchronization to handle concurrent
processing scenarios
* Improved profile reconciliation to prevent conflicts when multiple
workers process the same device simultaneously

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
2026-03-30 16:37:18 -05:00
..
apple_mdm.go use redis to block double profile work for apple devices setting up (#42421) 2026-03-30 16:37:18 -05:00
apple_mdm_test.go speed up macOS profile delivery for initial enrollments (#41960) 2026-03-19 14:58:10 -05:00
automation_failer.go Support failing policies integrations (#5973) 2022-06-06 10:41:51 -04:00
automation_failer_test.go Dismiss gosec G602 and G115 in test code (#40960) 2026-03-04 13:34:35 -05:00
batch_activities.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
batch_activities_test.go Batch script cron schedule (#31808) 2025-08-14 14:44:47 -04:00
db_migrations.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
db_migrations_test.go Final slog migration PR: test infrastructure + tools + remaining standalone files (#40727) 2026-02-28 05:52:21 -06:00
jira.go Update fleetctl client urls and params (#41463) 2026-03-13 08:38:55 -05:00
jira_test.go Update fleetctl client urls and params (#41463) 2026-03-13 08:38:55 -05:00
macos_setup_assistant.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
macos_setup_assistant_test.go Final slog migration PR: test infrastructure + tools + remaining standalone files (#40727) 2026-02-28 05:52:21 -06:00
software_worker.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
software_worker_test.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
vpp_verification.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
worker.go Migrating server/worker and related code to slog (#40205) 2026-02-23 13:18:07 -06:00
worker_test.go Final slog migration PR: test infrastructure + tools + remaining standalone files (#40727) 2026-02-28 05:52:21 -06:00
zendesk.go Update fleetctl client urls and params (#41463) 2026-03-13 08:38:55 -05:00
zendesk_test.go Update fleetctl client urls and params (#41463) 2026-03-13 08:38:55 -05:00