Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Small Capistrano utility that allows easy management of app-specific environment variables (currently supporting dotenv only)
Add the gem to your Gemfile
gem 'capistrano3-env', '~> 0.1.0'
Run bundle
to update your Gemfile.lock
Add the following to your Capfile
:
require 'capistrano/env'
Rake (which is used by Capistrano) has a not so pratical way of specifying task arguments. To alleviate that issue, a small custom executable was made:
bundle exec cap-env [stage] [operation] [KEY] [VALUE]
The possible use cases are the following:
cap-env production get # shows the current env file for
production
cap-env production set APP_ID 123456 # sets KEY=value
cap-env production get APP_ID # shows the current value of KEY
cap-env production delete APP_ID # deletes the given KEY
Alternatively, you can use the underlying Capistrano tasks directly with cap production TASK
, where TASK
is one of the following:
env:get # shows the current env file
env:get[KEY] # KEY # shows the current value of KEY from the env file
env:set[KEY,value] # sets KEY=value in the env file
env:delete[KEY] # deletes the given KEY
The following configurations are available to you in config/deploy.rb (default values are shown here, no need to set them)
set :config_backend, :dotenv # currently this is the only supported backend
set :config_file, '.env' # you might want to use .env.production instead
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano3-env 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.