Files
apex-twin/tests
lotherk 276283d535 apex-twin 1.7.0: MySQL, PostgreSQL, MongoDB and Memcached probes
New tools_db.c module:
- mysql_probe reads the initial handshake (protocol/server version, thread id,
  auth plugin, capability flags for TLS, secure connection and plugin auth).
  No credentials are sent.
- postgres_probe asks with a separate SSLRequest whether SSL is offered, then
  sends one StartupMessage as user postgres and reports trust, cleartext, md5,
  SCRAM (with mechanism) or rejected (with the server message). A trust answer
  is audited; no password is sent.
- mongo_probe sends a legacy OP_QUERY isMaster to admin.$cmd with a hand-built
  BSON document and parses the OP_REPLY for ok, maxWireVersion, writable
  primary and a version string.
- memcached_probe sends one stats command and reports open access, version,
  connections, items, memory limit and uptime.

Socket helpers apex_net_write/line/exact are exported from tools_proto.c.

Tests with local fixtures: MySQL handshake with caching_sha2_password,
PostgreSQL trust, md5, SCRAM and pg_hba rejection including an SSL-refused
server, a MongoDB OP_REPLY, and memcached stats plus an ERROR answer. 537
checks, ASan suite green, analyze clean, release-check green including
distcheck 1.7.0.
2026-11-21 12:39:42 +00:00
..