Repository navigation
Add Security and Threat Model documentation - #70632
Merged
Merged
Conversation
Adds doc/security/threat-model.rst covering trust boundaries, the minion/master cryptographic channel, publisher ACL / eauth guarantees, pillar renderer secrets, external sources, filesystem trust, and the onedir dependency-patching boundary. Every claim is sourced from current 3008.x code; the audit record is in agents/reports/docs-62144-threat-model/ (not shipped). Refs saltstack#62144
Same technical content, same citations, same cross-refs. Rewrites section headings and prose so the page reads like one operator talking to another instead of a formal spec. No claims added, none dropped. Refs saltstack#62144
twangboy
approved these changes
Nov 5, 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 this PR is
Adds
doc/security/threat-model.rst— a Salt security and threatmodel page for site operators. Addresses #62144 (item on tracker
#70585).
Scope
Narrow: one new doc file + a one-line toctree in
doc/security/index.rst+ a changelog entry. No code changes.Verification against current 3008.x code
Every claim in the new page is sourced from current 3008.x code —
file+line citations recorded during the pre-write audit:
salt/config/__init__.py:1536,1547salt/config/__init__.py:1708minions_pre/minions/minions_rejected/minions_deniedsalt/key.py:318-321publisher_acl_blacklistchecked beforepublisher_aclsalt/master.py:3950-3967permissive_aclsemantics (default False; True =*applies to all)salt/utils/minions.py:1527-1538@runner/@wheelrequire@-prefixed ACL entriessalt/utils/minions.py:1575-1595sign_pub_messagesverifies signature only (not replay)salt/channel/client.py:639-655sslonly on TCP transportsalt/transport/zeromq.py:1777-1779+salt/transport/tcp.py:1071salt/transport/frame.py:27-41master.pem,minion.pem,minion_master.pubpathssalt/crypt.py:719,1112,1125<cachedir>/jobs/salt/returners/local_cache.py:47<cachedir>/extmods/salt/config/__init__.py:1198,4202gpgandnaclrenderers ship in-treesalt/renderers/{gpg,nacl}.pyWhat was explicitly dropped from the earlier draft
The predecessor draft (closed PR #69554) contained a few overclaims
that did not match 3008.x code. These were removed, not ported:
aws_kmsrenderer — not present on 3008.x.tests/pytests/unit/test_acl_examples.py— that file does notexist.
sign_pub_messagesprotects against replay —signature verification doesn't; replay-resistance needs a
timestamp, which the pub payload doesn't carry.
check only validates slots named in the ACL spec; extras pass
through.
<cachedir>/master/minions/*/data.p)— replaced with the actual cache-bank reference since the on-disk
path depends on the configured cache driver.
permissive_acldescription that was backwards relative to thecode — rewritten.
Why "we can not speculate" matters here
Wrong security guidance is actively dangerous. The page sticks to
what the code demonstrably does today and names the things it does
not do, since the latter is where operator incidents start.
Test plan
sphinx-buildof the full doc tree is clean for the new file(no warnings touching
threat-model.rstorsecurity/index.rst).:ref:label used in the new page resolves on 3008.x.