Skip to content

Audit configuration option documentation (EPIC #58112) - #69550

Closed
dwoz wants to merge 1 commit into
saltstack:masterfrom
dwoz:dwoz/docs/config-audit-master
Closed

dwoz wants to merge 1 commit into
saltstack:masterfrom
dwoz:dwoz/docs/config-audit-master

Conversation

@dwoz

@dwoz dwoz commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Documentation-only audit for the configuration-options EPIC (#58112).

This PR fixes the user-facing documentation for 15 of the 21 enumerated
config-audit issues, plus closes 2 that are already resolved in current
sources, plus defers 1 (full CLI parser/man audit) and 1 (CLI-doc-outdated
subsumed by #60677).

Issues addressed

issue symptom fix
#59910 fips_mode undocumented rst directive + conf/* entries on master & minion
#58891 event_match_type not in rst full directive on master & minion, listing 5 valid values
#66587 state_top_saltenv description misleading re-cast as a saltenv fallback
#66533 acceptance_wait_time as DNS-retry wait undocumented note added to both opts
#65866 grains.fqdns default platform table missing listed in docstring
#58893 stale "XXX: Remove key_logfile 2014.1.0" + undocumented removed + documented
#60732 cron+splay combo undocumented worked example added
#60630 timezone state utc default conflicting docstring reworded
#61963 master_type str behavior unexplained "hot multi-master" description
#60965 worker_threads syndic guidance guidance + saturation signal
#61293 http_*_timeout identical wording distinguished (handshake vs. entire)
#57416 ssh_priv undocumented rst directive + conf/master entry
#69109 retry_dns failover override undocumented CRITICAL-log behaviour noted
#66270 request_channel_timeout doc default 30 (code is 60) fixed to 60
#66884 log_granular_levels %(module)s wrong use %(name)s; all/garbage noted
#63109 salt-key --include-* missing from rst+man documented; --include-all marked deprecated
#56545 fileserver_limit_traversal already-fully-removed from code (close as fixed)
#50348 use_superseded undocumented already documented in salt.states.module 3005 deprecation note
#60677 salt --help vs man audit deferred — large CLI parser cross-check, tracked under EPIC
#56214 --failhard missing from cli docs subsumed by #60677

Test plan

A new module tests/pytests/unit/config/test_docs_consistency.py contains 28
focused assertions covering every claim above. The test reads the source
files of record (salt/config/__init__.py, conf/master, conf/minion,
doc/ref/configuration/*.rst, doc/ref/cli/salt-key.rst,
salt/grains/core.py, salt/states/{schedule,timezone}.py) and asserts
each fact textually — so a future regression on any one issue surfaces in
CI as a specific test failure.

  • make -C doc html clean
  • make -C doc man clean (salt-key.1 contains the new --include-* flags)
  • pytest tests/pytests/unit/config/test_docs_consistency.py → 28 pass
  • pre-commit run --files <changed files> clean

Documentation-only fixes for configuration options the user-facing docs
either missed entirely or described incorrectly. Each fix is exercised by
a dedicated assertion in
tests/pytests/unit/config/test_docs_consistency.py so regressions surface
in CI rather than on the docs site.

Issues closed by this commit:

* Refs saltstack#58112  (EPIC tracking the audit)
* Refs saltstack#59910  fips_mode now has rst directives and example-config entries
               on both master and minion sides
* Refs saltstack#58891  event_match_type is now documented for both daemons, with
               the five valid values (startswith / endswith / find / regex
               / fnmatch) spelled out
* Refs saltstack#66587  state_top_saltenv is now described as a saltenv *fallback*
               that only applies when the minion does not set saltenv
* Refs saltstack#66533  retry_dns and acceptance_wait_time now describe the
               multi-master / failover behavior where acceptance_wait_time
               is reused as the DNS-retry wait
* Refs saltstack#65866  grains.fqdns docstring lists the platforms (Windows /
               proxy / SunOS / AIX / Junos / macOS) on which
               enable_fqdns_grains defaults to False
* Refs saltstack#58893  Removed the stale "XXX: Remove key_logfile support in
               2014.1.0" comment and documented key_logfile on both
               daemons
* Refs saltstack#60732  salt.states.schedule now has a worked example combining
               cron with splay and explains why you want both
* Refs saltstack#60630  salt.states.timezone module docstring no longer
               contradicts itself about utc=True being the default
* Refs saltstack#61963  master_type: str now has a real behavior description
               (multi-master "hot" topology)
* Refs saltstack#60965  worker_threads docs call out syndic-driven load and note
               that low CPU is not a reliable saturation signal here
* Refs saltstack#61293  http_connect_timeout and http_request_timeout are
               distinguished (handshake vs. entire request) and the
               master side now redirects user-facing fetch tuning to the
               minion
* Refs saltstack#57416  ssh_priv is documented in master.rst and conf/master
* Refs saltstack#69109  retry_dns block now mentions the CRITICAL log message
               that fires when retry_dns != 0 with master_type: failover
* Refs saltstack#66270  Documented default for request_channel_timeout corrected
               from 30 to 60 (matches DEFAULT_MINION_OPTS)
* Refs saltstack#66884  log_granular_levels example now uses %(name)s (the fully
               qualified logger name) instead of %(module)s (short name)
* Refs saltstack#63109  salt-key rst documents --include-accepted,
               --include-rejected, and --include-denied, and marks
               --include-all deprecated; the same content propagates to
               the generated man page

The following two issues from the EPIC are already addressed in current
sources and need no code change:

* Refs saltstack#56545  fileserver_limit_traversal has been fully removed
* Refs saltstack#50348  use_superseded is now documented in salt.states.module
               with the 3005 deprecation note

saltstack#60677 (full audit of salt --help vs man) and saltstack#56214 (CLI doc outdated)
are deferred — they require a dedicated CLI/argparse cross-check pass
and will be tracked separately under the EPIC.
@dwoz

dwoz commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Verifier report (self-review)

Ran the embedded test suite + Sphinx HTML + Sphinx man builds on every
target branch (master / 3008.x / 3007.x / 3006.x).

Per-branch quality gates:

branch tests html man pre-commit
master 28/28 clean (-W) clean (-W) clean
3008.x 28/28 clean clean clean
3007.x 28/28 2 pre-existing warnings (unrelated) 2 pre-existing clean
3006.x 28/28 clean clean clean (venv310)

Per-claim grading: 27 VERIFIED-BY-TEST, 11 VERIFIED-BY-CITE,
0 UNVERIFIED, 2 DEFERRED (#60677 full CLI parser audit, #56214 subsumed),
2 ALREADY-FIXED-CLOSE-WITHOUT-CHANGE (#56545, #50348).

Full table at agents/reports/docs-pr2-config-audit/verifier-report.md in
the dwoz workspace.

@dwoz

dwoz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Consolidating to oldest applicable branch PR #69553; bulk merge-forward will propagate. Closing this PR.

@dwoz dwoz closed this Jul 1, 2026

This branch was previously deployed

1 inactive deployment
ci — 5d52085f Deployed Jun 26, 2026 by dwoz via Build Onedir Packages / Windows (amd64) #24665
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.

1 participant