@muthuishere/vsync
v0.15.0
Published
Encrypted secret-sync CLI for small teams. AES-256-GCM vault on any S3-compatible bucket + OS keychain key + one-passphrase .share onboarding + fanout to GitHub Actions, GCP Secret Manager, AWS Secrets Manager, Azure Key Vault, HashiCorp Vault KV v2 + app
Maintainers
Readme
vsync
An encrypted vault for your environment secrets — shared across your team, mirrored to GitHub / GCP / AWS / Azure / HashiCorp Vault, audited every time someone touches it.

A CLI for owners and CI, plus runtime libraries in Python, TypeScript, Go, and Java for apps that need to read the vault at boot. Same wire format across all four languages; every binding passes the same conformance corpus.
📖 Full documentation: https://muthuishere.github.io/vsync/
Install
bun install -g @muthuishere/vsync # or: npm install -g @muthuishere/vsync
vsync --helpRequires Bun ≥ 1.2.21 on PATH (Bun.secrets lives there). Don't want a global install? bunx @muthuishere/vsync <subcommand> works too.
Two-minute quickstart
# One-time per machine — name your S3 backend
vsync profile add hetzner-personal # endpoint, bucket, IAM key
# Per repo + env
vsync init dev --profile=hetzner-personal # generates per-(repo, env) key + config
echo "DB_URL=postgres://..." > infra/vault/dev/.env.dev
vsync push dev # encrypt + upload to S3
# Onboard a teammate
vsync export dev # → ./<repo>-dev.share + passphrase
# Send the file + passphrase on different channels.
# Teammate side
vsync import dev ./<repo>-dev.share # config + key into keychain
vsync pull dev && vsync use dev # ./.env → infra/vault/dev/.env.dev
# Production app — mint a bootstrap token
vsync runtime-token --env=prod # → vsync-cfg-v1:... (paste into your platform's secret store)Full quickstart → · Command reference → · Architecture →
Runtime libraries
Read the vault inside your app — two env vars, one S3 round trip at boot, in-memory getEnv / getAsContent accessor with a deterministic fallback chain:
| Language | Package | Install |
|---|---|---|
| Python (reference impl) | vsync-s3-client | pip install vsync-s3-client |
| TypeScript / Node | @muthuishere/vsync-s3-client | npm install @muthuishere/vsync-s3-client |
| Go | github.com/muthuishere/vsync/libraries/go | go get …@v0.11.0 |
| Java | io.github.muthuishere:vsync-s3-client | Maven coordinate, JDK 17+ |
# Python — same shape in every language, idiomatic naming
import vsync_s3_client
with vsync_s3_client.open() as v:
db_url = v.get_env("DATABASE_URL") # str | None
has_key = v.has_env("STRIPE_KEY") # bool
src = v.env_source("DATABASE_URL") # "vault" | "env" | "default" | "missing"
sa_bytes = v.get_as_content("gcp-sa.json") # bytes — operator writes tempfile if neededLibraries documentation → · Examples gallery →
Fanout to where prod runs
vsync sync <env> <target> pushes the env's keys to:
gh— GitHub Actions secretsgcp— GCP Secret Manageraws— AWS Secrets Managerazure— Azure Key Vaultvault— HashiCorp Vault KV v2
One edit in the vault; every place that needs the secret stays in step. Sync targets →
What's in the box
- CLI at
bin/vsync.ts(Bun-native, ships as@muthuishere/vsyncon npm) - Runtime libraries at
libraries/{python,typescript,go,java}/— atv0.11.0(catch up to CLI's0.14.0in next release), all behaviorally identical - Conformance corpus at
docs/specs/test-vectors/— every library passes the same 31 vectors - Specs at
docs/specs/— versioned design notes (v0.2 envelope, v0.4 audit log, v0.10 CLI verbs, v0.11 test vectors, v0.12 runtime lib API, v0.13 profile system, v0.16 git-only identity +.vsyncpin, v0.17 pull-safety ledger) - Site at
docs/— VitePress, auto-deployed to https://muthuishere.github.io/vsync/
Security model — read the docs, not the marketing
- AES-256-GCM bundles. Per-machine AES key in the OS keychain. The bucket alone is useless; the key alone is useless. Both halves required.
- The two-input runtime bootstrap (
VSYNC_CONFIG+VSYNC_PASSPHRASE) is separation-of-leak-channels, not MFA. Full process compromise leaks both. Trust ceiling, verbatim → - Pre-1.0 (
0.x.x). Wire format may break between minors. No backwards-compat shims. Plan for at least 12 months at0.xbefore1.0— see versioning.
Versioning
Current CLI release: 0.14.0. Runtime libraries are at 0.11.0 and will catch up to 0.14.0 when the v0.15 lib redesign lands.
0.14.0vsync profiles(plural) now works as an alias forvsync profile, and barevsync profile/vsync profilesdefaults tolist(the common "show me my profiles" intent).0.13.0vsync docsis now a CLI capability guide ("what vsync does + how"), not a committable repo file. New offline runbooks:vsync docs aws | gcp | custom(create the S3 bucket → profile → init/push/pull/use/sync) andvsync docs agent(intent→command map for AI assistants);vsync docs listindexes them. Newvsync --version/-v. Onboarding handbook added to the docs site. Packaging fix: dropped a staleskillsentry from the npmfileslist sobun install -gno longer warns.0.12.0Breaking. Git is now a precondition — every subcommand errors outside a git tree.SECRETS_SYNC_REPOis gone (use--repo=<name>). New committed.vsyncidentity pin file (v0.16).vsync pullrefuses on unsynced local edits;vsync pushrefuses when remote has advanced —--backup/--forceescape hatches (v0.17). New typed errors render without stack traces.vsync statusadds a prefix block showing identity source.0.11.0Profile system replaces single defaults. Newvsync runtime-token,vsync rotate-passphrase,vsync statussubcommands. Four runtime libraries: Python (reference impl), TypeScript, Go, Java. Detailed--helpon every subcommand. Upgrade notes →0.8.0Multi-target sync —aws,azure,vaultjoinedgh,gcp.docs/specs/v0.8-multi-target-sync.md0.7.0Explicitvsync syncparser — no implicit policy.docs/specs/v0.7-explicit-sync-parser.md0.4.0Append-only audit log on the bucket.docs/specs/v0.4-audit-log.md0.2.0Original spec — RQE1 envelope + RQEM0001 manifest seal.docs/specs/v0.2-secret-lib.md
License
MIT. © Muthukumaran Navaneethakrishnan.
