{"id":42454447,"url":"https://github.com/setkyar/envsync","last_synced_at":"2026-01-28T08:54:50.697Z","repository":{"id":209132211,"uuid":"723311980","full_name":"setkyar/envsync","owner":"setkyar","description":"Sync your environment files securely with public/private key encryption via AWS S3.","archived":false,"fork":false,"pushed_at":"2023-11-25T15:18:10.000Z","size":567,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T14:25:02.959Z","etag":null,"topics":["aws","aws-s3","environment","envsync","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setkyar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-25T09:07:48.000Z","updated_at":"2024-07-12T06:26:53.000Z","dependencies_parsed_at":"2023-11-25T10:22:47.014Z","dependency_job_id":"c7194934-f9fb-4772-9d83-806d5c04152c","html_url":"https://github.com/setkyar/envsync","commit_stats":null,"previous_names":["setkyar/envsync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/setkyar/envsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setkyar%2Fenvsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setkyar%2Fenvsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setkyar%2Fenvsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setkyar%2Fenvsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setkyar","download_url":"https://codeload.github.com/setkyar/envsync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setkyar%2Fenvsync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28842986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-s3","environment","envsync","golang"],"created_at":"2026-01-28T08:54:50.211Z","updated_at":"2026-01-28T08:54:50.692Z","avatar_url":"https://github.com/setkyar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envsync\n\nSync your environment files securely with public/private key encryption via AWS S3.\n\n## Overview\n\n`envsync` is a CLI tool designed to securely synchronize your `.env` files across different machines. It uses public/private key encryption for security and AWS S3 for storage.\n\n![Diagram](diagram.png)\n\n## Commands\n\n- `init`: Initialize your `envsync`. This command sets up public/private keys and configures AWS S3.\n- `push`: Push your `.env` file from the current directory to the S3 bucket.\n- `pull`: Pull your `.env` file from the S3 bucket to the current directory.\n\n## Getting Started\n\n### Prerequisites\n\n1. **S3 Bucket**: Set up an S3 bucket, e.g., `your-s3-bucket`.\n2. **IAM User**: Create an IAM user in AWS and attach the following policy for necessary permissions:\n\n   ```json\n   {\n       \"Version\": \"2012-10-17\",\n       \"Statement\": [\n           {\n               \"Sid\": \"VisualEditor0\",\n               \"Effect\": \"Allow\",\n               \"Action\": [\n                   \"s3:PutObject\",\n                   \"s3:PutObjectAcl\",\n                   \"s3:GetObject\"\n               ],\n               \"Resource\": \"arn:aws:s3:::your-s3-bucket/*\"\n           }\n       ]\n   }\n   ```\n\n3. **AWS Credentials**: Note down the IAM user’s `access_key_id` and `secret_access_key`.\n\n### Initialization\n\nRun `envsync init` and input the AWS configuration when prompted. This will set up the necessary keys and configuration for `envsync`.\n\n### Usage\n\n**Pushing `.env` File**:\n\nTo push the `.env` file from your current directory to S3, run:\n\n```sh\nenvsync push --name=your_project_name\n```\n\nThis command encrypts your `.env` file and stores it at `your-s3-bucket/your_project_name/.env` in S3.\n\n**Pulling `.env` File**:\n\nTo pull the `.env` file from S3, run:\n\n```sh\nenvsync pull --name=your_project_name\n```\n\n### Collaborating with Team Members\n\nFor team collaboration, follow these steps:\n\n1. **IAM Permissions**: \nEnsure team members have the necessary IAM permissions (refer to the policy mentioned above).\n\n2. **Key Sharing**: \nShare the public and private keys located in `$HOME/.envsync/` with your team or you create your own `public/private` key pair and configure to use via your own `config.yaml` file and share with the team. You can create your own key pair using the following command...\n```\nssh-keygen -t rsa -b 2048 -f private_key.pem \u0026\u0026 mv private_key.pem.pub public_key.pem \u0026\u0026 ssh-keygen -p -m PEM -f private_key.pem\n```\n\n3. **Team Setup**: Get `private_key.pem` and `public_key.pem` and configure your `config.yaml` like the following.\n\n```yaml\naws:\n  region: ap-southeast-1\n  s3_bucket: your-s3-bucket\n  access_key_id: your-aws-access-key\n  secret_access_key: your-aws-secret-key\nenvsync:\n  private_key: ~/.envsync/private_key.pem # Replace with private_key path\n  public_key: ~/.envsync/public_key.pem   # Replace with public_key path\n```\n\nAnd run pull or pull like the following\n```sh\nenvsync pull --name=your_project_name --config=config.yaml\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetkyar%2Fenvsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetkyar%2Fenvsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetkyar%2Fenvsync/lists"}