Coder Social home page Coder Social logo

gcp-lab's Introduction

GCP-Lab

A project to deploy a lab environment for GCP.

Details

This lab implements the following:

  • (1) VPC
    • (4) Subnets
      • (2) subnets reachable from the internet
      • (2) subnets unreachable from the internet
    • (2) Red Hat Enterprise Linux 8 VMs
      • (1) VM on the first subnet that is available over the internet, allowing ping and ssh
        • 20 GB of storage
      • (1) VM on the third subnet that is not available over the internet
        • scripted installation of apache web server, listening on port 80
        • apache reachable via HTTP load balancer (port 80)
        • 20 GB of storage
    • HTTP Load Balancer servicing port 80 to an Apache sever running on the host in subnet 3
      • HTTP health checks for the service
    • DNS configuration for the internet reachable VM at ssh.lab.elasticplayground.dev
    • DNS configuration for the HTTP load balancer at http.lab.elasticplayground.dev
    • Web Application Firewall policy applied at the HTTP load balancer that blocks:
      • SQL Injection

Diagram

gcp-lab-diagram

There is only a single WAF signature being utilized (sql injection) for a few reasons:

  • demonstrates the proof-of-concept configuration
  • risk of production issues is higher when implementing a WAF policy without a baseline of traffic to base the policy against
  • we want to go through a few threat modeling exercises to articulate the threats we should target in the WAF policy
  • we will use the outputs from the threat modeling exercises to produce the WAF policy/configuration in more granularity for the service' use case

Configuration

input variable type description default value required
provider string The GCP project that deployment should target n/a yes
region string The GCP region that deployment should target n/a yes
network_tier string The GCP network_tier that deployment should use PREMIUM no
credentials string The GCP credentials terraform should use n/a yes

Caveats

This project does not utilize GCP projects or folders because they require GCP Organizations, and our GCP account does not currently have an Organization configuration.

Questions

  • What (if any) roles should be configured (e.g. Shared VPC Admin)?
  • Should the VPC be a Shared VPC?
  • Should the subnets be configured to permit intercommunication (e.g. Sub1 can communicate with Sub2)?
    • Should hosts be further segmented intra-subnet (e.g. 10.0.0.1 -> 10.0.0.2 and vice versa on sub1)
  • Should all egress traffic be permitted outbound for both zones (public/private)?
  • Which protocols/ports should be permitted from the internet to the public subnets? (e.g. just ICMP and SSH?)

References

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.