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>
78 lines
1.7 KiB
Bash
78 lines
1.7 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"
|
|
|
|
: "${PDNS_PORT:=53}"
|
|
: "${PDNS_WEB_PORT:=8081}"
|
|
: "${PDNS_DATA_DIR:=$HOME/pdns}"
|
|
: "${ZONE_NAME:=}"
|
|
: "${CF_ZONE_NAME:=}"
|
|
|
|
main() {
|
|
mkdir -p "$SKILL_ROOT/outputs"
|
|
local report="$SKILL_ROOT/outputs/audit_report.md"
|
|
local status="$SKILL_ROOT/outputs/status_matrix.json"
|
|
|
|
cat > "$report" <<EOF
|
|
# DNS Sovereign Audit Report
|
|
|
|
**Generated:** $(date -Iseconds)
|
|
**PDNS DNS Port:** $PDNS_PORT
|
|
**PDNS API Port (localhost):** $PDNS_WEB_PORT
|
|
**PDNS Data Dir:** $(json_escape "$PDNS_DATA_DIR")
|
|
**Zone (PDNS):** $(json_escape "${ZONE_NAME:-}")
|
|
**Cloudflare Mirror Zone:** $(json_escape "${CF_ZONE_NAME:-}")
|
|
**Skill Version:** 1.0.0
|
|
|
|
---
|
|
|
|
## Artifacts
|
|
|
|
| Item | Path |
|
|
|---|---|
|
|
| Compose | \`$SKILL_ROOT/outputs/compose.yml\` |
|
|
| pdns.conf | \`$SKILL_ROOT/outputs/pdns.conf\` |
|
|
| API Probe | \`$SKILL_ROOT/outputs/pdns_api_probe.json\` |
|
|
| Status Matrix | \`$SKILL_ROOT/outputs/status_matrix.json\` |
|
|
| Backups | \`$SKILL_ROOT/outputs/backups/\` |
|
|
|
|
---
|
|
|
|
## Status Matrix
|
|
|
|
$(if [[ -f "$status" ]]; then
|
|
echo '```json'
|
|
cat "$status"
|
|
echo '```'
|
|
else
|
|
echo "_Missing status_matrix.json — run 90_verify.sh first._"
|
|
fi)
|
|
|
|
---
|
|
|
|
## EU Compliance Declaration
|
|
|
|
| Aspect | Value |
|
|
|---|---|
|
|
| Data Residency | EU (Ireland - Dublin) |
|
|
| Jurisdiction | Irish Law |
|
|
| Authoritative DNS | PowerDNS on your node |
|
|
| Mirror | Optional Cloudflare mirror |
|
|
|
|
---
|
|
|
|
## Rollback
|
|
|
|
- PDNS stop/remove: \`./scripts/rollback/undo_pdns.sh\`
|
|
- Delete zone (optional): \`./scripts/rollback/undo_zone.sh\`
|
|
- Remove CF records created by this skill: \`./scripts/rollback/undo_cloudflare.sh\`
|
|
|
|
EOF
|
|
|
|
log_info "Wrote $report"
|
|
cat "$report"
|
|
}
|
|
main "$@"
|