CLI-Anything Bundle #86 — Kafka Bus 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 Kafka bus trust surface (brokers and the coordinating ZooKeeper ensemble) — the layer that tells you whether a bus deployment's install, config and run state can still be TRUSTED (an operator whose kafka binaries, server.properties, JAAS files, zoo.cfg, myid and ensemble state cannot be honestly censused has no bus-trust story at all): the install + broker runtime posture layer, the properties-grammar + broker posture layer, the ZooKeeper install + ensemble runtime layer, and the zoo.cfg grammar + ensemble posture layer. Each tool stats/globs binaries, configs and run-state files, and parses documented grammar line-based — nothing is ever executed, no kafka or zookeeper script is ever spawned, nothing is ever written, nothing networks, and no credential VALUE is ever read or printed (CRED-PRESENT presence rows only; JAAS files ride FILE-PRESENT with zero content; custom broker/ensemble hosts ride HOST1 tokens with localhost doc shapes allowed; znode paths ride ZNODE1 tokens).
- kafkapeek — Kafka install + broker runtime posture census: kafka-* script glob plus exact kafka-run-class across lookup dirs (TOOL_BINS presence rows, BIN tokens, scripts NEVER executed); install census (config/libs/logs subdirs of probed roots); server.properties presence + PERM class (contents never parsed by this tool); run-state census (pidfiles on PID tokens; controller.log/server.log/metadata presence); kafka* systemd unit census; permission findings (CONF_PERM on a loose config dir, LOG_PERM on a loose log dir, RUN_PERM on a world-writable pidfile path); posture findings (BARE_TOOL, CONF_WITHOUT_TOOL, NOT_RUNNING, EMPTY_LOGS); rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- kafkaconfpeek — Kafka config grammar + broker posture census: *.properties/*.jaas config file census with perm class rows; line-based properties grammar census (broker.id, listeners, advertised.listeners, log.dirs, num.partitions, default.replication.factor, auto.create.topics.enable, delete.topic.enable, log.retention) as KEY-PRESENCE rows; listener classing PLAINTEXT vs SSL vs SASL_* with custom hosts on HOST1 tokens; zookeeper.connect rides PRESENCE-class only (ZK1 token; the zookeeper surface has its own tools); security posture census (security.inter.broker.protocol, sasl.enabled.mechanisms, ssl.* keys as PRESENCE rows with VALUES never read; JAAS = FILE-PRESENT + zero content); hardening findings (RF1_EVERYONE single-copy replication, AUTO_TOPIC auto-create, DELETE_NOTE); findings CONF_PERM + CRED_PRESENT (presence class only); rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- zookeeperpeek — ZooKeeper install + ensemble runtime posture census: zkServer.sh/zkCli.sh/zookeeper* script glob across lookup dirs (TOOL_BINS rows, BIN tokens, scripts NEVER executed); install census (conf/lib/data subdirs); zoo.cfg presence + PERM class (contents never parsed by this tool); run-state census (myid presence, version-2 snapshot dir, log presence on MYID1/LOG1 tokens); zookeeper* systemd unit census; permission findings (CONF_PERM, DATA_PERM, MYID_PERM); posture findings (BARE_TOOL, CONF_WITHOUT_TOOL, NOT_RUNNING, EMPTY_MYID); rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- zoopeek — ZooKeeper config grammar + ensemble posture census: zoo.cfg/*.cfg/*.properties/jaas config file census with perm class rows; line-based grammar census (dataDir, dataLogDir, clientPort, tickTime, initLimit, syncLimit, maxClientCnxns, autopurge.*) as KEY-PRESENCE rows; ensemble census (server.N=host:port:port grammar; member count prints, custom hosts ride HOST1 tokens, localhost doc shapes allowed; single-node ENSEMBLE1 finding); security posture census (authProvider.*, quorum.auth.*, ssl.* PRESENCE rows, values never read); hardening findings (FOURLW_WILDCARD on a * whitelist, NO_SECURE_PORT note, NO_AUTOPURGE on 0/missing purgeInterval); findings CONF_PERM + EMPTY_CONF note; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no credential value, custom ensemble member or znode path ever prints raw (values ride BIN1/PID1/LOG1/HOST1/CONF1/ZK1/MYID1/ZNODE1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (827 executed checks across the four tools — 201 + 200 + 209 + 217 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip, 0 failed).