Git Product home page Git Product logo

aws-devsecops-workshop's Introduction

aws-devsecops-workshop

A continuous security pipeline demo for the AWS DevSecOps Workshop.

Prerequisites

Before you get started, there are a few things you will to need to prepare.

AWS Account

We recommend using a new AWS account for the workshop environment. You can also use an existing account, but make sure the account has no existing resources created. Some of the security checks executed by this workshop may discover resources that are not configured to best practices and fail your pipeline.

AWS CLI

Install the aws-cli and use aws configure to set your AWS Access Keys for your development environment (the account specified above).

Jenkins Configuration

  • Jenkins is bootstrapped via an Ansible Playbook executed in CFN cloud-init.
  • Ansible Playbook expects latest Amazon Linux AMI.
  • Jenkins auto-generated initial password is made permanent.
  • Jenkins admin username/password are written to SSM ParameterStore.
  • The following SSM Keys are populated:
/DevSecOps/jenkins_ip
/DevSecOps/jenkins_user
/DevSecOps/jenkins_password

Pipeline Stages

  • Commit

    1. cfn_nag
    2. rubocop
    3. unit tests
  • Acceptance

    1. create environment
    • cloudformation
    1. infrastructure tests
    2. integration tests
    • serverspec
    • cucumber
    1. security environment tests
    • aws configservice
    • aws inspector
  • Capacity

    1. security penetration tests
    • owasp zap
    1. capactity tests
    • apache benchmark
  • Deployment

    1. production deploy
    2. smoke tests
    • cucumber

Create Workshop Environment

  • One-button launch of the workshop environment: ./deploy.sh
  • TRUSTED_CIDR is expected to be exported in the environment (example: "export TRUSTED_CIDR=100.20.30.45/32")
  • Variables at the top of deploy.sh may need to be customized.

Egress Rules

TODO: Lockdown outgoing traffic

  • prevent exfiltration with egress rules
  • Github, RubyGems, and AWS API Endpoints only traffic allowed out

aws-devsecops-workshop's People

Contributors

phpisuber01 avatar zamoose avatar cndudley avatar brianjakovich avatar nickdeclario avatar mchancloud avatar trikosuave 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.