{"id":18369232,"url":"https://github.com/envkey/envkeygo","last_synced_at":"2025-04-06T17:32:01.350Z","repository":{"id":57495535,"uuid":"104012245","full_name":"envkey/envkeygo","owner":"envkey","description":"EnvKey's official Go client library","archived":false,"fork":false,"pushed_at":"2023-12-13T06:36:28.000Z","size":163,"stargazers_count":36,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T04:03:26.296Z","etag":null,"topics":["configuration","configuration-management","devops","devops-tools","encryption","environment-variables","go","golang","secret-management","secrets","security","security-tools"],"latest_commit_sha":null,"homepage":"https://www.envkey.com","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/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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-19T01:49:37.000Z","updated_at":"2023-10-19T10:21:08.000Z","dependencies_parsed_at":"2023-12-20T13:24:54.403Z","dependency_job_id":"84ac1241-60ce-4040-9745-0f8766a3f31c","html_url":"https://github.com/envkey/envkeygo","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.46341463414634143","last_synced_commit":"35d3076fa7ebf1919dcfcb35f2844d0ae699b262"},"previous_names":["envkey/envkey-go"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fenvkeygo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fenvkeygo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fenvkeygo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envkey%2Fenvkeygo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/envkey","download_url":"https://codeload.github.com/envkey/envkeygo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247522473,"owners_count":20952557,"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":["configuration","configuration-management","devops","devops-tools","encryption","environment-variables","go","golang","secret-management","secrets","security","security-tools"],"created_at":"2024-11-05T23:28:49.619Z","updated_at":"2025-04-06T17:32:00.561Z","avatar_url":"https://github.com/envkey.png","language":"Go","readme":"# envkeygo\n\nIntegrate [EnvKey](https://www.envkey.com) with your Go projects to keep api keys, credentials, and other configuration securely and automatically in sync for developers and servers.\n\nThis repo is mirrored in two locations:\n\n- [A subdirectory of EnvKey's v2 monorepo](https://github.com/envkey/envkey/tree/main/public/sdks/languages-and-frameworks/go/envkeygo).\n- [envkeygo module repo](https://github.com/envkey/envkeygo)\n\n## Installation\n\n```bash\ngo get github.com/envkey/envkeygo/v2\n```\n\n## Usage\n\nIf you haven't already, download and install EnvKey from our [website](https://envkey.com), then create a new org. Next, follow the ~1 minute [integration quickstart](https://docs-v2.envkey.com/docs/integration-quickstart) to init an app with a `.envkey` file (for connecting development) or generate a server `ENVKEY` (for connecting a server).\n\nNow load your EnvKey configuration in `main.go`:\n\n```go\n// main.go\nimport (\n  \"os\"\n  _ \"github.com/envkey/envkeygo/v2\"\n)\n\n// assuming you have GITHUB_TOKEN set in EnvKey\ntoken := os.Getenv(\"GITHUB_TOKEN\") // this will stay in sync\n```\n\n### Overriding Vars\n\nenvkeygo will not overwrite existing environment variables or additional variables set in the `.env` file you loaded your `ENVKEY` from. This can be convenient for customizing environments that otherwise share the same configuration. You can also use [branches or local overrides](https://docs-v2.envkey.com/docs/branches-and-local-overrides) for this purpose.\n\n### Working Offline\n\nenvkeygo can cache your encrypted config in development so that you can still use it while offline. Your config will still be available (though possibly not up-to-date) the next time you lose your internet connection. If you do have a connection available, envkeygo will always load the latest config. Your cached encrypted config is stored in `$HOME/.envkey/cache`\n\nTo turn on caching, set a `ENVKEY_SHOULD_CACHE=1` environment variable when running your program (_not_ in your EnvKey config):\n\n```bash\nENVKEY_SHOULD_CACHE=1 ./your-program\n```\n\n## envkey-source\n\nUsing a language-specific library like this one is the easiest and fastest method of integrating with EnvKey. However, the [envkey-source](https://docs-v2.envkey.com/docs/envkey-source) executable, which this library wraps, provides additional options and functionality when used directly from the command line. Features such as automatic reloads and change hooks are not available in EnvKey's language-specific SDKs. If you're comfortable with the command line, need additional flexibility, or want to maximize EnvKey's potential, consider using envkey-source directly.\n\n## x509 error / ca-certificates\n\nOn a stripped down OS like Alpine Linux, you may get an `x509: certificate signed by unknown authority` error when attempting to load your config. You can fix it by ensuring that the `ca-certificates` dependency is installed. On Alpine you'll want to run:\n\n```\napk add --no-cache ca-certificates\n```\n\n## Further Reading\n\nFor more on EnvKey in general:\n\nRead the [docs](https://docs-v2.envkey.com).\n\nRead the [integration quickstart](https://docs-v2.envkey.com/docs/integration-quickstart.html).\n\nRead the [security and cryptography overview](https://docs-v2.envkey.com/docs/security).\n\n## Need help? Have questions, feedback, or ideas?\n\nPost an [issue](https://github.com/envkey/envkey/issues), start a [discussion](https://github.com/envkey/envkey/dicussions), or email us: [support@envkey.com](mailto:support@envkey.com).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvkey%2Fenvkeygo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenvkey%2Fenvkeygo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvkey%2Fenvkeygo/lists"}