Skip to content

Add Security and Threat Model documentation - #70632

Merged
dwoz merged 2 commits into
saltstack:3008.xfrom
dwoz:dwoz/docs/threat-model-3008x
Nov 9, 2026
Merged

dwoz merged 2 commits into
saltstack:3008.xfrom
dwoz:dwoz/docs/threat-model-3008x

Conversation

@dwoz

@dwoz dwoz commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

What this PR is

Adds doc/security/threat-model.rst — a Salt security and threat
model 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:

Claim Source
4506 = ret_port, 4505 = publish_port salt/config/__init__.py:1536,1547
auto_accept default False on master salt/config/__init__.py:1708
PKI dirs minions_pre/minions/minions_rejected/minions_denied salt/key.py:318-321
publisher_acl_blacklist checked before publisher_acl salt/master.py:3950-3967
permissive_acl semantics (default False; True = * applies to all) salt/utils/minions.py:1527-1538
@runner/@wheel require @-prefixed ACL entries salt/utils/minions.py:1575-1595
sign_pub_messages verifies signature only (not replay) salt/channel/client.py:639-655
ssl only on TCP transport salt/transport/zeromq.py:1777-1779 + salt/transport/tcp.py:1071
4-byte length prefix is TCP-only salt/transport/frame.py:27-41
master.pem, minion.pem, minion_master.pub paths salt/crypt.py:719,1112,1125
Jobs cached under <cachedir>/jobs/ salt/returners/local_cache.py:47
extmods under <cachedir>/extmods/ salt/config/__init__.py:1198,4202
gpg and nacl renderers ship in-tree salt/renderers/{gpg,nacl}.py

What 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:

  • A reference to aws_kms renderer — not present on 3008.x.
  • A claim that every ACL example is parsed by a unit test under
    tests/pytests/unit/test_acl_examples.py — that file does not
    exist.
  • A claim that sign_pub_messages protects against replay —
    signature verification doesn't; replay-resistance needs a
    timestamp, which the pub payload doesn't carry.
  • A claim that extra trailing args fail the ACL arg check — the arg
    check only validates slots named in the ACL spec; extras pass
    through.
  • A specific pillar cache file path (<cachedir>/master/minions/*/data.p)
    — replaced with the actual cache-bank reference since the on-disk
    path depends on the configured cache driver.
  • A permissive_acl description that was backwards relative to the
    code — 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-build of the full doc tree is clean for the new file
    (no warnings touching threat-model.rst or security/index.rst).
  • Every :ref: label used in the new page resolves on 3008.x.
  • Security WG review on wording before this leaves draft.

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
@dwoz
dwoz requested a review from a team as a code owner November 1, 2026 09:23
@dwoz dwoz added this to the Argon v3008.7 milestone Nov 1, 2026
@dwoz dwoz added the test:full Run the full test suite label Nov 1, 2026
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
@dwoz
dwoz merged commit 8910019 into saltstack:3008.x Nov 9, 2026
887 of 892 checks passed
@dwoz
dwoz deleted the dwoz/docs/threat-model-3008x branch November 13, 2026 08:30

This branch was previously deployed

1 inactive deployment
ci — dfd64bb5 Deployed Nov 1, 2026 by dwoz via Build Onedir Packages / RPM (x86_64) #28265
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.

[DOCS] Introduce a Security and Threat Model documentation

2 participants