fix: Require exact ADCS trust paths in creation and composition BED-9336 - #3196
Open
JonasBK wants to merge 2 commits into
Open
fix: Require exact ADCS trust paths in creation and composition BED-9336#3196JonasBK wants to merge 2 commits into
JonasBK wants to merge 2 commits into
Conversation
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
JonasBK
force-pushed
the
BED-9336-adcs-trust-paths
branch
2 times, most recently
from
August 25, 2026 12:01
7cb51b1 to
0d1e889
Compare
JonasBK
force-pushed
the
BED-9336-adcs-trust-paths
branch
from
August 31, 2026 09:54
0d1e889 to
ef27582
Compare
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.
Description
This PR makes ADCS edge creation and composition use the same exact certificate-chain and NTAuth trust patterns for the target domain.
Where a rooted certificate chain is required, the selected Enterprise CA must follow:
The repeated portion may pass through
EnterpriseCAandAIACAnodes before reaching theRootCA.Where NTAuth trust is required, the selected Enterprise CA must follow:
This change:
RootCAconnected to the exact target domain.EnterpriseCAandAIACAnodes.EnterpriseCA-[:RootCAFor]->Domainshortcuts and unsupported intermediate node kinds.NTAuthStore.Stack
BED-9336-adcs-managed-account-dnsBED-9336-adcs-trust-pathsmain.BED-9336-adcs-host-validationtomain.Commit review order
fix: require rooted ADCS certificate chains BED-9336fix: require exact ADCS NTAuth paths BED-9336Motivation and Context
Resolves BED-9336
The previous traversals primarily checked whether a domain was reachable through a set of relationship kinds. They did not consistently enforce node kinds, relationship order, path length, or the exact target domain.
Malformed or shortcut paths could therefore qualify during creation or appear in composition. The shared patterns make the documented PKI and NTAuth topology explicit and keep edge creation and composition equivalent.
How Has This Been Tested?
Validated with:
go test ./packages/go/analysis/ad -count=1just prepare-for-codereviewCoverage includes:
AIACAand intermediateEnterpriseCAnodes.RootCAForshortcuts.TrustedForNTAuth -> NTAuthStoreForpath.Screenshots (optional):
N/A — backend graph analysis only.
Types of changes
Checklist: