All Projects → mikamai → Dotenv_sekrets

mikamai / Dotenv_sekrets

Licence: mit
Seamlessly encrypt/decrypt/edit your rails Dotenv files with the help of the Sekrets gem

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Dotenv sekrets

Envied
Ensures presence and type of your app's ENV-variables (mirror)
Stars: ✭ 327 (+1208%)
Mutual labels:  environment-variables, rails
Senv
Friends don't let friends leak secrets on their terminal window 🙈
Stars: ✭ 71 (+184%)
Mutual labels:  environment-variables, security-tools
Hellraiser
Vulnerability scanner using Nmap for scanning and correlating found CPEs with CVEs.
Stars: ✭ 413 (+1552%)
Mutual labels:  rails, security-tools
Werdlists
⌨️ Wordlists, Dictionaries and Other Data Sets for Writing Software Security Test Cases
Stars: ✭ 216 (+764%)
Mutual labels:  environment-variables, security-tools
Brakeman
A static analysis security vulnerability scanner for Ruby on Rails applications
Stars: ✭ 6,281 (+25024%)
Mutual labels:  rails, security-tools
Subdomainizer
A tool to find subdomains and interesting things hidden inside, external Javascript files of page, folder, and Github.
Stars: ✭ 915 (+3560%)
Mutual labels:  security-tools
Environment
Type-safe environment variables in Swift.
Stars: ✭ 24 (-4%)
Mutual labels:  environment-variables
Parameterhandler
Composer script handling your ignored parameter file
Stars: ✭ 906 (+3524%)
Mutual labels:  environment-variables
Libraries.io
📚 The Open Source Discovery Service
Stars: ✭ 903 (+3512%)
Mutual labels:  rails
Active decorator
ORM agnostic truly Object-Oriented view helper for Rails 4, 5, and 6
Stars: ✭ 928 (+3612%)
Mutual labels:  rails
Rails5 Api Starter
RESTful API Starter Kit based on Rails 5
Stars: ✭ 24 (-4%)
Mutual labels:  rails
Partially useful
📑 👀 Helps identifying partials in verbose HTML source code.
Stars: ✭ 23 (-8%)
Mutual labels:  rails
Rails Api And Angularjs
Integration between rails and angularjs which includes rspec tests.
Stars: ✭ 22 (-12%)
Mutual labels:  rails
Milog
Milog 是一基于 Ruby on Rails 的个人博客网站
Stars: ✭ 24 (-4%)
Mutual labels:  rails
Security Checklist
A checklist for staying safe on the internet
Stars: ✭ 908 (+3532%)
Mutual labels:  security-tools
Rails Routes
Enable config/routes/*.rb on your Rails application.
Stars: ✭ 24 (-4%)
Mutual labels:  rails
Redis Rails
Redis stores for Ruby on Rails
Stars: ✭ 904 (+3516%)
Mutual labels:  rails
Csp
The Cyber Security Platform MeliCERTes is part of the European Strategy for Cyber Security. MeliCERTes is a network for establishing confidence and trust among the national Computer Security Incident Response Teams (CSIRTs) of the Member States and for promoting swift and effective operational cooperation.
Stars: ✭ 23 (-8%)
Mutual labels:  security-tools
Best Practices Badge
🏆Core Infrastructure Initiative Best Practices Badge
Stars: ✭ 928 (+3612%)
Mutual labels:  rails
Ylva
Command line password manager for Unix-like operating systems
Stars: ✭ 23 (-8%)
Mutual labels:  security-tools

Build Status

Code Climate

DotenvSekrets

This gem makes the dotenv gem cooperate nicely with the sekrets gem in order to allow encrypted .env files in your Rails application.

Rationale

Config 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.

When 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.

You can rely on regular dotenv files to locally override the encrypted values inside .env.enc files or similar.

Installation

Add this line to your application's Gemfile:

gem 'dotenv_sekrets'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dotenv_sekrets

Usage

Please read dotenv and sekrets READMEs. For a quick setup you may simply want to:

  • create the .sekrets.key file in your rails root and put your secret key code there
  • create the .env.enc file and edit the content with the shell command sekrets edit .env.enc
  • update .gitignore to ignore the .sekrets.key file
  • cat .env.encand see the content is encrypted
  • commit .env.enc into your SCM
  • start rails and see the ENV variable is populated with the data you put in .env.enc

Usage with Travis

From the sekrets gem documentation the gem will look for the key in the environment under the env var SEKRETS_KEY in case there is no sekrets.key file. So to use the gem with travis it is sufficient to add this environment variable

SEKRETS_KEY = <your-sekret-key>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mikamai/dotenv_sekrets.

License

The gem is available as open source under the terms of the MIT License.

rubygems.org.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].