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.
Based on Capistrano recipes railscast: http://railscasts.com/episodes/337-capistrano-recipes?view=asciicast
Add this line to your application's Gemfile: gem 'capistrano' gem 'capistrano-vps', :git => "git://github.com/sbusso/capistrano-vps.git", :group => :development
$ capify .
And then execute:
$ bundle
Generate the config files:
rails g vps:recipes:install
Connect to the server:
ssh root@72.14.183.209
bash < <(curl -s https://raw.github.com/sbusso/capistrano-vps/master/bootstrap.sh)
On your local project:
ssh-add # -K on Mac OS X
cap cap_vps:install
# OR
cap cap_vps:prepare
cap deploy:setup
cap deploy:cold
cap deploy:migrations
Deploy file example:
# =============================================================================
# GENERAL SETTINGS
# =============================================================================
set :application, "myproject"
set :user, "deployer"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :use_sudo, false
set :deploy_via, :remote_cache
set :scm, :git
set :repository, "git@github.com:myuser/#{application}.git"
set :git_enable_submodules, 1
set :keep_releases, 3
set :branch, "master"
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
# ssh_options[:paranoid] = false
after "deploy", "deploy:cleanup" # keep only the last 3 releases
server "#production_address", :web, :app, :db, primary: true
# =============================================================================
# RECIPE INCLUDES
# =============================================================================
require "bundler/capistrano"
require "capistrano-vps/recipes/base"
require "capistrano-vps/recipes/nginx"
require "capistrano-vps/recipes/unicorn"
require "capistrano-vps/recipes/postgresql_server"
require "capistrano-vps/recipes/postgresql_client"
require "capistrano-vps/recipes/nodejs"
require "capistrano-vps/recipes/redis"
require "capistrano-vps/recipes/rbenv"
require "capistrano-vps/recipes/libxml"
require "capistrano-vps/recipes/imagemagick"
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano-vps 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.