secretsync
v1.0.2
Published
A CLI tool to securely sync .env files across machines using AWS S3.
Readme
SecretSync
Securely sync and encrypt .env files across machines using AWS S3.
🚀 Features
- 🔐 AES Encryption: Encrypts
.envfiles before uploading. - ☁️ AWS S3 Storage: Securely store
.envfiles in an S3 bucket. - 🔄 Seamless Syncing: Fetch and decrypt
.envfiles on any authorized machine. - 📂 Multiple Projects: Supports multiple projects with
project.ssc.
📦 Installation
npm install -g secretsync🎯 Usage
1️⃣ Initialize SecretSync (Authorize Machine)
secretsync initCreates authentication files for secure machine access.
2️⃣ Set Up a Project
secretsync set-project <project-name>Creates a project.ssc file for managing project settings.
3️⃣ Encrypt & Upload .env File
secretsync encrypt .envEncrypts .env and uploads it to S3 under the project folder.
4️⃣ Decrypt & Download .env File
secretsync decryptDownloads and decrypts .env from S3.
5️⃣ List All Stored Projects
secretsync listDisplays all stored .env files in S3.
⚙️ Configuration
SecretSync uses AWS credentials stored securely on your machine. Ensure your AWS IAM user has S3 permissions.
🛠️ Development
Clone the repo and install dependencies:
git clone https://github.com/yourusername/secretsync.git
cd secretsync
npm installRun the CLI locally:
node index.js --helpFor global testing:
npm link
secretsync --help