Skip to content

fix: unmask pillar values for check_pillar type checks - #70372

Open
cyphercodes wants to merge 1 commit into
saltstack:3008.xfrom
cyphercodes:fix/70364-masked-pillar-type-check
Open

cyphercodes wants to merge 1 commit into
saltstack:3008.xfrom
cyphercodes:fix/70364-masked-pillar-type-check

Conversation

@cyphercodes

Copy link
Copy Markdown

What does this PR do?

Makes test.check_pillar request 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_type received the redaction placeholder from pillar.get. Valid values such as integers therefore failed their requested type check.

New Behavior

test.check_pillar checks the actual pillar value type while preserving the existing secret-safe return data.

Merge requirements satisfied?

  • Docs — not required; this restores documented behavior
  • Changelog — changelog/70364.fixed.md
  • Tests written/updated — tests/pytests/unit/states/test_test.py

Commits signed with GPG?

No

@cyphercodes
cyphercodes requested a review from a team as a code owner October 8, 2026 05:27
@twangboy twangboy added the test:full Run the full test suite label Oct 8, 2026
@twangboy twangboy added this to the Argon v3008.5 milestone Oct 8, 2026
@twangboy twangboy linked an issue Oct 30, 2026 that may be closed by this pull request
@twangboy twangboy modified the milestones: Argon v3008.5, Argon v3008.7 Oct 30, 2026

This branch was previously deployed

1 inactive deployment
ci — 09eddc64 Deployed Oct 8, 2026 by twangboy via Build Onedir Packages / RPM (arm64) #27385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: test.check_pillar state broken due to pillar masking

3 participants