
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Provides a way to manage environment specific configuration settings. It will use the defaults for any environment and override any values you specify for an environment.
Example config file:
defaults:
site_url: http://localhost:3000
host_name: example.com
mail_from: noreply@example.com
site_name: example
admin_email: admin@example.com
production:
site_url: http://example.com
Includes Sekrets integration. See https://github.com/ahoward/sekrets for more information.
The format of the sekrets file is the same as the regular file.
class MyConfig < ConfigReader
configure do |config|
config.environment = Rails.env # (set this however you access the env in your app)
config.config_file = "config/my_config.yml"
config.sekrets_file = "config/my_config.yml.enc" # (default nil)
config.ignore_missing_keys = true # (default false, raises KeyError)
end
end
MyConfig.mail_from #=> noreply@example.com
MyConfig[:mail_from] #=> noreply@example.com
MyConfig["mail_from"] #=> noreply@example.com
Copyright (c) Michael Moen. See LICENSE for details.
FAQs
Unknown package
We found that config_reader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.