Hardening Docker Compose & .env Hygiene: 106 MIT MCP Tools, 12/12 Hooks, Sovereign Git/Source Browser & 90-Tab Space

Wave S79 ships Tool #105 (Docker Compose privilege/mount/port guard) + 11th hook, Tool #106 (.env secret/injection/BiDi auditor) + 12th Dozen pre-commit hook, sovereign Git + static /src/destiny/ + release tarball, 90-Tab HF Space with Tab #87 clipping fix, and 48-split v5.8 CC-BY-4.0 dataset.
Hardening Docker Compose & .env Hygiene: 106 MIT MCP Tools, 12/12 Hooks, Sovereign Git/Source Browser & 90-Tab Space

Hardening Docker Compose Privileges & .env Templates: 106 Zero-Dep MIT MCP Tools, 12/12 Pre-Commit Hooks, Sovereign Git/Source Browser & 90-Tab Apple Silicon Workspace

Container escape configurations in docker-compose.yml and live credentials committed into .env.example templates are among the highest-severity developer supply-chain failures — and both can be blocked deterministically at 0 B uploaded before git push.

With Wave S79, Destiny (ca86314) completes the 12/12 Pre-Commit Hooks Dozen Milestone and expands the zero-dependency MIT-licensed Destiny MCP & CLI suite to 106 tools backed by sovereign code hosting (https://nandai.org/git/destiny.git), a zero-JS static source browser (https://nandai.org/src/destiny/), verified release tarballs (https://nandai.org/releases/destiny-verify-2.0.0.tar.gz), live dual-port Streamable HTTP + REST MCP endpoints (https://nandai.org/api/mcp), and a 90-Tab Hugging Face Space paired with 48 CC-BY-4.0 dataset splits (v5.8).


1. Tool #105: audit_docker_compose_privilege_posture + 11th Hook (destiny-compose-audit)

Pure-Python zero-dependency Compose security posture evaluator (destiny-verify compose-audit, guard_scan.py compose):

  • Container Privilege Escalation: Flags privileged: true, network_mode: host, pid: host, and ipc: host.
  • Host Escape Mounts: Detects /var/run/docker.sock, raw host / binds, and credential mounts (~/.ssh, ~/.aws).
  • Exposure & Supply-Chain Hygiene: Catches 0.0.0.0: wildcard host bindings on database/cache/agent ports, unpinned :latest tags, and plaintext secrets/passwords inside environment:.
  • Fail-Closed Guarantee: Empty {} payloads return valid: false, score: 0, grade: "F" (MISSING_EVALUATOR_INPUT).

2. Tool #106: verify_dotenv_template_secret_hygiene + 12th Hook (destiny-dotenv-audit)

Pure-Python .env, .env.example, .env.local, and .env.production security & injection auditor (destiny-verify dotenv-audit, guard_scan.py dotenv):

  • Credential & Private Key Prevention: Catches live high-entropy API tokens (sk-, AKIA, xoxb-, AIza, GitHub PAT prefixes, PEM blocks, JWTs, Postgres/Stripe live URLs) accidentally committed to .env.example or tracked files.
  • Injection & Obfuscation Defense: Blocks unquoted shell command substitution ($(...)) in .env values and Trojan Source Unicode BiDi characters.
  • Gitignore Coverage: Audits .gitignore coverage so .env secrets stay untracked locally.

3. Sovereign Open-Source Mirrors & Live Verification Receipts

All public source, release checksums, and agent configuration feeds run directly on owned sovereign infrastructure with fallback parity:

All 106/106 E2E MCP stdio checks, 100/100 CLI offline self-tests, and 140 unit tests pass at 0 B telemetry uploaded.


Write a comment