Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Sklaventreiber is a Ruby gem that manages your worker when you're using Navvy and Sequel with Heroku. It hires one if there are jobs to be done and fires him if not.
Slaventreiber can either be used as a Sequel plugin or as a worker process.
Sklaventreiber, der (eng.: slave driver): German expression for a overly demanding boss that ignores his employees' health and happiness.
Sklaventreiber is NOT usable as of now, because it still requires a custom version of Navvy. This is going to change.
Add this line to your application's Gemfile:
gem 'sklaventreiber'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sklaventreiber
Add these lines to your Rakefile:
require "sklaventreiber"
require "sklaventreiber/tasks"
Sklaventreiber expects a few environment variables to be set.
# either this
HEROKU_API_KEY=< your heroku api key >
# or this
HEROKU_USERNAME=< your heroku username >
HEROKU_PASSWORD=< your heroku password >
# but always this
HEROKU_APP=< your heroku app name >
You can use either the API key or the username/password combination. Sklaventreiber will try to connect via the API key and fall back to username/password if it's not possible.
Sklaventreiber logs to standard output via puts
. If you don't like that you can turn it off.
SKLAVENTREIBER_LOG="false"
There is nothing to be done other than adding Sklaventreiber to your Gemfile. It hooks automatically into Navvy::Job
. Just make sure you require it after Navvy and Sequel.
require "sequel"
require "navvy"
require "navvy/job/sequelhook"
require "sklaventreiber"
Execute the following to start Sklaventreiber as a worker:
rake sklaventreiber:work
Sklaventreiber checks every 10 seconds if it needs to scale your Heroku worker. For a custom interval set
SKLAVENTREIBER_SLEEPTIME=< your custom interval in seconds >
For development you should also set these environment variables:
SKLAVENTREIBER_MOCK=< if heroku-api should run in mock mode >
DATABASE_URL=< database://user:password@host:port/database_name >
Then:
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)I tried to start all three necessary processes (Navvy, Sklaventreiber, test code) using foreman
. Because my test code contained a few sleep
statements to wait for Navvy and Sklaventreiber, foreman halted all three processes instead of only the test code. I honestly have no idea why. Testing the worker was then done using three different terminals for the processes and looking if they behave as expected.
FAQs
Unknown package
We found that sklaventreiber 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.