Commit Graph
21 Commits
Author SHA1 Message Date
riccardom 0206e318d1 Prevents engine not stopping within 10 secs from being paired by another instance
We instead juts SKIP updating the policy, so
1. the MDM ticker will kick in 1 minute time,
2. find the policy misaligned,
3. enter the onMDMPolicyChange,
4. find the s.clientRunning == true
   (because it is set to false only in server cleanupConnection,
   and not by s.actCancel())
5. call s.actCancel() again if not nil
6. immediately return from <-s.clientGiveUpChan
7. finally call s.restartEngineForMDMLocked()
2026-06-11 12:50:58 +02:00
riccardom aac109f47f Addresses github comments 2026-06-10 16:00:23 +02:00
riccardom 98e304044c Moves test helper at te very bottom 2026-06-10 16:00:23 +02:00
riccardom a400186124 Renaming fix 2026-06-10 09:30:43 +02:00
riccardom 5b02246f4f Partial revert coderabbit added docstrings 2026-06-10 09:07:36 +02:00
riccardom 43ce85fbfe nil,nil is no policy and no error. Allow it 2026-06-09 19:45:47 +02:00
riccardom 1f3e5a2ace nil,nil is no policy and no error. Allow it 2026-06-09 19:45:47 +02:00
riccardom bd9fed41ad Add docstrings to mdm_integration 2026-06-09 19:45:47 +02:00
riccardom d7f00b3beb Linting 2026-06-09 12:45:50 +02:00
riccardom d806f25b33 CI fixes
- Add docstrings to `mdm_integration`
- refactor for cognitive complexity
- mod tidy
2026-06-09 12:15:49 +02:00
riccardom b09a07023a Tests MDM config reload via ticker 2026-06-08 18:06:02 +02:00
riccardom 61b5b6b1a1 Introduces support for darwing plist loading 2026-06-08 18:06:02 +02:00
riccardom 04998f6a1c Removes --disable-advanced-settings
It was a typo in our meetings. the actual thing is --disable-update-settings
2026-06-08 18:06:02 +02:00
riccardom 01a4c245a7 Enforces disable networks 2026-06-08 18:06:02 +02:00
riccardom c36bf3a171 Adds MDM 1m diff checker & reloader 2026-06-08 18:06:02 +02:00
riccardom 0db22debaf Prefix every log with MDM 2026-06-08 14:37:10 +02:00
riccardom 5271df5962 Align split tunnel code 2026-06-08 14:37:10 +02:00
riccardom 2d7949adfe Cleanup setupKey to align to linear 2026-06-08 14:37:10 +02:00
riccardom 451fa5e142 Adds missing WGPort config 2026-06-08 14:37:10 +02:00
riccardom 22edfdd52b Implements windows loading of MDM policy 2026-06-08 14:37:10 +02:00
riccardom ce0750b73a Initial scaffolding 2026-06-08 14:37:10 +02:00