Skip to content

Instantly share code, notes, and snippets.

@aabccd021
Created March 13, 2025 12:13
Zero tier secret to sops secret
public=$(cat /var/lib/zerotier-one/identity.public)
secret=$(cat /var/lib/zerotier-one/identity.secret)
id=$(echo "$public" | cut -d: -f1)
sops --set '["zt-client-'$id'-public"] "'$public'"' "$@"
sops --set '["zt-client-'$id'-secret"] "'$secret'"' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment