Commit 7364bf4
feat(hybridagent): add TargetOUs to static config + deploy script
AdScannerService reads RuntimeConfig.TargetOUs (multi-OU surface) but the field was missing from ScanConfiguration, so SeedFromStatic never projected it. In static-only mode (HybridAgent) the producer could only scan the single LdapSearchBase, losing parity with the on-prem Worker's portal-edited TargetOUs list.
- ScanConfiguration.TargetOUs added (mirrors RuntimeConfig.TargetOUs)
- SeedFromStatic projects it through
- Divergence-warning helper compares it (no-op in static mode but useful when same Core lib is hosted with a DB)
- HybridAgent appsettings.json placeholder + doc comment
- Deploy-HybridAgent.ps1 -TargetOUs param + import-list entry
Tests: 86 Core + 15 Functions + 8 HybridAgent pass; 86 on-prem Core unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a26439d commit 7364bf4
4 files changed
Lines changed: 19 additions & 1 deletion
File tree
- src
- BitLockerKeyMonitor.Core
- Models
- Services
- BitLockerKeyMonitor.HybridAgent
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
345 | | - | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| 388 | + | |
385 | 389 | | |
386 | 390 | | |
387 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| 331 | + | |
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments