Skip to content
Back to skills

Kubernetes Gateway Api Knowledge Patch

ASecurity

Kubernetes Gateway API

  • 25 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentrustgokubernetesgitapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill kubernetes-gateway-api-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kubernetes Gateway Api Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kubernetes Gateway Api Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-kubernetes-gateway-api-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-kubernetes-gateway-api-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kubernetes-gateway-api-knowledge-patch
description: Kubernetes Gateway API
version: "1.7.0"
license: MIT
metadata:
  author: Nevaberry
---



# Kubernetes Gateway API Knowledge Patch

Use this skill when updating Gateway API manifests, typed clients, TLS settings,
route attachment, controller capability checks, or conformance configuration.
Read the relevant reference for version-specific validation and migration details.

| Reference | Topics |
| --- | --- |
| [API Lifecycle and Upgrades](references/api-lifecycle-and-upgrades.md) | CRD upgrade safeguards, API migrations, session persistence, typed clients, Go APIs and schemas |
| [Gateways, Listeners, and TLS](references/gateways-listeners-and-tls.md) | Addresses, infrastructure, listeners, authentication, certificates, backend TLS and trust bundles |
| [Policies, Status, and Conformance](references/policies-status-and-conformance.md) | Retry budgets, mesh configuration, tracing, capability discovery, status and conformance clients |
| [Routes, Filters, and Attachment](references/routes-filters-and-attachment.md) | Route validation, retries, CORS, mirroring, redirects, attachment, hostname precedence and experimental backends |

## Breaking changes and migrations

### CRD upgrade safeguards

The `safe-upgrades.gateway.networking.k8s.io` ValidatingAdmissionPolicy blocks
switching installed Standard CRDs to Experimental CRDs and downgrading to a
release before 1.5. Delete the policy before deliberately performing either operation:

```sh
kubectl delete validatingadmissionpolicy safe-upgrades.gateway.networking.k8s.io
```

The policy also blocks installation of monthly releases and older releases.
Upgrades of already installed Experimental CRDs are allowed.

### Standard kinds and API versions

- Use `apiVersion: gateway.networking.k8s.io/v1` for `TLSRoute`, `TCPRoute`,
  `UDPRoute`, and `ReferenceGrant`.
- Run Kubernetes 1.31 or later for `TLSRoute` CEL validation. The 1.5 Experimental
  bundle drops `TLSRoute` `v1alpha2`; `v1alpha3` is deprecated.
- The `v1alpha2` versions of `TCPRoute` and `UDPRoute` are deprecated and will be
  removed in a future release.
- Migrate `XListenerSet` to Standard `ListenerSet` in `gateway.networking.k8s.io`.
  The 1.5 Experimental bundle drops `XListenerSet`.
- Moving experimental `XListenerSet` and `XBackendTrafficPolicy` objects to future
  Standard kinds requires recreating them with the Standard kind and API group.

### Required fields and validation

- Include `spec` in generated `GRPCRoute` and `ReferenceGrant` manifests;
  admission rejects either kind when it omits `spec`.
- `HTTPRoute.spec.rules` must contain at least one entry.
- Standard admission requires names to be unique within `spec.rules` on each
  `HTTPRoute` and `GRPCRoute`.
- Use RFC 1035-compliant names for Gateway API resources.
- Attach `TCPRoute` to listeners with `protocol: TCP`; TLS listeners no longer
  accept it. Gateway and `ListenerSet` TLS listeners validate their TLS mode.

### Experimental backend and session persistence migrations

For `XBackend`, rename `spec.port.port` to `spec.port.number`, remove
`spec.port.name`, and omit `backendRef.port` on references to an `XBackend`.
Use `WSS` for WebSockets over TLS. `HTTP2` requires TLS; `H2C` requires it disabled.

Move route-inline or `BackendTrafficPolicy` session persistence to an `XBackend`
of type `EndpointSelector`. Rename `cookieConfig` to `cookie` and move
`sessionName` to `cookie.name` (optional, Extended) or `header.name` (required
for header persistence, Core). Cookies default to `Path=/`.
Set `cookie.path` (Extended) to retain a route-specific path:

```yaml
type: Cookie
cookie:
  name: orders-session
  path: /orders
```

Remove `idleTimeout` from manifests using the experimental session persistence API.
The lifecycle reference also covers the earlier `BackendLBPolicy` replacement
and `cookieConfig` validation.

### Typed clients and Go APIs

- CORS `allowCredentials` uses a boolean; update clients using the `TrueField` enum.
- Gateway-wide backend TLS configuration lives in `GatewayTLSConfig` under
  the Gateway's `spec.tls`.
- An explicitly empty `ListenerStatus.supportedKinds` slice serializes as `[]`;
  a nil slice is omitted.
- The main and conformance Go modules declare `go 1.27.0` and use Kubernetes
  v0.37 dependencies. `ForwardBodyConfig.MaxSize` is `int32`, previously `uint16`.
- Check references to the renamed ancestor-reference field in generated
  `BackendAncestorStatus` Go types when updating callers.
- Release artifacts include OpenAPI v2 schemas.

## Routing quick reference

### HTTP retries

Gateway API 1.7.0 promoted `retry.codes`, `retry.attempts`, and `retry.backoff`
to Standard. List each status code only once. Attempts default to `1`. Set `0`
to disable retries for the rule.

```yaml
retry:
  attempts: 0
```

`backoff` sets the base interval for an implementation-specific backoff strategy,
including jitter. Retry connection errors only when the request can safely be retried.
Use `HTTPRouteRetryCodes` and `HTTPRouteRetryConnectionError` in conformance
instead of the removed `HTTPRouteRetry` and `HTTPRouteRetryBackendTimeout`.
Gateway API 1.6.0 required at least `1` when setting `retry.attempts`.
[Gateway API 1.7.0 release notes](https://github.com/kubernetes-sigs/gateway-api/releases/tag/v1.7.0)

### CORS, mirroring, and redirects

- `CORS` is available in the Standard channel. Use a single `CORS` filter per
  rule; validation rejects multiple entries in the same `filters` list.
- `cors.allowCredentials` is boolean. When `cors.allowMethods` contains `"*"`,
  it must be the only entry. CEL rejects unsupported host values in allowed origins.
- Percentage-based mirroring for `HTTPRoute` and `GRPCRoute` is Standard,
  Extended. With Experimental CRDs installed, check
  `GatewayClass.status.supportedFeatures` for `HTTPRouteRequestPercentageMirror`.
- Redirect `HTTPRequestRedirectFilter.statusCode` values `303`, `307`, and `308`
  are Extended conformance; check controller support before using them.

### Route shape and attachment

- Standard `HTTPRoute` rules and individual matches accept `name`.
- Each `GRPCRoute` rule supports up to 64 entries in `matches`.
- A `TLSRoute` supports up to 4,096 entries each in `spec.hostnames` and
  `spec.rules`. Before deploying near those limits in production, validate
  representative manifests against your API server, etcd, and Gateway controller.
- Experimental default Gateways can attach eligible routes that omit an explicit
  reference to that Gateway.
- A `ListenerSet` listener allows routes from its own `ListenerSet` namespace by default.
- Controllers can allow or reject `HTTPRoute` and `GRPCRoute` on the same
  hostname; check controller behavior before sharing one.
- Controllers advertising `GatewayRouteHostnameIntersectionPrecedence` rank
  overlapping `HTTPRoute`, `GRPCRoute`, and `TLSRoute` objects by their original
  route hostname specificity when resolving precedence.

## Gateways, TLS, and policy quick reference

### Addresses and infrastructure

`Gateway.spec.addresses` uses `GatewaySpecAddress` entries. Omit `value` to
request automatic assignment for the selected type. Controllers without
`GatewayEmptyAddress` support must report `Programmed=False` with reason
`AddressNotAssigned` for an omitted value.

Experimental address `routability` is per entry: omit it for the controller
default, use `Cluster` for cluster scope, or use a domain-prefixed
implementation-specific value. Check `GatewayAddressRoutability` and
`GatewayAddressRoutabilityCluster` support.

For a missing, malformed, or unsupported resource referenced by
`Gateway.spec.infrastructure.parametersRef`, controllers should set
`Accepted=False` with reason `InvalidParameters`.
`Gateway.spec.infrastructure.annotations` allows up to 16 entries.

### Backend and frontend certificates

`BackendTLSPolicy` is generally available in the Standard channel for TLS from
the Gateway to backends. Its subject alternative names and TLS options are also
Standard, as is `TLSRouteMixedMode`. `subjectAltNames` validation takes precedence
over hostname validation. Read the policy's `ResolvedRefs` condition for reference resolution.

Use controller-supported implementation-specific strings in `wellKnownCACertificates`.
The certificate authority reference limit is 16. With experimental
`ClusterTrustBundle` support, `caCertificateRefs` can reference shared trust
bundles in `BackendTLSPolicy` or Gateway frontend TLS validation.

The Standard channel supports Gateway client certificate validation on incoming
connections whose TLS terminates at the Gateway; inspect listener conditions for
invalid configuration. It also supports selecting the client certificate presented
for backend TLS. Check Gateway `ResolvedRefs` for invalid Gateway-level backend TLS configuration.

### Experimental authentication, policies, and tracing

- `HTTPRoute` external authorization delegates to an external service,
  including gRPC authorization services. Gateway-wide authentication is also experimental.
- With `GatewayListenerFilters` support, listener `filters` on a `Gateway` or
  `ListenerSet` apply external authentication or payload processing before route selection.
- `XBackendTrafficPolicy` retry budgets limit retries across all endpoints of a
  destination Service; `budget.percent` caps retries relative to active requests,
  and `budget.interval` sets the request-counting window.
- `Mesh` provides mesh-wide configuration and advertises supported features in status.
- `XTelemetryPolicy` configures distributed tracing for Gateways. The Standardized
  Attribute Dictionary (GEP-5253) defines shared traffic attributes based on
  OpenTelemetry semantic conventions for this policy.

## Status and conformance quick reference

`GatewayClass.status.supportedFeatures` is Standard. Conformance can infer
features from that status, ignoring mesh features; a new flag runs the mesh suite
and infers features from `Mesh.status`.

`Gateway.status.attachedListenerSets` counts successfully attached `ListenerSet`
objects, and a Gateway listener's `attachedRoutes` counts only accepted routes.
A listener without a conflict can omit `Conflicted`; accept absence as well as
explicit `Conflicted=False`. A `ListenerSet` can report `ListenersNotValid`
as the reason for its `Programmed` condition.

Use the policies and conformance reference for feature selections, custom clients,
polling, suite parallelism, stale-status checks, certificate reference failures,
report URL validation, and missing-manifest errors.

Files in this skill

  • SKILL.md8.9 KB
  • coverage.json630 B
  • references/api-lifecycle-and-upgrades.md3.9 KB
  • references/gateways-listeners-and-tls.md4 KB
  • references/policies-status-and-conformance.md3.1 KB
  • references/routes-filters-and-attachment.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.