Borehole · Project · free tier
saltstack/salt
Free reading: not for reliance
03d8a98 · 50,000 commits · 5,481 files
Read 2026-10-23

saltstack/salt: technical due diligence, read from its repository

What Borehole read in saltstack/salt's code and history at 03d8a98: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

salt/modules/win_lgpo.py is 10,624 lines, 78× this codebase's median file

adequate

The median source file here is 135 lines. 87 files exceed 1,350 lines, the largest being 10,624. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
salt/modules/win_lgpo.py:1 — 10,624 lines (78× median)
salt/states/file.py:1 — 9,839 lines (72× median)
salt/cloud/deploy/bootstrap-salt.sh:1 — 9,191 lines (68× median)
salt/modules/file.py:1 — 8,405 lines (62× median)
salt/minion.py:1 — 6,646 lines (49× median)
01.15

594 errors caught and discarded in product code

adequate

594 places catch an error and do nothing with it, across 221 files (0.5 per thousand lines). Each is a failure the system will not report. They surface later as problems nobody can explain, and they are cheap to fix now.

Evidence
cicd/windows-ssl-104135-patch.py:84 — error caught and discarded
cicd/windows-ssl-104135-patch.py:86 — error caught and discarded
noxfile.py:1458 — error caught and discarded
01.42

1 model weight file committed directly to git

adequate

1 model weight files are stored in git itself, not in LFS, DVC or a model hub. Every clone carries them, the history keeps every version for good, and nothing records which run or data produced them.

Evidence
pkg/common/onedir/_salt_onedir_extras.pth — weights in git

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

13 tests are individually marked to retry. A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.1

70 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key. 1 other match set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
5 cited: private key block, where fakes are usual
05.27

The build runs third-party code it does not pin

adequate

3 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 9 steps pipe a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/build-packages.yml:95 — action pinned by tag
.github/workflows/build-packages.yml:602 — action pinned by tag
.github/workflows/dependabot-sync.yml:49 — download piped into a shell
05.20

1 SQL statement built from strings

adequate

1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.

Evidence
salt/spm/pkgdb/sqlite3.py:96 — SQL built from a string
05.22

12 deserialisers that can run code

adequate

12 places read data with a deserialiser that executes what it reads (`yaml.load` without a safe loader). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

Evidence
salt/modules/junos.py:1860 — code-executing deserialiser
salt/modules/win_iis.py:190 — code-executing deserialiser
salt/serializers/yaml.py:46 — code-executing deserialiser
05.65

12 advisories against this project in the last 24 months, 5 high or critical

adequate

The newest was published on 2026-01-30. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version. The record is incomplete: NVD: 70 records name salt with nothing tying them to this repository (CVE-2020-8028, CVE-2021-21996, CVE-2021-22004, …).

Evidence
2026-01-30: GHSA-77w2-v593-vxvv (high), fixed in 3006.17: Salt junos Module Vulnerable to Code Injection via Specially Crafted YAML Payload
2026-01-30: GHSA-vcf3-26xf-fw4m (high), fixed in 3006.17: Salt Authentication Protocol Version Downgrade Allows Minion Impersonation
2025-06-13: GHSA-4j59-vv55-q6h3 (moderate), fixed in 3006.12: Salt's salt.auth.pki module does not properly authenticate callers
2025-06-13: GHSA-7f3f-x5f5-79gw (moderate), fixed in 3006.12: Salt's file contents overwrite the VirtKey class
2025-06-13: GHSA-8pcp-r83j-fc92 (critical), fixed in 3006.12: Salt vulnerable to directory traversal attack in file receiving method

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 3,638 files for 10 structured logging libraries; 0 matched
06.9

No error reporter is wired in

adequate

Nothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.

Evidence
no error reporter initialised

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on saltstack/salt: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.