Add IMDS certificate-chain validation RunCommand scripts (Windows + Linux)#132
Open
ScottAzure wants to merge 1 commit into
Open
Add IMDS certificate-chain validation RunCommand scripts (Windows + Linux)#132ScottAzure wants to merge 1 commit into
ScottAzure wants to merge 1 commit into
Conversation
…inux) Adds a Linux IMDS cert-chain validator and enhances the Windows validator with per-element chain walking, dynamic store inventory, OCSP-rotation detection, P0-P2 diagnostic phases, and an -AutoFix/--autofix switch that installs the missing intermediate and re-walks the chain. Validated end-to-end on Ubuntu 22.04, RHEL 9.7, SUSE 15 SP6, and Windows Server 2022. Linux: net-new script. Windows: enhances the existing validator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds IMDS certificate-chain validation RunCommand scripts for both Windows and Linux. When a VM's IMDS attestation certificate chain breaks, the VM can fail Windows activation, lose managed-identity access, and block ESU — usually with cryptic errors and no self-serve fix. These scripts diagnose the exact broken link and can repair it.
What's included
RunCommand/Linux/Linux_IMDSValidation/) — net-new validator. Walks the IMDS cert chain element by element, inventories the trust store, detects OCSP rotation mismatches, and offers--autofixto download and install the missing intermediate, then re-walk the chain.RunCommand/Windows/Windows_IMDSValidation/) — enhances the existing validator with per-element chain walking, dynamic store inventory, OCSP-rotation detection, P0-P2 diagnostic phases, and an-AutoFixswitch.Validation
End-to-end validated on real VMs:
Scope
Purely additive — Linux folder is new, Windows folder enhances the existing script. No other scripts are touched.