Code Monkey home page Code Monkey logo

bastion's Introduction

bastion

Bastion is a web application maintains AWS Security Groups.

Installation

# clone source
git clone https://github.com/wata-gh/bastion.git

# setup (you need npm to setup)
cd bastion
./script/setup

# run unicorn
RACK_ENV=production ./script/unicorn

Capistrano

If you are using capistrano, you can set environment(config/unicorn/production.rb) settings and deploy.

bundle exec cap production deploy

Setup Configuration

:app:
  :name: bastion
:aws_config:
  :access_key_id: '[Your Access Key]'
  :secret_access_key: '[Your Secret Key]'
  :region: 'ap-northeast-1'
:security_group:
  :bastion:
    :group_id: '[bastion Security Group Id. e.g. sg-xxxxxxxx]'
    :defaults: ['1.1.1.1:22']
  :webservice:
    :group_id: '[web server(maybe elb) Security Group Id. e.g. sg-xxxxxxxx]'
    :defaults: ['1.1.1.1:80']

Security Group Reset Batch

Set security group reset batch and reset everyday. This program will revoke security group ingress except default IPs set on above. Here is a sample crontab.

0 * * * * /opt/bastion/script/sgreset

Sgreset program's log will be output in log/sgreset.log .

bastion's People

Contributors

wata-gh avatar

Stargazers

Yuuki TSUBOUCHI avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.