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.
Forked from the original "tijsverkoyen/capistrano-sumo". All credits go to him.
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/capistrano/siesqo
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
Add this line to your application's Gemfile:
gem 'capistrano-siesqo'
And then execute:
bundle
Or install it yourself as:
gem install capistrano-siesqo
Fork CMS specific Capistrano tasks
Capistrano ForkCMS - Easy deployment of ForkCMS 5+ apps with Ruby over SSH.
Add this line to your application's Gemfile:
gem 'capistrano-forkcms'
And then execute:
bundle
Require the module in your Capfile:
require "capistrano/siesqo"
The plugin comes with some tasks:
siesqo:db:create
, which will create the database if it doesn't exists yet, works only on staging.siesqo:db:get
, which will replace the local database with the remote database.siesqo:db:info
, which will get info about the database, works only on staging.siesqo:db:put
, which will replace the remote database with the local database.siesqo:files:get
, which will downloads the remote files to the local instance.siesqo:files:put
, which will upload the local files to the remote server.siesqo:notifications:deploy
, which will notify our webhooks on a deploy.siesqo:redirect:enable
, which will enable a redirect page, all traffic will be redirected to this page.But you won't need any of them as everything is wired automagically if you follow the steps below
Configuration options:
...
set :deploy_config_path, 'app/config/capistrano/deploy.rb'
set :stage_config_path, 'app/config/capistrano/stages'
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/scm/git'
install_plugin Capistrano::SCM::Git
require 'capistrano/forkcms'
require 'capistrano/siesqo'
require 'capistrano/deploytags'
set :format_options, log_file: 'app/logs/capistrano.log'
Dir.glob('app/config/capistrano/tasks/*.rake').each { |r| import r }
app/config/capistrano/deploy.rb
, with the content below:set :client, "$the-clients-name"
set :project, "$the-project-name"
set :repo_url, "$the-repo-url"
set :production_url, "$the-production-url"
### DO NOT EDIT BELOW ###
set :application, "#{fetch :project}"
set :deploytag_utc, false
set :deploytag_time_format, "%Y%m%d-%H%M%S"
set :files_dir, %w(src/Frontend/Files)
app/config/capistrano/stages/production.rb
, with the content below:server "php71-001.siesqohosting.be", user: "$production-user", roles: %w{app db web}
set :document_root, "/home/$production-user/domains/$domain/public_html"
set :deploy_to, "/home/$production-user/apps/#{fetch :project}"
set :opcache_reset_strategy, "fcgi"
set :opcache_reset_fcgi_connection_string, "/usr/local/php71/sockets/$production-user.sock"
### DO NOT EDIT BELOW ###
set :keep_releases, 3
set :php_bin, "php"
SSHKit.config.command_map[:composer] = "#{fetch :php_bin} #{shared_path.join("composer.phar")}"
SSHKit.config.command_map[:php] = fetch(:php_bin)
app/config/capistrano/stages/staging.rb
, with the content below:
### DO NOT EDIT BELOW ###
set :branch, "staging"
set :document_root, "/home/sites/php71/#{fetch :client}/#{fetch :project}"
set :deploy_to, "/home/sites/apps/#{fetch :client}/#{fetch :project}"
set :keep_releases, 2
set :url, "http://#{fetch :project}.#{fetch :client}.php71.siesqocoders.eu"
set :fcgi_connection_string, "/var/run/php_71_fpm_sites.sock"
set :php_bin, "php7.1"
set :php_bin_custom_path, fetch(:php_bin)
set :opcache_reset_strategy, "fcgi"
set :opcache_reset_fcgi_connection_string, "/var/run/php_71_fpm_sites.sock"
server "dev02.siesqocoders.eu", user: "sites", roles: %w{app db web}
SSHKit.config.command_map[:composer] = "#{fetch :php_bin} #{shared_path.join("composer.phar")}"
SSHKit.config.command_map[:php] = fetch(:php_bin)
Bug reports and pull requests are welcome on GitHub at https://github.com/tijsverkoyen/capistrano-siesqo/issues.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that capistrano-siesqo 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.