ingress-waf-admission-controller

command module
v0.0.0-...-633ead5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

Web Application Firewall setup admission controller

This admission controller acts as a MutatingAdmissionWebhook and adds modsecurity waf to ingresses.

Installation

  1. install the dependencies
  2. download and verify setup.yaml
  3. deploy admission controller kubectl apply -f setup.yaml

Dependencies

Usage

The Admission controller adds WAF enabling annotations to all ingresses by default.

Disable for a Ingress

Create an ingress and add the annotation ingress-waf/enabled: "false".

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    ingress-waf/enabled: "false"
  name: some-ingress
spec:
  rules:
    - host: "domain.tld"

Ingresses with this annotation will skip the WAF setup.

local development

  1. install tilt, helm, helmfile, helm diff, and kind
  2. setup kind with local registry
  3. deploy dependencies helmfile sync
  4. start environment tilt up

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL