Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Versitle configuration management. Pull data from ENV or config files. Simplest use case:
Qonf works well with or without Rails. If using Rails, Qonf will assume config files are in Rails.root/config
directory. Otherwise, you'll need to set the root yourself:
Qonf.configure do
self.base_dir = "./config"
end
Qonf also allows you to use environment based keys, these will come preconfigured for Rails or could be set by other ruby applications:
Qonf.configure do
self.env = "staging" # hash under this key will be merged into top-level hash
self.environments = %w{test staging production} # these will be removed from hash if they are top-level keys
end
So, if you config is as follows:
# config/names.json
{
"test": {
"name": "Test data"
},
"staging": {
"name": "Bob Jones"
}
}
Qonf.get(:names,:name) # Bob Jones
Config files can be either json or yml. They are addressed by name and must live in the base_dir
path (for Rails, this is Rails.root/config
)
# config/qonf.json
{
"host": "http://google.com"
}
Qonf.host # "http://google.com"
YAML can also be used:
# config/redis.yml
development:
host: localhost
Qonf.get(:redis,:host) # "localhost"
Add this line to your application's Gemfile:
gem 'qonf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qonf
Tests are maintained by RSpec. To run test cases:
bundle exec rake test
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that qonf demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.