Repository navigation
fix: unmask pillar values for check_pillar type checks - #70372
Open
cyphercodes wants to merge 1 commit into
Open
cyphercodes wants to merge 1 commit into
cyphercodes wants to merge 1 commit into
Conversation
twangboy
approved these changes
Oct 8, 2026
1 of 3 tasks
charzl
approved these changes
Oct 14, 2026
This branch was previously deployed
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.
What does this PR do?
Makes
test.check_pillarrequest the unmasked pillar value when performing its internal type check. The value remains local to_check_key_type; state output continues to report only whether the named key passed and never includes the pillar value.Adds focused regression coverage that reproduces masked integer pillar behavior and verifies the state return does not expose the unmasked value.
What issues does this PR fix or reference?
Fixes #70364
Previous Behavior
With pillar masking enabled,
_check_key_typereceived the redaction placeholder frompillar.get. Valid values such as integers therefore failed their requested type check.New Behavior
test.check_pillarchecks the actual pillar value type while preserving the existing secret-safe return data.Merge requirements satisfied?
changelog/70364.fixed.mdtests/pytests/unit/states/test_test.pyCommits signed with GPG?
No