Four agent-native read-only harnesses that census the database trust surface: what a PostgreSQL, MySQL/MariaDB or Redis daemon actually listens with (bind addresses, skip-networking, the listen_addresses grammar), what it actually authenticates (pg_hba.conf's first-match record law — trust methods, weak password/md5 methods, open CIDRs), which legacy or weak auth its config still carries (postgres md5 password encryption, MySQL old_passwords, redis requirepass absent-or-empty under protected-mode/bind composition), and which admin commands remain live (redis rename-command census). No other bundle owns this surface — SSH trust (Bundle #22/#48) and file-share trust (Bundle #55) are adjacent, not this.
--conf override; LAST-assignment-wins layering with every shadowed loser named SHADOWED_LOSER carrying file:line; one-hop include tree (include, include_if_exists, include_dir with sorted children, self-include recursion capped and named); LISTEN_ALL/LISTEN_ABSENT; SSL_OFF when ssl is off/absent on a non-local listener (SSL_OFF_LOCAL_ONLY hygiene row when localhost-only, SSL_ON data); PASSWORD_ENC_MD5 with scram/absent/other rows; WORLD_SOCKET ('0777') / GROUP_SOCKET ('0775') with the UNIX_PERMS row; IDLE_TXN_TIMEOUT_UNBOUNDED and PORT_DATA rows; FILE_WORLD_WRITABLE stat law on the conf and one-level includes; honest absence rc6.local all all triple named LOCAL_ALL_TRUST; open CIDRs (0.0.0.0/0, ::/0, 0.0.0.0, ::) = OPEN_CIDR; password and md5 = WEAK_METHOD; ident/peer + modern methods as METHOD rows, unknown methods never guessed; hostnossl rows carried; the documented first-match-wins law is NEVER re-ordered (RECORD_COUNT pins the order); the top include layer (@include family, one hop) parsed with file provenance in every row; HBA_WORLD_WRITABLE stat law.!includedir resolved one hop with children sorted + !include, recursion capped; BIND_ALL (bind-address 0.0.0.0/::), skip-networking NETWORK_DISABLED hygiene, LOCAL_INFILE_ENABLED, SECURE_FILE_PRIV_EMPTY, LEGACY_PASSWORD_HASHING (old_passwords), SERVICE_ROOT_USER (user=root in [mysqld]) findings; [client] inline password = INLINE_CLIENT_PASSWORD with the value NEVER printed; symlink-chain resolution one hop with chain-edge honesty.Contract: rc0 clean / rc4 findings / rc6 nothing readable / rc2 usage, --json emits the full report per tool with the --conf path-override flag so an agent can point the census laws at any tree or fixture. Pure Python stdlib; zero subprocesses, zero writes, zero sockets; database configs are only ever READ, and secret-named values are masked — the census never "fixes" an exposed posture, it names it.
Self-test battery: 656 fixture-based executed assertions inside (runner_count.py) — verified fired twice consecutively from this exact tree plus two clean-room fires from this shipping zip, 0 failed.
MIT license · stdlib-only · Python 3.8+. Read-only by construction: nothing is enabled, disabled, or written by the census.