Skip to main content

Okustera API Gateway & Ingress

Okustera API Gateway & Ingress provides low-latency dynamic traffic routing, automated SSL/TLS certificate management, Web Application Firewall (WAF) protection, rate limiting, CORS policies, and canary traffic shifting for Kubernetes workloads, APIs, and serverless endpoints.

Routes, security policies, and certificates are managed declaratively through the Okustera Cloud Portal, REST API (/api/v1/gateway/*), or the official Okustera Terraform Provider.

Okustera API Gateway & Traffic Ingress Console


Key Capabilities​

  • Dynamic Ingress Routing: Zero-downtime route updates without dropping active TCP connections or in-flight requests.
  • Automated SSL/TLS Termination: Automatic X.509 certificate issuance and renewal (including Let's Encrypt), enforcing TLS 1.2/1.3, HTTP-to-HTTPS (308 Permanent Redirect), and HSTS (max-age=31536000).
  • Web Application Firewall (WAF): OWASP Core Rule Set inspection mitigating SQL Injection (SQLi), Cross-Site Scripting (XSS), and malicious payloads with selectable DetectionOnly and Blocking modes.
  • Canary & Blue/Green Deployments: Weight-based traffic splitting, HTTP header matching (X-Canary: true), and session-consistent routing for safe progressive rollouts.
  • Enterprise Traffic Governance: Token-bucket rate limiting, IP allowlists/denylists, CORS policy enforcement, API key and JWT authentication, and Prometheus metrics telemetry.
  • Project-Scoped Multi-Tenancy: Every route and certificate is isolated to its owning tenant project with strict RBAC boundaries.

Web Application Firewall (WAF) & Threat Inspection​

Okustera API Gateway inspects inbound HTTP traffic against OWASP Core Rule Set signatures:

  • DetectionOnly Mode: Evaluates request URIs, query strings, headers, and bodies and records matches to your audit log stream without interrupting traffic—ideal for tuning baselines before enforcement.
  • Blocking Mode: Actively protects endpoints by terminating matched attack vectors with HTTP 403 Forbidden and an attack correlation ID before requests reach backend workloads.

Automated SSL/TLS Lifecycle​

When TLS is enabled on a gateway route:

  1. Okustera automatically requests and validates an X.509 certificate for your custom domain (using Let's Encrypt or your configured certificate issuer).
  2. The certificate is stored securely and bound to your domain's SNI configuration.
  3. Renewals happen automatically ahead of expiration with zero downtime.

Canary Traffic Splitting​

Gradually shift production traffic between stable and canary service versions via the Portal or REST API:

curl -X POST https://portal.okustera.com/api/v1/gateway/routes \
-H "Authorization: Bearer <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "order-service-route",
"domain": "api.example.com",
"path": "/orders/*",
"tls_enabled": true,
"waf_enabled": true,
"waf_mode": "Blocking",
"upstreams": [
{"service_name": "order-service-stable", "port": 8080, "weight": 90},
{"service_name": "order-service-canary", "port": 8080, "weight": 10}
],
"rate_limit": {"requests_per_minute": 1000, "burst": 100}
}'

AI Gateway & Streaming Extensions​

For generative AI workloads deployed on the Okustera AI Inference PaaS, the API Gateway provides specialized LLM routing capabilities:

  • Unbuffered SSE Streaming: Streams token deltas in real time with extended client read timeouts (up to 600 seconds) for low Time-to-First-Token (TTFT).
  • Model-Aware Routing: Inspects incoming OpenAI-compatible JSON payloads ("model": "...") to route requests dynamically across active model deployments and LoRA adapters.
  • Prompt Guardrails: Screens inbound prompts at the edge and blocks prompt-injection attempts with HTTP 403 Forbidden.
  • Semantic Prompt Caching: Returns cached completions for repeated prompts in milliseconds to reduce inference latency and cost.
  • Token-Level FinOps: Extracts prompt and completion token counts from responses and reports usage to FinOps, Metering & Billing.

Traffic Flow & Tenant Isolation​


Declarative Management via Terraform​

Manage gateway routes, automated TLS certificates, WAF modes, rate limiting, and CORS policies declaratively with the official Okustera Terraform Provider:

resource "okustera_apisix_route" "api_endpoint" {
name = "public-customer-api"
domain = "api.example.com"
path = "/api/v1/*"

upstream = {
service_name = "customer-service"
port = 8080
timeout = 15
}

# Automated SSL/TLS
tls_enabled = true
cluster_issuer = "letsencrypt-prod"

# OWASP WAF Protection
waf_enabled = true
waf_mode = "DetectionOnly" # Or "Blocking" for enforcement

# Rate Limiting & CORS
rate_limit = {
requests_per_minute = 300
burst = 50
}

cors_enabled = true
}

Learn more in the Terraform Resource Reference.


REST API Reference​

  • GET /api/v1/gateway/routes — List all ingress routes in the current tenant project.
  • POST /api/v1/gateway/routes — Create or update a route with traffic splitting, WAF, rate limiting, and CORS rules.
  • GET /api/v1/gateway/routes/{id}/manifest — Export the declarative manifest for a managed route.
  • GET /api/v1/gateway/certificates — List SSL/TLS certificates registered in the current project.
  • POST /api/v1/gateway/certificates — Register a custom certificate or request an automated Let's Encrypt certificate.