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.
capistrano3-aws-asg-deploy
Advanced tools
Capistrano 3 plugin for AWS Auto Scaling deploys.
This is a fork of Aftab-Akram/capistrano3-asg-deploy, updated with new features and Capistrano 3 conventions.
I'm mainly building this gem to work with private ip address
Add this line to your application's Gemfile:
gem 'capistrano3-aws-asg-deploy'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install capistrano3-aws-asg-deploy
Add this line to your application's Capfile:
require 'capistrano/autoscaling_deploy'
Set credentials with AmazonEC2FullAccess permission in the capistrano deploy script / stage files add the following lines
set :aws_region, 'ap-northeast-1'
set :aws_access_key_id, 'YOUR AWS KEY ID'
set :aws_secret_access_key, 'YOUR AWS SECRET KEY'
set :aws_autoscaling_group_name, 'YOUR NAME OF AUTO SCALING GROUP NAME'
set :aws_deploy_roles, [:app, :web, :db]
set :aws_deploy_user, 'USER FOR SSH CONNECTION'
invoke 'autoscaling_deploy:setup_instances'
you can add more auto scaling configs to deploy to multiple auto scaling groups like a cluster
This gem will fetch only running instances that have an auto scaling group name you specified
It will then reject the roles of :db and the :primary => true for all servers found but the first one
(from all auto scaling groups you have specified such as using more then once the auto scaling directive in your config - i.e cluster deploy)
this is to make sure a single working task does not run in parallel
you end up as if you defined the servers yourself like so:
server ip_address1, :app, :db, :web, :primary => true
server ip_address2, :app, :web
server ip_address3, :app, :web
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)To test while developoing just bundle console
on the project root directory and execute
Capistrano::AutoScalingDeploy::VERSION
for a quick test
FAQs
Unknown package
We found that capistrano3-aws-asg-deploy 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.