Git Product home page Git Product logo

terraform-cloudguard-appsec-vmss's Introduction

CloudGuard AppSec Scalable Infinity Gateway Architecture

This Terraform project is meant to be used as a template to demonstrate or build a test environment.
It creates an infrastructure composed of a North-hub and two spokes: one for the production and one for the staging.
In the North-hub, an Appsec Virtual Machine Scale-Set is created, and inside the spokes is created a container instance of a vulnerable application (Juice Shop).

Which are the components created?

The project creates the following resources and combine them:

  1. Resource Groups: for all the entities
  2. Vnet: the north-hub and the two Vnets for the spokes
  3. Subnets: inside the vNets
  4. Vnet peerings (as shown in the design below)
  5. Routing table: associated with the network in the spokes
  6. Appsec Infinity Gateway: a Virtual Machine Scale-Set of AppSec gateways
  7. Container Instances: in the spokes running a vulnerable application

Prerequisite

Before you can start you would need to have an Appsec token that can be obtained with the following steps:

  1. Application Profile: Steps to create a new profile
  2. Obtaining the Token: Steps to obtain a Token from a profile

How to use it

The only thing that you need to do is changing the terraform.tfvars file located in this directory.

# Set in this file your deployment variables
azure-client-id     = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
azure-client-secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
azure-tenant        = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
azure-subscription  = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

location            = "France Central"
mydns-zone          = "<yourzone>.com"

# Have you ever deployed an Appsec Virtual Machine Scale-Set in this Subscription?
appsec-vmss-agreement = true

# AppSec Variables
appsec-name         = "vmss-appsec"
appsec-size         = "Standard_DS2_v2"
admin-pwd           = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
infinity-token      = "cp-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

appsec-vmss-min     = "2"
appsec-vmss-max     = "3" 

If you want (or need) to further customize other project details, you can change defaults in the different name-variables.tf files.
Here you will be also able to find the descriptions that explain what each variable is used for.

Which are the outputs of the project?

The project gives as outputs the FQDNs of the Staging and Production Application.
You will need to use them for the Infinity Portal configuration, in the INFINITY POLICY application.
If you don't have a Portal you can create one following this link: Register

How to configure application in the Infinity Portal?

With the following steps you can create your application with the FQDN provided by Terraform as output:

  1. Staging Application: How to create the Staging application
  2. Production Application: How to create the Production application

After you have created both application, the Enforce of the changes has to be done.

The infrastructure is created with the following design:

Architectural Design

terraform-cloudguard-appsec-vmss's People

Contributors

gbrembati avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.