New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rails_secret_token_env

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails_secret_token_env

  • 0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Manage config.secret_token with environment variable

Put this in your rails app's Gemfile:

gem 'rails_secret_token_env'

This will set your app's config.secret_token to the SECRET_TOKEN environment variable. You should delete the default config/initializer/secret_token.rb file.

For rails 4, it also sets app.config.secret_key_base

In production mode, it will log an error if the variable is missing.

(In development mode, it will default to 'xxxxxx' if not found)

See also: gem 'dotenv' and 'dotenv-rails'

FAQs

Package last updated on 05 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc