CLI-Anything Bundle #137 — Nomad Trust Recon Pack

nomadpeek — install + data posture census: nomad binaries stat-only (never executed), the /etc/nomad.d tree with nomad.hcl/agent.hcl counting (files NEVER read), the data dir (RocksDB alloc state) counted and permission-checked — allocation bodies never read — the agent's runtime dir with nomad-agent.token counted as CRED-PRESENT, permissions verified but content never read, log dirs (size-only), and nomad*.service units. Findings BARE_TOOL, CONF_PERM, DATA_WIDE, LOG_WIDE, AGENT_SOCK_WIDE.

nomadconfpeek — nomad.hcl directive grammar + agent exposure census with a split-based hcl parser (no HCL library): the [server]/[client]/[vault]/[tls]/[acl]/[consul]/[ui_config]/[autopilot] blocks graded (bind_addr class, acl.enabled posture, tls https/cert/key as CRED-PRESENT, vault token as CRED-PRESENT, consul token as CRED-PRESENT, ui_config.enabled, log_level band, data_dir present, server/client presence). Findings BIND_ANY, ACL_DISABLED, TLS_ABSENT, NO_DATA_DIR, LOG_LEVEL_HIGH, CONF_PERM. The parser handles multi-line nested blocks, single-line inline blocks block { key = val }, and inline key=value pairs that share the block-start line with spaces tolerant around =.

Read-only by construction — nothing executed, no HTTP API (:4646 unreachable), no netlink, no log or allocation body read. Values, secrets, and log/alloc content never print; secrets ride CRED-PRESENT tokens only. rc-law 0/4/6/3 with usage rc3, env overrides, and an honest alt-path fixture census on zero-surface hosts.

639 executed census checks (150 + 489), 0 failed, clean-room fired x2 from the exact shipping zip (/tmp room and home-path room, identical counts). 47 unit tests green (25 + 22). Python 3.8+ stdlib-only. MIT license.