CLI-Anything Bundle #88 — Consul Mesh Trust Recon Pack (4 New AI Agent Skills)
v1.0.0 · MIT · stdlib-only · read-only by construction
Four agent-native, read-only trust-recon CLI tools covering the Consul service-mesh trust surface (agent, catalog and snapshot posture of the coordination layer that every service-mesh control-plane leans on) — the layer that tells you whether a deployment's install, config, service definitions and agent artifacts can still be TRUSTED (an operator whose consul binary, *.hcl/*.json config, service checks and raft/snapshot state cannot be honestly censused has no mesh-trust story at all): the install + agent runtime posture layer, the config grammar + security posture layer, the service-definition + checks layer, and the agent artifact + snapshot layer. Each tool stats/globs binaries, configs and run-state files and parses documented grammar line-based — nothing is ever executed, no consul binary is ever spawned, nothing is ever written, nothing networks, and no credential VALUE is ever read or printed (CRED-PRESENT presence rows only; check args ride ARG1 tokens; custom hosts ride HOST1 tokens with localhost doc shapes allowed; svc/node identities ride SVC1/NODE1 tokens; raft/snapshot bodies never read beyond size/mtime).
- consulpeek — Consul install + agent runtime posture census: exact consul binary stat-only across lookup dirs (TOOL_BINS presence rows, BIN tokens, binaries NEVER executed); install-dir bin/config/data/ui subdir census (INSTALL rows, /opt/consul + /usr/share/consul probe); config-dir presence + PERM class (contents never parsed by this tool); data-dir run-state walk (raft/serf subdir presence, checkpoint + node-name file presence); systemd consul* unit census; findings CONF_PERM / DATA_PERM (group/world-writable), DATA_WIDE (world-readable data dir), BARE_TOOL, CONF_WITHOUT_TOOL, NOT_RUNNING, EMPTY_RAFT; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- consulconfpeek — Consul config grammar + security posture census: *.json/*.hcl config file census with perm class rows; grammar census (stdlib-json capped heads for .json, LINE-BASED for .hcl — no hcl or yaml module ever imported) over the public Consul vocabulary (datacenter, data_dir, bind_addr, advertise_addr, ports.http, bootstrap_expect, server, retry_join) as KEY-PRESENCE rows; bind posture classing (doc-shaped loopback may print; wildcard 0.0.0.0/:: rides a WILD_BIND finding; custom hosts ride HOST1 tokens); security key-presence SEC rows (encrypt, ca_file, cert_file, key_file, verify_*, auto_encrypt, acl.enabled — values never read or printed) with ACL_ALLOW findings on acl.default_policy allow; retry_join PRESENCE rows on HOST1 tokens; ACL_ALLOW + CRED_PRESENT presence findings; findings CONF_PERM; rc 0 / 4 / 6 / 3 law.
- consulsvcpeek — Consul service-definition + checks posture census: *.json/*.hcl/*svc* file census with perm class; service grammar rows (service, name, id, address, port, tags, meta, weights — names ride SVC1 tokens, public example shapes may print); checks posture classed by interpreter verb (http/tcp/ttl presence; a script/args check rides a SCRIPT_CHECK finding with the arg string on ARG1 tokens, NEVER printed); interval + deregister_critical_service_after posture (NO_DEREG finding); tag hygiene; findings SVC_PERM + CRED_PRESENT; rc 0 / 4 / 6 / 3 law.
- consulagentpeek — Consul agent artifact + snapshot surface census: agent-file census (checkpoint.json/node-name presence, size buckets, bodies never read); raft/serf dir STATE rows (file counts only); snapshot census (*.snapshot, consul-snapshot*, *.bak with fresh/week/stale mtime buckets); TLS material presence rows (*.pem/*.crt/*.key with perm class; a world-readable *.key rides KEY_WIDE; key material NEVER opened); findings AGENT_PERM + STATE_PERM; honest CLIENT_ONLY, NO_BACKUP and STALE_SNAP posture notes; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no credential value, svc/node identity, check argument or snapshot body ever prints raw (values ride BIN1/CONF1/DATA1/NODE1/SVC1/TAG1/ARG1/HOST1/STATE1/SNAP1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (883 executed checks across the four tools — 200 + 213 + 251 + 219 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip, 0 failed).