Skip to content

Skip test temporarily - #1

Merged
Akm0d merged 1 commit into
Akm0d:warroom_skipsfrom
Ch3LL:skip_tests
Jul 10, 2019
Merged

Akm0d merged 1 commit into
Akm0d:warroom_skipsfrom
Ch3LL:skip_tests

Conversation

@Ch3LL

@Ch3LL Ch3LL commented Jul 10, 2019

Copy link
Copy Markdown

No description provided.

@Akm0d
Akm0d merged commit dd200ce into Akm0d:warroom_skips Jul 10, 2019
Akm0d pushed a commit that referenced this pull request Aug 2, 2019
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 Apr 17, 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants