Files
Vault Sovereign eac77ef7b4 Initial commit: VaultMesh Skills collection
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>
2025-12-27 00:25:00 +00:00

60 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"
: "${MODE:=docker}"
: "${HTTP_PORT:=3000}"
: "${DATA_DIR:=$HOME/gitea}"
main() {
local status="$SKILL_ROOT/outputs/status_matrix.json"
local ok_http=false ok_data=false ok_compose=false ok_container=false
[[ -d "$DATA_DIR" ]] && ok_data=true
[[ -f "$SKILL_ROOT/outputs/compose.yml" ]] && ok_compose=true
if curl -fsS "http://127.0.0.1:${HTTP_PORT}/" >/dev/null 2>&1; then
ok_http=true
fi
if [[ "$MODE" == "docker" ]]; then
if docker ps --format '{{.Names}}' | grep -q '^gitea$'; then
ok_container=true
fi
fi
blockers="[]"
if [[ "$ok_data" != "true" ]]; then blockers='["data_dir_missing"]'
elif [[ "$ok_compose" != "true" && "$MODE" == "docker" ]]; then blockers='["compose_missing"]'
elif [[ "$ok_http" != "true" ]]; then blockers='["http_unreachable"]'
fi
cat > "$status" <<EOF
{
"skill": "gitea-bootstrap",
"timestamp": "$(date -Iseconds)",
"checks": [
{"name":"data_dir_present", "ok": $ok_data},
{"name":"compose_present", "ok": $ok_compose},
{"name":"container_running", "ok": $ok_container},
{"name":"http_reachable", "ok": $ok_http}
],
"blockers": $blockers,
"warnings": [
"Admin user creation is recommended via first-run web UI in v1"
],
"next_steps": [
"Create admin via web UI and record admin creation in your ops log",
"Put Gitea behind reverse proxy + TLS (optional)",
"Proceed to container-registry or dns-sovereign"
]
}
EOF
log_info "Wrote $status"
cat "$status"
}
main "$@"