review-security-k8s-gateway

Analyze Kubernetes Gateway API configurations for security vulnerabilities and namespace isolation.

42|32|Updated May 7, 2026
One-click install
npx skills add https://github.com/gke-labs/kube-agents --skill review-security-k8s-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-security-k8s-gateway
Source: https://github.com/gke-labs/kube-agents/tree/main/.agents/skills/review-security-k8s-gateway
Command: npx skills add https://github.com/gke-labs/kube-agents --skill review-security-k8s-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill mitigates security misconfigurations in Kubernetes Gateway API resources that could lead to traffic hijacking, unauthorized cross-namespace access, or exposed internal services.

Core Features & Use Cases

  • Route Hijacking Prevention: Detects overlapping hostnames and paths that allow unauthorized traffic interception.
  • Boundary Enforcement: Validates cross-namespace references and ensures proper use of ReferenceGrant to maintain isolation.
  • Use Case: Before deploying a new public-facing Gateway, use this skill to ensure that your HTTPRoute configurations are restricted to the correct namespaces and do not contain overly permissive wildcard hostnames.

Quick Start

Use the review-security-k8s-gateway skill to analyze the Gateway and HTTPRoute manifests located in the current directory for potential security vulnerabilities.

Frequently Asked Questions about review-security-k8s-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Kubernetes Gateway API configurations for security vulnerabilities?

Auditing Kubernetes Gateway API configurations involves analyzing Gateway, HTTPRoute, and ReferenceGrant resources to identify security vulnerabilities like route hijacking and improper namespace isolation. This skill evaluates listener TLS settings and route attachment policies against secure networking best practices.

How does ReferenceGrant enforce cross-namespace isolation in Gateway API?

ReferenceGrant enforces cross-namespace isolation by validating cross-namespace references to maintain strict boundaries. This skill checks your Gateway API resources to ensure proper use of ReferenceGrant, preventing unauthorized cross-namespace access and exposed internal services.

What causes route hijacking in Kubernetes HTTPRoute configurations?

Route hijacking in Kubernetes HTTPRoute configurations is caused by overlapping hostnames and overly permissive wildcard hostnames that allow unauthorized traffic interception. This skill detects these overlapping paths to prevent unauthorized traffic interception.

Can I check my Gateway API manifests for multi-tenant governance compliance?

Yes, you can check Gateway API manifests for multi-tenant governance compliance by evaluating listener TLS settings and route attachment policies. This skill ensures your Gateway and HTTPRoute configurations meet strict multi-tenant governance requirements before deployment.

What's the best way to secure a public-facing Kubernetes Gateway before deployment?

Securing a public-facing Kubernetes Gateway before deployment requires analyzing HTTPRoute configurations to ensure they are restricted to the correct namespaces and do not contain overly permissive wildcard hostnames. This skill analyzes manifests in your directory for these security risks.

Why does improper namespace isolation expose internal services in Gateway API?

Improper namespace isolation exposes internal services because misconfigured cross-namespace references bypass intended network boundaries. This skill mitigates these security misconfigurations in Kubernetes Gateway API resources to prevent unauthorized access and exposed internal services.