Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
PushmiPullyu is a Ruby application, running behind the firewall that protects our Swift environment.
Its primary job is to manage the flow of content from Jupiter into Swift for preservation.
PushmiPullyu supports Ruby 2.7
PushmiPullyu is hosted on rubygems.org. Therefore it can be installed via:
gem install pushmi_pullyu
Foreground mode:
pushmi_pullyu
Run as a daemon:
pushmi_pullyu start
PushmiPullyu is quite flexible in that many options can be specified at the command line.
Use pushmi_pullyu --help
to see all the command line options available.
Example:
Usage: pushmi_pullyu [options] [start|stop|restart|run]
Specific options:
-a, --minimum-age AGE Minimum amount of time an item must spend in the queue, in seconds.
-d, --debug Enable debug logging
-r, --rollbar-token TOKEN Enable error reporting to Rollbar
-C, --config PATH Path for YAML config file
-L, --logdir PATH Path for directory to store log files
-D, --piddir PATH Path for directory to store pid files
-W, --workdir PATH Path for directory where AIP creation work takes place in
-N, --process_name NAME Name of the application process
-m, --monitor Start monitor process for a deamon
-q, --queue NAME Name of the queue to read from
-i, --ingestion_prefix PREFIX Prefix for keys used in counting the number of failed ingestion attempts
-x, --ingestion_attempts NUMBER Max number of attempts to try ingesting an entity
-f, --first_failed_wait NUMBER Time in seconds to wait after first failed entity deposit. This time will double every failed attempt
Common options:
-v, --version Show version
-h, --help Show this message
You can also provide a configuration file which PushmiPullyu will use with the -C (or --config) flag:
pushmi_pullyu start -C /path/to/config.yml
By default, if no configuration file is specified, PushmiPullyu will look for a configuration file at config/pushmi_pullyu.yml.
Take the following sample configuration as inspiration or check out the DEFAULTS hash in the main module to see all available options.
Options passed on the command line will also override options specified in the config file.
PushmiPullyu responds to these signals:
INT
: Equivalent of sending Ctrl-C to PushmiPullyu. Will attempt to finish then exit.TERM
: Similar to INT
. PushmiPullyu will attempt to finish then exit.HUP
: Reopens log files as defined in logfile configuration options.After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
You'll need to set these two env vars otherwise you'll likely run into an error (Errno::ECONNRESET: Connection reset by peer):
export JUPITER_API_KEY=3eeb395e-63b7-11ea-bc55-0242ac130003
export JUPITER_USER=ditech@ualberta.ca
Pre-requisites:
Will need jupiter running locally and Openstack Swift running on port 8080.
docker-compose up -d
to start Swift (additional instructions in docker-compose.yml)To run the test suite:
bundle install
bundle exec rake
This will run both rspec and rubocop together.
To run rspec by itself:
bundle exec rspec
To run rubocop by itself:
bundle exec rubocop
To release a new version, bump the version file found here: lib/pushmi_pullyu/version.rb
Try to bump versions using semantic versioning.
Commit this change into main branch via a PR.
Once committed, you can do a release by running the following rake command:
rake release[remote]
This will cut a tag version, builds the gem, and pushes the gem up to Rubygems
Note: You may need permission to push a gem up to Rubygems! You will first need to create an account on rubygems.org. Once you have an account, bug @pgwillia (Tricia Jenkins), @lagoan (Omar Rodriguez-Arenas), or @henryzhang87 (Henry Zhang) to add you as an owner to pushmi_pullyu Rubygem. Once you are an owner you should be able to push new versions of pushmi_pullyu up to Rubygems
TODO: Fill me out
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that pushmi_pullyu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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 supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.