
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Extend Konf with required keys
It's very annoying when configuration files get out of sync, i.e.: you have a developer's config.yml
that is ignored, config.yml.sample
checked-in and another config.yml
on the production box. Problems arise when the developer, when adding a new key, forgets to update .sample
file or the production config and the code & configuration is out of sync.
This gem extends Konf to fail when there is a discrepancy between the required list of keys and the actual configuration file content.
Based on https://github.com/GBH/konf#usage
development:
name: Dev
email: dev@test.test
You can read the file like usual with Konf:
config = StrictKonf.new('configuration.yml', 'development', [:name, :email])
config.name # => Dev
It will fail when you have too much or too few keys in your configuration:
StrictKonf.new('configuration.yml', 'development', [:name]) # raises UnknownKeys error
StrictKonf.new('configuration.yml', 'development', [:name, :email, :role]) # raises NotFound error
It also supports nested hashes. We can pass nil
to start from the root of the hash:
StrictKonf.new('configuration.yml', nil, development: [:name, :email])
Add this line to your application's Gemfile:
gem 'strict_konf', github: 'wojtekmach/strict_konf'
And then execute:
$ bundle
FAQs
Unknown package
We found that strict_konf 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.