{"id":28199605,"url":"https://github.com/mrtc0/genv","last_synced_at":"2025-05-16T19:12:36.030Z","repository":{"id":292064101,"uuid":"978845561","full_name":"mrtc0/genv","owner":"mrtc0","description":"genv is a tool for generating dotenv files by retrieving values from third-party services like AWS Secrets Manager","archived":false,"fork":false,"pushed_at":"2025-05-08T00:19:26.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T01:25:32.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mrtc0.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-06T15:40:58.000Z","updated_at":"2025-05-08T00:19:08.000Z","dependencies_parsed_at":"2025-05-08T01:25:42.383Z","dependency_job_id":"3586dc53-2b55-4421-81e3-2c9f9a827dfc","html_url":"https://github.com/mrtc0/genv","commit_stats":null,"previous_names":["mrtc0/genv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fgenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fgenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fgenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fgenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtc0","download_url":"https://codeload.github.com/mrtc0/genv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592372,"owners_count":22097014,"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":[],"created_at":"2025-05-16T19:12:35.036Z","updated_at":"2025-05-16T19:12:36.021Z","avatar_url":"https://github.com/mrtc0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# genv\n\ngenv is a tool for generating dotenv files by retrieving values from third-party services like AWS Secrets Manager\n\n# Install\n\n```bash\n$ go install github.com/mrtc0/genv/cmd/genv@latest\n```\n\n# Supported Secrets Providers\n\n- [x] AWS Secrets Manager\n\n# Guide\n\n## 1. Create a genv setting file\n\nNow, create a setting file that describes the third-party secrets provider and the definition of the environment variables to be generated.\ngenv reads a file named `genv.yaml` by default.\n\n```yaml\nsecretProvider:\n  aws:\n    - id: example-account\n      service: SecretsManager\n      region: us-east-1\n      auth:\n        # If you want to use a specific AWS profile, specify it here\n        profile: default\n        # If you want to use a specific Shared Credentials File\n        # sharedCredentialsFiles: [\"/path/to/credentials\"]\n        # If you want to use a specific Shared Configuration File\n        # sharedConfigFiles: [\"/path/to/config\"]\n    - id: another-account\n      service: SecretsManager\n      region: us-west-2\n\nenvs:\n  APP_ENV:\n    value: \"development\"\n  API_KEY:\n    secretRef:\n      provider: example-account\n      key: apikey\n  DB_PASSWORD:\n    secretRef:\n      provider: another-account\n      key: db-credentials\n      property: \".password\"\n```\n\nIn this example, we define an environment variable `APP_ENV=development`, while the environment variables `API_KEY` and `DB_PASSWORD` are retrieved from AWS Secrets Manager.\nWhen the value stored in Secrets Manager is in JSON format, you can specify a property using the `property` field.\n\n## 2. Generate .env file\n\nRun the following command to generate a `.env` file.\n\n```bash\n$ genv gen\n\n$ cat .env\nAPP_ENV=development\nAPI_KEY=dummy-api-key\nDB_PASSWORD=dummy-db-password\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtc0%2Fgenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtc0%2Fgenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtc0%2Fgenv/lists"}