For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Enable the WAF server
Deploy the WAF server as a shared extension and enable it for a GatewayClass.
Before you begin
- Set up an agentgateway proxy.
- Install the httpbin sample app.
Enable the WAF server
WAF is a shared extension that runs as a dedicated waf-server deployment alongside the agentgateway proxy. You enable the WAF server by configuring an EnterpriseAgentgatewayParameters resource and referencing that resource from a GatewayClass.
Create an
EnterpriseAgentgatewayParametersresource with WAF enabled.kubectl apply -f- <<EOF apiVersion: enterpriseagentgateway.solo.io/v1alpha1 kind: EnterpriseAgentgatewayParameters metadata: name: enterprise-agentgateway-params namespace: agentgateway-system spec: sharedExtensions: waf: enabled: true EOFReference the
EnterpriseAgentgatewayParametersfrom yourGatewayClass.In this example, you enable WAF for the
enterprise-agentgatewayGatewayClass. When you followed the Install agentgateway and Non-agentic HTTP guides, you deployed an agentgateway proxy that uses this GatewayClass. The WAF server is automatically deployed alongside your agentgateway proxy. If you decide to use a different GatewayClass, you must create a Gateway resource that uses this GatewayClass also so that the WAF server is deployed.kubectl apply -f- <<EOF apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: enterprise-agentgateway spec: controllerName: solo.io/enterprise-agentgateway parametersRef: group: enterpriseagentgateway.solo.io kind: EnterpriseAgentgatewayParameters name: enterprise-agentgateway-params namespace: agentgateway-system EOFVerify that the
waf-serveris deployed. The sharedwaf-serveris provisioned per GatewayClass and is created only after a Gateway uses that GatewayClass. You created one in the sample app guide, so allow a few moments for the controller to reconcile the Gateway and deploy thewaf-server.kubectl get deploy waf-server-enterprise-agentgateway -n agentgateway-systemExample output:
NAME READY UP-TO-DATE AVAILABLE AGE waf-server-enterprise-agentgateway 1/1 1 1 30sIf the
waf-serverdoes not appear, confirm that a Gateway uses theenterprise-agentgatewayGatewayClass and check the controller for reconciliation errors. For more information, see Debug WAF.
Next steps
With WAF enabled, create a WAFPolicy and attach it to your routes. The following guides cover independent, composable ways to define WAF rules. Use whichever ones fit your needs, in any order, or combine several in the same WAFPolicy.