{"id":21824676,"url":"https://github.com/shopify/ejson2env","last_synced_at":"2025-05-16T08:05:55.736Z","repository":{"id":32934805,"uuid":"146931217","full_name":"Shopify/ejson2env","owner":"Shopify","description":"Decrypt EJSON secrets and export them as environment variables.","archived":false,"fork":false,"pushed_at":"2025-05-13T22:09:58.000Z","size":270,"stargazers_count":79,"open_issues_count":6,"forks_count":16,"subscribers_count":374,"default_branch":"main","last_synced_at":"2025-05-15T19:49:35.429Z","etag":null,"topics":["containers","ejson","shell-scripting"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shopify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-31T18:51:18.000Z","updated_at":"2025-05-13T21:32:11.000Z","dependencies_parsed_at":"2024-05-08T01:37:16.598Z","dependency_job_id":"50d31142-d81e-4861-9f8a-950130c71272","html_url":"https://github.com/Shopify/ejson2env","commit_stats":{"total_commits":59,"total_committers":15,"mean_commits":3.933333333333333,"dds":0.711864406779661,"last_synced_commit":"599588fc9e99234169c5301867ee13011606fb47"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fejson2env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fejson2env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fejson2env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fejson2env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","download_url":"https://codeload.github.com/Shopify/ejson2env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["containers","ejson","shell-scripting"],"created_at":"2024-11-27T17:59:32.537Z","updated_at":"2025-05-16T08:05:50.726Z","avatar_url":"https://github.com/Shopify.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/Shopify/ejson2env.svg?branch=master)](https://travis-ci.org/Shopify/ejson2env)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Shopify/ejson2env)](https://goreportcard.com/report/github.com/Shopify/ejson2env)\n\n# ejson2env\n\n`ejson2env` is a tool to simplify storing secrets that should be accessible in the shell environment in your git repo. `ejson2env` is based on the [ejson library](https://github.com/Shopify/ejson) and extends the `ejson` file format.\n\n`ejson2env` exports all of the values in the `environment` object in the `ejson` file to the shell environment.\n\nFor example, with the below `ejson` file:\n\n```json\n{\n    \"_public_key\": \"\u003cpublic key here\u003e\",\n    \"environment\": {\n        \"SECRET_SHELL_VARIABLE\": \"\u003cencrypted data\u003e\"\n    }\n}\n```\n\nRunning:\n\n```shell\n$ ejson2env test.ejson\n```\n\nWould result in the following output:\n\n```\nexport SECRET_SHELL_VARIABLE=\u003cdecrypted data\u003e\n```\n\nYou can then have your shell evaluate this output:\n\n```shell\n$ eval $(ejson2env test.ejson)\n```\n\n## Using ejson2env\n\n`ejson2env`'s usage information is described in it's included `--help` flag.\n\n## Installing ejson2env\n\n`ejson2env` is available through a number of different routes and package managers. If you plan on modifying `ejson2env`, it is suggested that you install via `go get`.\n\n### Go\n\n`ejson2env` can be installed using the regular `go install` tool:\n\n```shell\n$ go install github.com/Shopify/ejson2env/v2/cmd/ejson2env@latest\n```\n\nYou can then find the compiled binary in `$GOPATH/bin`\n\n### Debian Package\n\nYou can download the latest version of the Debian package from [the releases page](https://github.com/Shopify/ejson2env/releases).\n\nInstall the downloaded package by calling:\n\n```shell\n$ dpkg -i ejson2env_1.0.3_amd64.deb\n```\n\n### RubyGems\n\nYou can install `ejson2env` using Ruby's Gem tool:\n\n```shell\n$ gem install ejson2env\n```\n\n### Homebrew\n\nProvided your install of Homebrew is configured to pull from [Shopify's Homebrew repo](https://github.com/shopify/homebrew-shopify), you can install `ejson2env` by calling:\n\n```shell\n$ brew install ejson2env\n```\n\n## Contributing\n\nPlease review the [Contributing document](CONTRIBUTING.md) if you are\ninterested in helping improve ejson2env!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Fejson2env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopify%2Fejson2env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Fejson2env/lists"}