Collection of operational skills for VaultMesh infrastructure including: - backup-sovereign: Backup and recovery operations - btc-anchor: Bitcoin anchoring - cloudflare-tunnel-manager: Cloudflare tunnel management - container-registry: Container registry operations - disaster-recovery: Disaster recovery procedures - dns-sovereign: DNS management - eth-anchor: Ethereum anchoring - gitea-bootstrap: Gitea setup and configuration - hetzner-bootstrap: Hetzner server provisioning - merkle-forest: Merkle tree operations - node-hardening: Node security hardening - operator-bootstrap: Operator initialization - proof-verifier: Cryptographic proof verification - rfc3161-anchor: RFC3161 timestamping - secrets-vault: Secrets management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
SKILL_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
source "$SCRIPT_DIR/_common.sh"
|
|
|
|
: "${OUTPUT_DIR:=$SKILL_ROOT/outputs}"
|
|
|
|
main() {
|
|
[[ -f "$OUTPUT_DIR/last_run_dir.txt" ]] || die "No last_run_dir.txt. Run 11_apply.sh first."
|
|
run_dir="$(cat "$OUTPUT_DIR/last_run_dir.txt")"
|
|
status="$run_dir/status_matrix.json"
|
|
ok_root=false; ok_proof=false; ok_leaf=false
|
|
[[ -f "$run_dir/ROOT.txt" ]] && ok_root=true
|
|
[[ -f "$run_dir/PROOF.json" ]] && ok_proof=true
|
|
[[ -f "$run_dir/leaf_hashes.txt" ]] && ok_leaf=true
|
|
root_hex="$(grep '^root_hex=' "$run_dir/ROOT.txt" 2>/dev/null | cut -d= -f2 || true)"
|
|
blockers="[]"
|
|
if [[ "$ok_root" != "true" ]]; then blockers='["missing_root_txt"]'
|
|
elif [[ "$ok_proof" != "true" ]]; then blockers='["missing_proof_json"]'
|
|
fi
|
|
cat > "$status" <<EOF
|
|
{
|
|
"skill": "merkle-forest",
|
|
"timestamp": "$(date -Iseconds)",
|
|
"run_dir": "$(json_escape "$run_dir")",
|
|
"root_hex": "$(json_escape "$root_hex")",
|
|
"checks": [
|
|
{"name":"leaf_hashes_present", "ok": $ok_leaf},
|
|
{"name":"root_present", "ok": $ok_root},
|
|
{"name":"proof_present", "ok": $ok_proof}
|
|
],
|
|
"blockers": $blockers,
|
|
"warnings": [],
|
|
"next_steps": ["rfc3161-anchor","eth-anchor","btc-anchor"]
|
|
}
|
|
EOF
|
|
log_info "Wrote $status"
|
|
cat "$status"
|
|
}
|
|
main "$@"
|