Repository navigation
Skip test temporarily - #1
Merged
Merged
Conversation
Akm0d
pushed a commit
that referenced
this pull request
Sep 30, 2019
Akm0d
pushed a commit
that referenced
this pull request
Jan 4, 2020
Akm0d
pushed a commit
that referenced
this pull request
Mar 21, 2024
Akm0d
pushed a commit
that referenced
this pull request
Apr 7, 2026
Prevent exceptions with "fileserver.update" when called via state
Akm0d
added a commit
that referenced
this pull request
Aug 3, 2026
Real CI on PR saltstack#69812 surfaced that redact_state_ret_secrets()'s _collect_secret_literals() has no cycle-detection guard, unlike its siblings serial()/mask_output()/expose() in the same file. In the state.orchestrate/runner path, self.opts.get("pillar") is an OptsDict/ListProxy with a self-referential __iter__, so the recursive walker crashes with RecursionError - state.orchestrate fails outright in ~15 tests, not just degraded output. Separately, and even setting the crash aside, the literal-substring scan has no way to distinguish an actual secret from an ordinary pillar value used as a template parameter. Confirmed at real scale: the words "branch" and "master" - core Salt/git vocabulary - are present somewhere in the CI harness's minion pillar and got redacted out of unrelated assertions, breaking tests/integration/states/test_git.py (6 tests, every OS in the matrix) plus several salt-ssh suites. ~30 distinct upstream tests failed across ~9 platforms. Removes redact_state_ret_secrets()/redact_known_secrets()/ _collect_secret_literals() and the call site in salt/state.py. Reverts the three test files that were patched only to accommodate this mechanism's fallout (test_state_test.py, test_salt_call.py's test_42116_cli_pillar_override, test_file.py's test_state_skip_req) back to their original assertions. Keeps the unrelated unmask=True fixes (a real, independent pre-existing bug) and gap #2 (name masking under no_log), neither of which caused any CI failures.
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.
No description provided.