fleet/server/worker
Victor Lyuboslavsky 41c2e78691
Handle certificate race condition at Android enrollment. (#36602)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #36600

Handling race condition where an Android device may be enrolling at the
same time as certs are being processed. We don't want the enrollment to
overwrite the certs.

Additionally, trying to improve our handling of the scenario where
either the AMAPI or the DB call may fail. Switching to doing the DB call
first. If the AMAPI call fails, then apply a compensating deleting
transaction.

# Checklist for submitter

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

## Testing

- [x] Added/updated automated tests
- [ ] 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.
2025-12-03 09:54:53 -06:00
..
apple_mdm.go Install setup-experience VPP apps on manually-enrolled iOS/iPadOS devices (#35906) 2025-11-19 13:34:10 -06:00
apple_mdm_test.go Use lighter Team call when it's obviously safe to do so, comment potential areas for further improvement (#35587) 2025-11-17 17:25:45 -06:00
automation_failer.go Support failing policies integrations (#5973) 2022-06-06 10:41:51 -04:00
automation_failer_test.go 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
batch_activities.go Batch script cron schedule (#31808) 2025-08-14 14:44:47 -04:00
batch_activities_test.go Batch script cron schedule (#31808) 2025-08-14 14:44:47 -04:00
db_migrations.go MABM bugfix: fix the expected format of the migrated VPP token (#21761) 2024-09-03 13:23:44 -04:00
db_migrations_test.go MABM bugfix: fix the expected format of the migrated VPP token (#21761) 2024-09-03 13:23:44 -04:00
jira.go Rename team DB methods to encourage lighter-weight usage (#35572) 2025-11-12 08:09:49 -06:00
jira_test.go Use lighter Team call when it's obviously safe to do so, comment potential areas for further improvement (#35587) 2025-11-17 17:25:45 -06:00
macos_setup_assistant.go Use lighter Team call when it's obviously safe to do so, comment potential areas for further improvement (#35587) 2025-11-17 17:25:45 -06:00
macos_setup_assistant_test.go Skip setup experience during AxM based migrations (#32822) 2025-09-11 09:40:40 -04:00
software_worker.go Handle certificate race condition at Android enrollment. (#36602) 2025-12-03 09:54:53 -06:00
software_worker_test.go Android app self service: backend support (#34711) 2025-11-13 18:10:24 -05:00
vpp_verification.go Initial support for in-house apps on iOS/iPadOS (#34802) 2025-10-28 08:33:58 -04:00
worker.go Added OTEL span for worker jobs. (#36057) 2025-11-21 11:28:47 -06:00
worker_test.go Allow worker to filter queue by job type (#31556) 2025-08-06 17:22:48 -05:00
zendesk.go Rename team DB methods to encourage lighter-weight usage (#35572) 2025-11-12 08:09:49 -06:00
zendesk_test.go Use lighter Team call when it's obviously safe to do so, comment potential areas for further improvement (#35587) 2025-11-17 17:25:45 -06:00