Skip to main content

Http Route

HttpRoute

Defines the high-level intent for routing HTTP(S) traffic.

The engine translates this manifest into service mesh routes or load balancer URL maps, supporting features like path-based routing, header manipulation, and traffic splitting.

PropertyTypeDescription
apiVersionstring
kindstring
metadatamap
specSpec

Target

PropertyTypeDescription
kindstring
namestring

Spec

Contains the user-defined routing rules for HTTP traffic. Encapsulates rule logic to match, transform, and forward HTTP requests to backend targets.

PropertyTypeDescription
descriptionstringThis description is optional but will drastically improve the understand of the AI assistant about the structural elements of the organization
ruleslist of HttpRouteRuleA list of rules that define how to match and forward HTTP requests. Each rule in this list is translated into a rules block configuring the underlying request routing. The route is associated with an ingress gateway and a hostname derived from the manifest's name.

HttpRouteRule

Combines a match condition with an execution action for HTTP traffic.

The fundamental building block of a traffic routing table for google_network_services_http_route.

PropertyTypeDescription
matcheslist of HttpRouteRuleMatch
authenticationlist of RouteRuleAuthenticationConfigRule Authentication Configuration. Defines the authentication configuration for this rule. If not specified, the rule will be unauthenticated.
authorizationlist of ComputedAuthorizationAccessRuleCheckRule Authorization Configuration. Defines the authorization configuration for this rule. If not specified, the rule will be open to all users.

RouteRuleAuthenticationConfig

Configures authentication exceptions or specifics for a route rule.

Translates into localized Gateway or Load Balancer configurations dictating how auth assertions are evaluated for specific matched paths.

PropertyTypeDescription
typestring
tenantslist of stringTenant-specific authentication configuration. A list of IdentityProvider names allowed to access this route. Only applicable if type is IDENTITY_PROVIDER.

HttpRouteRuleMatch

Comprehensive matching criteria for an HTTP request.

Forms the crucial conditional backbone of a network services route, steering traffic based on path, headers, or query contents.

PropertyTypeDescription
ignoreCasebool
fullPathMatchstring
prefixMatchstring
regexMatchstring
headerslist of HttpRouteRuleMatchHeader
queryParameterslist of QueryParameterMatch

ComputedAuthorizationAccessRuleCheck

Represents a computed access check for a route rule.

Maps an expected identity tuple (namespace, relation, object) that the AuthZ extension must validate during the request flow.

PropertyTypeDescription
namespacestringThis value is a direct reflection of 'spec.authorization.namespace' from a child 'HttpRoute' or 'GrpcRoute' manifest.
relationstringThis value is a direct reflection of 'spec.authorization.relation' from a child 'HttpRoute' or 'GrpcRoute' manifest.
objectstringThis value is a direct reflection of 'spec.authorization.object' from a child 'HttpRoute' or 'GrpcRoute' manifest.

HttpRouteRuleMatchHeader

Defines a condition to match against HTTP headers.

Creates the evaluating rule within a routeMatch.headers block inside a GCP HttpRoute, aiding in granular traffic splitting.

PropertyTypeDescription
headerstring
invertMatchbool
exactMatchstring
regexMatchstring
prefixMatchstring
presentMatchbool
suffixMatchstring
rangeMatchRangeMatch

QueryParameterMatch

Defines a condition to match against HTTP query parameters.

Populates the routeMatch.queryParameters block within a GCP HttpRoute resource.

PropertyTypeDescription
queryParameterstring
exactMatchstring
regexMatchstring
presentMatchstring

RangeMatch

Tests a header value against an integer scale.

Adds a numeric rangeMatch parameter to a header matching rule in the underlying network service map.

PropertyTypeDescription
startint64
endint64