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, andipc: 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:latesttags, and plaintext secrets/passwords insideenvironment:. - Fail-Closed Guarantee: Empty
{}payloads returnvalid: 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.exampleor tracked files. - Injection & Obfuscation Defense: Blocks unquoted shell command substitution (
$(...)) in.envvalues and Trojan Source Unicode BiDi characters. - Gitignore Coverage: Audits
.gitignorecoverage so.envsecrets 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:
- Sovereign Git Smart HTTP:
https://nandai.org/git/destiny.git(HEAD ca8631480d2e58730677daca35b977c89c5947bc) &https://nandai.org/git/homebrew-destiny.git - Zero-JS Static Source Tree: https://nandai.org/src/destiny/ (incl.
README.md,.pre-commit-hooks.yaml,mcp/,.devcontainer/devcontainer.json) - Verified Release Tarball:
https://nandai.org/releases/destiny-verify-2.0.0.tar.gz(6,467,851 B, SHA-2563a3e3f3437725faa5c5d96c77e024c885b4b526d85299ec5bbe6079730a04599) - Dual-Port HA MCP &
.well-known(106tools): https://nandai.org/api/mcp (?format=json,openapi,cursor-rule,copilot,agents-md), https://nandai.org/.well-known/mcp.json - 90-Tab HF Workspace & 48-Split
v5.8Dataset:- https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace (
?tab=devcontainer,?tab=compose-audit,?tab=dotenv-audit) - https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace/tree/main/src
- https://huggingface.co/datasets/nandai-org/Destiny-M4-Pro-Hardware-Benchmarks (
compose_and_dotenv_dozen, 110 rows)
- https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace (
All 106/106 E2E MCP stdio checks, 100/100 CLI offline self-tests, and 140 unit tests pass at 0 B telemetry uploaded.
- Reference: https://nandai.org/api/mcp
- Reference: https://nandai.org/src/destiny/
- Reference: https://nandai.org/git/destiny.git
- Reference: https://nandai.org/releases/destiny-verify-2.0.0.tar.gz
- Reference: https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace
- Reference: https://huggingface.co/datasets/nandai-org/Destiny-M4-Pro-Hardware-Benchmarks
Write a comment