Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

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

Page as Markdown

Deploy the WAF server as a shared extension and enable it for a GatewayClass.

Before you begin

  1. Set up an agentgateway proxy.
  2. 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.

  1. Create an EnterpriseAgentgatewayParameters resource 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
    EOF
  2. Reference the EnterpriseAgentgatewayParameters from your GatewayClass.

    In this example, you enable WAF for the enterprise-agentgateway GatewayClass. 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
    EOF
  3. Verify that the waf-server is deployed. The shared waf-server is 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 the waf-server.

    kubectl get deploy waf-server-enterprise-agentgateway -n agentgateway-system

    Example output:

    NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE
    waf-server-enterprise-agentgateway   1/1     1            1           30s

    If the waf-server does not appear, confirm that a Gateway uses the enterprise-agentgateway GatewayClass 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.