{"id":18369236,"url":"https://github.com/envkey/go-envkeyfetch","last_synced_at":"2025-07-30T04:08:55.116Z","repository":{"id":57561823,"uuid":"329355112","full_name":"envkey/go-envkeyfetch","owner":"envkey","description":"MIRROR for envkey-fetch utility v2 and above","archived":false,"fork":false,"pushed_at":"2021-05-13T19:30:49.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T21:17:00.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.envkey.com","language":"Go","has_issues":false,"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/envkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-13T15:45:10.000Z","updated_at":"2021-01-13T23:35:45.000Z","dependencies_parsed_at":"2022-09-10T08:11:51.829Z","dependency_job_id":null,"html_url":"https://github.com/envkey/go-envkeyfetch","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/envkey/go-envkeyfetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fgo-envkeyfetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fgo-envkeyfetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fgo-envkeyfetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fgo-envkeyfetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/envkey","download_url":"https://codeload.github.com/envkey/go-envkeyfetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fgo-envkeyfetch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267808146,"owners_count":24147382,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-05T23:28:50.519Z","updated_at":"2025-07-30T04:08:55.077Z","avatar_url":"https://github.com/envkey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envkey-fetch\n\nThis library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.\n\nIt is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.\n\nIf you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.\n\n## Installation\n\nenvkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.\n\n**Install via bash:**\n\n```bash\ncurl \"https://raw.githubusercontent.com/org2321/reponame/master/public/sdks/envkey-fetch/install.sh?$(date +%s)\" | bash\n```\n\n**Install manually:**\n\nFind the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).\n\n**Install from source:**\n\nWith Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.\n\n**Cross-compile from source:**\n\nTo compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.\n\nThen to cross-compile, run:\n\n`goreleaser`\n\nBinaries for each platform will be output to the `dist` folder.\n\n## Usage\n\n```bash\nenvkey-fetch YOUR-ENVKEY [flags]\n```\n\nThis will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.\n\n### Example json output\n\n```json\n{\"TEST\":\"it\",\"TEST_2\":\"works!\"}\n```\n\n### Example error output\n\n```text\nerror: ENVKEY invalid\n```\n\n### Flags\n\n```text\n    --cache                   cache encrypted config as a local backup (default is false)\n    --cache-dir string        cache directory (default is $HOME/.envkey/cache)\n    --client-name string      calling client library name (default is none)\n    --client-version string   calling client library version (default is none)\n-h, --help                    help for envkey-fetch\n    --retries uint8           number of times to retry requests on failure (default 3)\n    --retryBackoff float      retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)\n    --timeout float           timeout in seconds for http requests (default 10)\n    --verbose                 print verbose output (default is false)\n-v, --version                 prints the version\n```\n\n## Further Reading\n\nFor more on EnvKey in general:\n\nRead the [docs](https://docs.envkey.com).\n\nRead the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).\n\nRead the [security and cryptography overview](https://security.envkey.com).\n\n## Need help? Have questions, feedback, or ideas?\n\nPost an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvkey%2Fgo-envkeyfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenvkey%2Fgo-envkeyfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvkey%2Fgo-envkeyfetch/lists"}