{"id":21919390,"url":"https://github.com/mikamai/dotenv_sekrets","last_synced_at":"2025-07-12T01:04:17.687Z","repository":{"id":62557430,"uuid":"92302268","full_name":"mikamai/dotenv_sekrets","owner":"mikamai","description":"Seamlessly encrypt/decrypt/edit your rails Dotenv files with the help of the Sekrets gem","archived":false,"fork":false,"pushed_at":"2017-12-13T11:46:12.000Z","size":9,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-03T04:21:42.969Z","etag":null,"topics":["environment-variables","rails","ruby","security-tools"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/mikamai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-24T14:35:15.000Z","updated_at":"2021-09-19T17:51:55.000Z","dependencies_parsed_at":"2022-11-03T06:30:32.532Z","dependency_job_id":null,"html_url":"https://github.com/mikamai/dotenv_sekrets","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mikamai/dotenv_sekrets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fdotenv_sekrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fdotenv_sekrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fdotenv_sekrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fdotenv_sekrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikamai","download_url":"https://codeload.github.com/mikamai/dotenv_sekrets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fdotenv_sekrets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922787,"owners_count":23683692,"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":["environment-variables","rails","ruby","security-tools"],"created_at":"2024-11-28T20:06:58.511Z","updated_at":"2025-07-12T01:04:17.616Z","avatar_url":"https://github.com/mikamai.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mikamai/dotenv_sekrets.svg?branch=master)](https://travis-ci.org/mikamai/dotenv_sekrets)\n\n[![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/mikamai/dotenv_sekrets)\n\n# DotenvSekrets\n\nThis gem makes the `dotenv` gem cooperate nicely with the `sekrets` gem in order to allow encrypted `.env` files in your Rails application.\n\n\n## Rationale\n\nConfig files with private tokens, passwords and secrets should not be committed in source-control for security reasons, unless they're encrypted: here it comes DotenvSekrets to the rescue.\n\nWhen everything is set and done you will need to know/share only the secret key, not the whole configuration which can be safely stored and versioned in your SCM tool.\n\nYou can rely on regular `dotenv` files to locally override the encrypted values inside `.env.enc` files or similar.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dotenv_sekrets'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dotenv_sekrets\n\n## Usage\n\nPlease read [dotenv](https://github.com/bkeepers/dotenv) and [sekrets](https://github.com/ahoward/sekrets) READMEs.\nFor a quick setup you may simply want to:\n* create the `.sekrets.key` file in your rails root and put your secret key code there\n* create the `.env.enc` file and edit the content with the shell command `sekrets edit .env.enc`\n* update `.gitignore` to ignore the `.sekrets.key` file\n* `cat .env.enc`and see the content is encrypted\n* commit `.env.enc` into your SCM\n* start rails and see the `ENV` variable is populated with the data you put in `.env.enc`\n\n### Usage with Travis\nFrom the [sekrets gem documentation](https://github.com/ahoward/sekrets#key-lookup) the gem will look for the key in the environment under the env var SEKRETS_KEY in case there is no `sekrets.key` file.\nSo to use the gem with travis it is sufficient to add this environment variable\n```\nSEKRETS_KEY = \u003cyour-sekret-key\u003e\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mikamai/dotenv_sekrets.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n\n[rubygems.org](https://github.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikamai%2Fdotenv_sekrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikamai%2Fdotenv_sekrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikamai%2Fdotenv_sekrets/lists"}