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>
This commit is contained in:
22
secrets-vault/scripts/rollback/undo_last_changes.sh
Normal file
22
secrets-vault/scripts/rollback/undo_last_changes.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
SKILL_ROOT="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
||||
source "$SKILL_ROOT/scripts/_common.sh"
|
||||
|
||||
: "${BACKUP_DIR:=$SKILL_ROOT/outputs/backups}"
|
||||
|
||||
main() {
|
||||
confirm_gate
|
||||
if [[ ! -d "$BACKUP_DIR" ]]; then
|
||||
log_warn "No backups found; nothing to restore."
|
||||
exit 0
|
||||
fi
|
||||
log_warn "Backups exist in: $BACKUP_DIR"
|
||||
log_warn "This rollback restores only files we backed up (.sops.yaml, README.md)."
|
||||
log_warn "Encrypted templates are safe to keep; remove manually if desired."
|
||||
echo "Listing backups:"
|
||||
ls -1 "$BACKUP_DIR" || true
|
||||
log_info "Rollback is conservative by design. Restore manually by copying desired *.bak to target."
|
||||
}
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user