command
module
Version:
v0.0.0-...-633ead5
Opens a new window with list of versions in this module.
Published: Feb 24, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Web Application Firewall setup admission controller
This admission controller acts as a MutatingAdmissionWebhook and adds modsecurity waf to ingresses.
Installation
- install the dependencies
- download and verify setup.yaml
- 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
- install tilt, helm, helmfile, helm diff, and kind
- setup kind with local registry
- deploy dependencies
helmfile sync
- start environment
tilt up
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.