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>
55 lines
1.6 KiB
Bash
55 lines
1.6 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"
|
|
|
|
: "${ZONE_NAME:=}"
|
|
: "${HOSTNAME:=}"
|
|
: "${SERVICE_NAME:=cloudflared-tunnel}"
|
|
: "${CONFIG_DIR:=$SKILL_ROOT/outputs/config}"
|
|
|
|
main() {
|
|
local status="$SKILL_ROOT/outputs/status_matrix.json"
|
|
local ok_tunnel=false ok_dns=false ok_config=false ok_service=false
|
|
|
|
if [[ -f "$CONFIG_DIR/tunnel.json" ]]; then ok_tunnel=true; fi
|
|
if [[ -f "$CONFIG_DIR/dns_route.json" ]]; then ok_dns=true; fi
|
|
if [[ -f "$CONFIG_DIR/config.yml" ]]; then ok_config=true; fi
|
|
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
if systemctl is-active "$SERVICE_NAME" >/dev/null 2>&1; then ok_service=true; fi
|
|
fi
|
|
|
|
blockers="[]"
|
|
if [[ "$ok_tunnel" != "true" ]]; then blockers='["tunnel_not_created"]'
|
|
elif [[ "$ok_dns" != "true" ]]; then blockers='["dns_route_missing"]'
|
|
elif [[ "$ok_config" != "true" ]]; then blockers='["config_missing"]'
|
|
fi
|
|
|
|
cat > "$status" <<EOF
|
|
{
|
|
"skill": "cloudflare-tunnel-manager",
|
|
"timestamp": "$(date -Iseconds)",
|
|
"checks": [
|
|
{"name":"tunnel_snapshot", "ok": $ok_tunnel},
|
|
{"name":"dns_snapshot", "ok": $ok_dns},
|
|
{"name":"config_present", "ok": $ok_config},
|
|
{"name":"service_active", "ok": $ok_service}
|
|
],
|
|
"blockers": $blockers,
|
|
"warnings": [],
|
|
"next_steps": [
|
|
"Confirm hostname routes to expected service",
|
|
"Record tunnel id + hostname in LAWCHAIN (optional)",
|
|
"Proceed to gitea-bootstrap or proof pipeline skills"
|
|
]
|
|
}
|
|
EOF
|
|
|
|
log_info "Wrote $status"
|
|
cat "$status"
|
|
}
|
|
|
|
main "$@"
|