Commit ba3f2bc
authored
AzLocal.UpdateManagement v0.8.79: Step.07 Force Immediate Update break-glass override (#85)
Adds an operator-only override that bypasses the per-cluster Step 3c
maintenance-window gate (UpdateStartWindow / UpdateExclusionsWindow) for
emergency / out-of-window patching. Defaults to OFF. Cannot be reached
from the scheduled apply-updates-schedule.yml configuration file.
Cmdlet surface:
- Start-AzLocalClusterUpdate -IgnoreScheduleTags (switch). When set, the
entire Step 3c block is skipped (tag lookup still runs so the values
can be logged, but Test-AzLocalUpdateScheduleAllowed is not called).
A Warning-level log entry per cluster records the bypassed tag values.
- Invoke-AzLocalReadinessGatedClusterUpdate -ForceImmediateUpdate
(switch). Forwards -IgnoreScheduleTags to Start-AzLocalClusterUpdate
for every cluster in the readiness CSV and emits a host-aware
high-visibility WARNING banner at the top of the apply run.
Pipeline surface (both apply-updates.yml templates):
- GitHub Actions: new force_immediate_update workflow_dispatch choice
input (default 'false'), with a 'WARNING:'-prefixed description that
also calls out 'MANUAL RUNS ONLY'.
- Azure DevOps: new forceImmediateUpdate boolean parameters: entry
(default false), with a 'WARNING:'-prefixed displayName that calls
out 'MANUAL QUEUE ONLY'.
Anti-injection design (two layers of defence to prevent a scheduled
cron firing from honouring the flag):
1. GitHub Actions YAML expression collapses to 'false' for any
non-workflow_dispatch event:
${{ github.event_name == 'workflow_dispatch' &&
github.event.inputs.force_immediate_update || 'false' }}
2. Azure DevOps runtime guard requires $(Build.Reason) -eq 'Manual'
before forwarding the flag; scheduled / CI / PR runs log a
##vso[task.logissue type=warning] explaining the override was
ignored.
The override is deliberately unreachable from
apply-updates-schedule.yml: no forceImmediateUpdate field exists on
New-AzLocalApplyUpdatesScheduleConfig, Resolve-AzLocalPipelineUpdateRing,
or Get-AzLocalApplyUpdatesScheduleAudit. A Pester anti-leak sweep
asserts this.
The UpdateExcluded operator hard-override
(AzureLocalManagement.UpdateExcluded=true) is INTENTIONALLY still
respected - the break-glass override is about time-window gates, not
per-cluster opt-outs. Other readiness gates (connectivity, health,
sideload status) also continue to apply.
Tests:
- Parameter-presence regressions for both new switches.
- New 'v0.8.79 Step.7 break-glass' Context with 8 It blocks covering:
GH input declaration + WARNING: GUI label + MANUAL RUNS ONLY text;
ADO parameter declaration + WARNING: displayName + MANUAL QUEUE ONLY
text; GHA workflow_dispatch anti-injection collapse pattern; ADO
Build.Reason -eq 'Manual' runtime guard; pwsh forwarding of
-ForceImmediateUpdate on both hosts; anti-leak sweep across the
three schedule-config code paths.
- Version assertion bumped 0.8.78 -> 0.8.79.
Bundled pipeline templates: all 22 bump GENERATED_AGAINST_MODULE_VERSION
from '0.8.78' to '0.8.79'. Bodies for the two apply-updates.yml files
(GH + ADO) carry the new feature.
Docs: README, CHANGELOG, docs/release-history.md,
Automation-Pipeline-Examples/README.md, and
Automation-Pipeline-Examples/docs/appendix-pipelines.md all bumped.
Prior v0.8.78 What's New demoted from README main body to Release
History per the long-standing 'exactly one ## What's New' README
convention.
No new exports (still 60). No API breaking changes. PSGallery
ReleaseNotes char count: 7511 / 10000.
Pester: 1161 passed, 0 failed, 1 skipped (Live-Integration, expected).1 parent a2b5e2f commit ba3f2bc
33 files changed
Lines changed: 279 additions & 53 deletions
File tree
- AzLocal.UpdateManagement
- Automation-Pipeline-Examples
- azure-devops
- docs
- github-actions
- Public
- Tests
- docs
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| |||
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
123 | | - | |
| 132 | + | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
| |||
366 | 375 | | |
367 | 376 | | |
368 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
369 | 383 | | |
370 | 384 | | |
371 | 385 | | |
| |||
380 | 394 | | |
381 | 395 | | |
382 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
383 | 405 | | |
384 | 406 | | |
385 | 407 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments