Welcome to our deep dive into the 2024 Application Delivery Top Ten challenges. Today, we’re tackling ADC08: Lack of Security and Regulatory Compliance. In the era of hybrid cloud and AI, legacy security models that only protect the perimeter are no longer sufficient. Modern applications, especially generative AI pipelines, have a sprawling attack surface that extends from the public internet deep into the Kubernetes cluster and out to third-party API services.
Failing to secure this entire pathway exposes organizations to significant risks, including data breaches, compliance violations (PCI, HIPAA, GDPR), and prompt injection attacks that can corrupt or expose sensitive AI models. The financial stakes are high; industry research shows that a lack of compliance can increase the average cost of a single data breach by over $173,000.
Addressing these costly, complex risks requires more than a collection of point products; it demands a unified platform. This is where the F5 Application Delivery and Security Platform (ADSP) comes in.
F5 ADSP brings application delivery, WAAP, and AI security together on one extensible platform for hybrid multicloud. It helps IT and security teams deliver high-performance digital and AI experiences, strengthen protection across apps, APIs, models, and data, and reduce operational complexity through greater automation, easier integration, and portfolio-wide insight.
This platform provides a common foundation for specialized capabilities, brought to life by integrating key F5 technologies. For the architecture in this article, we leverage:
-
F5 BIG-IP: The industry-leading ADC for enterprise-grade security at the edge, providing advanced WAF capabilities and high-performance traffic management.
-
F5 NGINX Gateway Fabric: F5 Kubernetes Gateway API implementation, designed for high-performance traffic management and modern cloud-native architectures.
-
F5 AI Guardrails: A specialized, integrated service for inspecting and securing the unique payloads of generative AI—the prompts and responses—against injection, data leakage, and other LLM-specific threats.
This article shows how these F5 ADSP components work together to build a real-world, production-grade architecture that delivers true defense-in-depth security for a modern AI application.
AI Reference Architecture
The Challenge: A Disjointed and Vulnerable AI Pipeline
Consider a typical modern AI chatbot application. It involves:
-
An edge network that needs protection from traditional web attacks.
-
A Kubernetes cluster for hosting scalable, containerized services.
-
Multiple backend inference models (e.g., a powerful GPU-based model for complex queries and a lightweight CPU model for simple tasks).
-
External, third-party APIs that provide specialized security scanning, like AI prompt inspection.
Without a unified security strategy, each component is managed in a silo, creating critical security gaps. The edge ADC may be blind to traffic inside Kubernetes, and the internal ingress controller has no visibility into the security posture of the external APIs it consumes.
The Solution: A Unified, Multi-Layered Security Fabric
To solve this, we built a comprehensive security pipeline where each layer provides a specific, critical function, all working in concert.
Here’s a high-level overview of the architecture we deployed:
-
Edge Security (F5 BIG-IP with Advanced WAF): Deployed in Azure, the BIG-IP acts as the first line of defense. It provides enterprise-grade WAF capabilities to block OWASP Top 10 threats, mitigate DDoS, and enforce robust perimeter access control.
-
Kubernetes-Gateway API (F5 NGINX Gateway Fabric): Running inside the AKS cluster, NGINX Gateway Fabric uses the modern, declarative Gateway API to manage traffic routing between different services and inference pools (GPU vs. CPU). It preserves the client’s true IP address using Proxy Protocol, which is critical for accurate logging and auditing.
-
AI Payload Inspection (F5 AI Guardrails): This is where it gets truly innovative. We used an NGINX Gateway Fabric PayloadProcessor to create a policy that intercepts the request/response body of our chatbot API calls (/v1/chat/completions). It securely offloads the payload to F5 AI Guardrails, which acts as an external processing service to inspect prompt injection, data leakage, and other LLM-specific threats in real time.
This entire architecture is automated using F5 Container Ingress Services (CIS) and the F5 IPAM Controller, which work together via GatewayLink. When a new route is defined in Kubernetes, CIS automatically programs the corresponding Virtual Server and pools on the BIG-IP, eliminating manual configuration and the risk of human error.

Use Case Overview: End-to-End AI Security
-
Client Initiates Request: A user sends a request to the AI application while F5 security posture defends against attackers and prompt injectors at the edge.
-
BIG-IP Edge Security (WAF): The request first reaches the F5 BIG-IP, which serves as a high-performance Web Application Firewall, blocking common web attacks (OWASP Top 10) and absorbing malicious traffic before it enters the Kubernetes cluster.
-
Kubernetes-Native Ingress (F5 NGINX Gateway Fabric): Validated traffic is securely routed into the Kubernetes cluster via NGINX Gateway Fabric, which manages ingress traffic according to modern Gateway API standards.
-
AI Payload Inspection (F5 AI Guardrails): NGINX Gateway Fabric intercepts the request and offloads the payload to F5 AI Guardrails for specialized, real-time inspection for prompt injection, data leakage, and other LLM-specific threats.
-
Dynamic Backend Routing: Based on the HTTP route, Gateway Fabric forwards the fully vetted request to the appropriate backend LLM Service (e.g., a high-performance GPU pool or a cost-effective CPU pool).
-
Automated Service Discovery (F5 CIS & GatewayLink): In the background, F5 Container Ingress Services (CIS) and the GatewayLink resource continuously monitor the Kubernetes environment. If pods scale or change, they automatically update the BIG-IP’s load-balancing pools, ensuring seamless resilience without manual intervention.
Key Benefits of this Integrated Approach:
-
Defense-in-Depth: Security is no longer just an edge concern. This architecture provides WAF at the perimeter, declarative routing policies at the ingress layer, and specialized payload inspection right before the AI model is invoked.
-
Modern, Gateway API-Driven Traffic Control: F5 NGINX Gateway Fabric provides a standardized, Kubernetes-native way to manage traffic using the official Gateway API. This not only simplifies complex routing for AI services but also offers a powerful extensibility model, which was leveraged here to seamlessly integrate with F5 AI Guardrails for real-time payload inspection.
-
Automated Compliance: Integrating F5 CIS with GatewayLink allows the network security infrastructure to automatically adapt to application changes. This ensures security policies are applied consistently without manual intervention, dramatically reducing the risk of configuration drift and non-compliance.
-
Complete Observability and Auditability: With Proxy Protocol preserving the client IP and the PayloadProcessor logging all interactions with the AI Guardrails service, security teams have a complete, unbroken audit trail of every request from the user to the model and back.
-
Regulatory Readiness: This architecture meets compliance requirements. F5’s FIPS-compliant components, coupled with detailed audit logs and strict access controls, provide the foundation needed to meet stringent regulatory mandates like PCI DSS, HIPAA, and GDPR.
Conclusion
Addressing ADC08: Lack of Security and Regulatory Compliance requires thinking beyond the traditional ADC. It demands a holistic, automated, and deeply integrated security fabric that spans the entire application delivery path. By combining the strengths of F5 BIG-IP, F5 NGINX Gateway Fabric, and specialized services like F5 AI Guardrails, organizations can build a modern, secure, and compliant AI application pipeline ready for today’s and tomorrow’s challenges.
