Code Monkey home page Code Monkey logo

terraform-aws-alb-waf-auth's Introduction

terraform-aws-alb-waf-auth

This creates a WAF to require a certain string in a header to allow traffic to an ALB.

Use it for when you don't control the application code but want to add authentication.

Note it's not true basic auth because the WAF can't send a custom unauthorized page.

Inputs

Name Description Type Default Required
alb_arn ALB ARN to attach the waf auth to string n/a yes
waf_name_alpha Name for WAF resources. Note this needs to be alphanumeric only. string n/a yes
x_manual_auth_secret Secret to check in x-manual-auth header, if not specified will be generated randomly string "" no

Outputs

Name Description
x_manual_auth_target_string Secret that this WAF will check for in x-manual-auth header

Usage

If specifying the secret:

module "waf_auth" {
  source               = "github.com/asicsdigital/terraform-aws-alb-waf-auth?ref=v0.0.1"
  alb_arn              = "<alb arn here>"
  waf_name_alpha       = "<some alphabetical string here>"
  x_manual_auth_secret = "<your secret here>"
}

Or, not specifying secret:

module "waf_auth" {
  source         = "github.com/asicsdigital/terraform-aws-alb-waf-auth?ref=v0.0.1"
  alb_arn        = "<alb arn here>"
  waf_name_alpha = "<some alphabetical string here>"
}

output "x_manual_auth_secret" {
  value = "${module.waf_auth.x_manual_auth_target_string}"
}

Authors

John Noss

Changelog

v0.0.1 - Initial release.

License

This software is released under the MIT License (see LICENSE).

terraform-aws-alb-waf-auth's People

Contributors

falpangaea avatar jnoss 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.