coraza-kubernetes-operator

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0

README

Coraza Kubernetes Operator

Automated deployment and life-cycle management of Coraza on Kubernetes.

About

The Coraza Kubernetes Operator (CKO) enables declarative management of Coraza Web Application Firewall (WAF) policies in Kubernetes. It integrates the Coraza WAF engine with gateway/proxy solutions to enforce rules for Kubernetes cluster traffic.

Key Features:

  • Engine API to declaratively deploy WAF instances
  • RuleSet API to declaratively provide rules to WAF instances
  • Dynamic RuleSet updates
  • ModSecurity Seclang compatibility
Supported Integrations

The operator integrates with other tools to attach WAF instances to their gateways/proxies:

  • istio - Istio integration ✅ Currently Supported (ingress Gateway only)
  • wasm - WebAssembly deployment ✅ Currently Supported

Note: Only Istio+Wasm is supported for now.

Usage

Make sure your supported platform is deployed to the cluster, then choose one of the installation methods.

Note: For deploying Istio, we recommend the Sail Operator.

Installation
Install with Kustomize
kubectl apply -k config/default
Install with Helm

TODO

Install via OperatorHub

TODO

Firewall Deployment

Firstly deploy your RuleSets which organize all your rules.

Note: Only ConfigMaps are supported for rules currently.

Once your RuleSets are deployed you can deploy an Engine to load and enforce those rules on a Gateway.

Note: Currently can only target an Istio Gateway resource.

You can find examples of RuleSets and Engines in config/samples/. The documentation for these APIs is available in the API Documentation.

Contributing

Contributions are welcome!

See CONTRIBUTING.md.

License

Apache License 2.0 - see LICENSE.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the waf v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the waf v1alpha1 API group.
internal
controller
Package controller implements Kubernetes controllers for WAF resources.
Package controller implements Kubernetes controllers for WAF resources.
rulesets/cache
Package cache provides in-memory caching for WAF rulesets.
Package cache provides in-memory caching for WAF rulesets.
test
utils
Package utils provides testing utilities for integration and unit tests.
Package utils provides testing utilities for integration and unit tests.

Jump to

Keyboard shortcuts

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