Repository navigation
Build the GitHub SAML facts with openhound-saml-producer (Refs SpecterOps/saml-og-research#79) - #117
Merged
JimSycurity merged 7 commits intoDec 2, 2026
Conversation
|
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
|
JimSycurity
force-pushed
the
feature/79-github-saml-producer-port
branch
from
December 2, 2026 21:15
8414e15 to
4b8298e
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.
Summary
Builds every
SAML_*node and edge of the GitHub collector throughopenhound-saml-producer0.4.6rc5 (PyPI), in the expanded v0.3 form. The hand-built SAML identifiers, kind constants, edge property classes, and builders are removed. No nativeGH_*kind changes. The SCIM provisioning slice from #24 is not in this pull request: the owner dropped it becausemainalready resolves that edge by exact ID (df3f5d8).openhound-saml-producer==0.4.6rc5. Thedevandcontainergroups requireopenhound>=0.5.1, and the lock holdsopenhound0.5.1 (Refs SpecterOps/saml-og-research#178).openhound0.5.1 brings newer versions of some other packages and addsboto3.models/saml_producer.py(new): the producer and the service provider and issuer facts.saml_service_provider.py,saml_issuer.py,saml_assertion_consumer_service.py,external_identity.py: library builders.tests/test_saml_conformance.py(new):assert_conformanton the collector output.Before and after comparison
Input: the #29 fixture (bottom of this stack). Method: the #29 baseline test, run on the port before the baseline was regenerated, then a node-by-node and edge-by-edge comparison. Old service provider IDs are mapped to new IDs through
SAML_Implements.Sign-in paths do not change. The 5
SAML_HasAccountedges have the same account endpoints,match_values,scoped_exact_match_values,entra_object_id_match_values,direct_binding(true), andaccount_state(unknown). The 19 non-SAML nodes and 26 non-SAML edges are byte-identical. The node and edge counts per SAML kind do not change.SAML_*node ID is a library UUIDv5 (was `github:saml:spenvironmentid.SAML_TrustsIssuerpoints to that ID. ACS nodes use the same shared-node form.nameis the environment name;node_id,native_id,entity_id,environment_name,saml_provider_idremoved;native_object_id,native_object_name,native_kind,technology,rule_countadded; scope properties becomegithub_scope_typeandgithub_scope_slug.github_extras.route_sourcemoves toSAML_HasAssertionConsumerServicewith the same value.SAML_HasAccount,direct_binding_sourceandexternal_identity_idbecomegithub_direct_binding_sourceandgithub_external_identity_id(same values). Emptyemail_match_values,upn_match_values,external_id_match_values,incomplete_match_value_fieldsare added.match_valuesbut is not typed as an object ID.direct_bindingis true only when scoped exact values exist. An identity with only an Entra object ID getsdirect_bindingfalse (was true).SAML_TrustsIssueredge (a whitespace-only issuer wrote a node before). A whitespace-only issuer or a line break logs a warning. A null or empty issuer logs nothing.shared.issuer_node). The collector passes the value as GitHub returned it.SpecterOps/saml-og-research#143reviews the library rule. Not in the fixture.No difference changes a sign-in path in the fixture. No finding.
Correlator check for the identity with only an Entra object ID (not in the fixture). Method: the #29 input plus one org identity with a null username and NameID and one object ID attribute, collected at
e1121d4and at8414e15, then paired with the Entra fixture of SpecterOps/openhound-saml#105 and run through the current correlator. Result: theSAML_CanSignInAspath is present before and after, for the same principal, account, and object ID value. Before, the correlator makes it through its direct-binding mode. After, it makes it through its typed identity mode (match onentra_object_id_match_values). Limit: the typed identity mode runs only when the service provider declares no account-resolution rule. The GitHub service provider declares none (rule_count0). If it declares rules later, this identity shape must be checked again.assert_conformant: passes, no failure, no warnings.Known items not changed
uv.lockalso has small changes from the localuvversion: 5zensicalwheel entries for unsupported platforms are removed, and 2 resolution markers are reordered.uv lock --checkpasses.edge_defsalso registersSAML_HasAccountResolutionRuleandSAML_HasAccountResolutionValue, which GitHub never writes, andSAML_HasAccountis registered twice. Registry metadata only.GitHub Issue
Refs SpecterOps/saml-og-research#79
Validation
44ab331, after the rebase onmain): 1488 passed withopenhound0.5.1.ruff checkon the changed files: pass (2 F401 errors inresources/__init__.pywere already onmain).