Project: Contour (Orchestration & Management / Service Proxy)
File: CHANGELOG-v1.25.0.md

We are delighted to present version v1.25.0 of Contour, our layer 7 HTTP reverse proxy for Kubernetes clusters. A big thank you to everyone who contributed to the release. Contour's HTTPProxy now supports configuring Envoy's for allowing or denying requests by IP. An HTTPProxy can optionally include one or more IP filter rules, which define CIDR ranges to allow or deny requests based on origin IP. Filters can indicate whether the direct IP should be used or whether a reported IP from `PROXY` or `X-Forwarded-For` should be used instead. If the latter, Contour's `numTrustedHops` setting will be respected when determining the source IP. Filters defined at the VirtualHost level apply to all routes, unless overridden by a route-specific filter. For more information, see: (#5008, @ecordell) Contour now supports exporting tracing data to The Contour configuration file and ContourConfiguration CRD will be extended with a new optional `tracing` section. This configuration block, if present, will enable tracing and will define the trace properties needed to generate and export trace data. Custom service name, the default is `contour`. Custom sampling rate, the default is `100`. Custom the maximum length of the request path, the default is `256`. Customize span tags from literal and request headers. Customize whether to include the pod's hostname and namespace. (#5043, @yangyy93) Contour now supports external authorization for all hosts by setting the config as part of the `contourConfig` like so: ```yaml globalExtAuth: extensionService: projectcontour-auth/htpasswd failOpen: false authPolicy: context: header1: value1 header2: value2 responseTimeout: 1s ``` Individual hosts can also override or opt out of this global configuration. You can read more about this feature in detail in the . (#4994, @clayton-gonsalves) HttpProxy conditions block now also supports exact path match condition. (#5000, @arjunsalyan) Contour now supports specifying an `internalRedirectPolicy` on a `Route` to handle 3xx redirects internally, that is capturing a configurable 3xx redirect response, synthesizing a new request, sending it to the upstream specified by the new route match, and returning the redirected response as the response to the original request. (#5010, @Jean-Daniel) Contour now implements HTTP query parameter matching for HTTPProxy resource-based routes. It supports `Exact`, `Prefix`, `Suffix`, `Regex` and `Contains` string matching conditions together with the `IgnoreCase` modifier and also the `Present` matching condition. For example, the following HTTPProxy will route requests based on the configured condition examples for the given query parameter `search`: ```yaml apiVersion: projectcontour.io/v1 kind: HTTPProxy metadata: name: httpproxy-queryparam-matching spec: routes: conditions: queryParam: name: search exact: example services: name: s1 port: 80 conditions: queryParam: name: search prefix: PreFix ignoreCase: true services: name: s2 port: 80 conditions: queryParam: name: search suffix: postfix services: name: s3 port: 80 conditions: queryParam: name: search regex: ^regular.* services: name: s4 port: 80 conditions: queryParam: name: search contains: inside services: name: s5 port: 80 conditions: queryParam: name: search present: true services: name: s6 port: 80 ``` (#5036, @relu) The `contour serve` command takes a new optional flag, `--disable-feature`, that allows disabling certain features. The flag is used to disable the informer for a custom resource, effectively making the corresponding CRD optional in the cluster. You can provide the flag multiple times. Current options include `extensionservices` and the experimental Gateway API features `tlsroutes` and `grpcroutes`. For example, to disable ExtensionService CRD, use the flag as follows: `--disable-feature=extensionservices`. (#5080, @nsimons) Contour now implements GRPCRoute (https://gateway-api.sigs.k8s.io/api-types/grpcroute/). The "core conformance" parts of the spec are implemented. See https://projectcontour.io/docs/1.25/guides/grpc/#gateway-api-configuration on how to use

(#5114, @fangfpeng) Add `AllowPrivateNetwork` to `CORSPolicy` for support Access-Control-Allow-Private-Network. (#5034, @lvyanru8200) Optimize processing of HTTPProxy, Secret and other objects by avoiding full object comparison. This reduces CPU usage during object updates. (#5064, @tsaarni) Gateway API: support the `path` field on the HTTPRoute RequestRedirect filter. (#5068, @skriss) Optimized the memory usage when handling Secrets in Kubernetes client informer cache. (#5099, @tsaarni) Adds a new gauge metric, `contourdagcache_object`, to indicate the total number of items that are currently in the DAG cache. (#5109, @izturn) Gateway API: for routes, replace use of custom `NotImplemented` condition with the upstream `Accepted: false` condition with reason `UnsupportedValue` to match the spec. (#5125, @skriss) `%REQ()` operator in request/response header policies now properly supports HTTP/2 pseudo-headers, header fallbacks, and truncating header values. (#5130, @sunjayBhatia) Gateway API: for routes, always set ResolvedRefs condition, even if true to match the spec. (#5131, @izturn) Set 502 response if include references another root. (#5157, @liangyuanpeng) Update to support Gateway API v0.6.2, which includes updated conformance tests. See release notes . (#5194, @sunjayBhatia) HTTPProxy: support Host header rewrites per-service. (#5195, @fangfpeng) Contour now sets `GOMAXPROCS` to match the number of CPUs available to the container which results in lower and more stable CPU usage under high loads and where the container and node CPU counts differ significantly. This is the default behavior but can be overridden by specifying `GOMAXPROCS` to a fixed value as an environment variable. (#5211, @rajatvig) Gateway API: Contour now always sets the Accepted condition on Gateway Listeners. If there is a specific validation error of top-level fields (port, protocol, etc.) the status is set to False, otherwise it is set to True. (#5220, @sunjayBhatia) Gateway API: Envoy containers manifests should use value from `envoy.health.port` and `envoy.metrics.port` if they are defined in `ContourDeployment.spec.runtimeSettings`. (#5233, @Jean-Daniel) Gateway API: support regex path/header match for HTTPRoute and regex header match for GRPCRoute. (#5239, @fangfpeng) Fix HTTPProxy duplicate include detection. If we have multiple distinct includes on the same path but different headers or query parameters, duplicates of any include conditions after the first were not detected. (#5296, @sunjayBhatia) Gateway API: support regular expressions in HTTPRoute query param match type. (#5310, @padlar) Supported/tested Kubernetes versions are now 1.25, 1.26, 1.27. (#5318, @skriss) Updates Envoy to v1.26.1. See the for details. (#5320, @skriss) Updates to Go 1.20.4. See the for more information. (#5347, @skriss) Upgrade algolia docsearch to v3 on the docs website (#5129, @pnbrown) Updates Steve Kriss as Tech Lead and moves Nick Young to Emeritus Maintainer (#5151, @pnbrown) Move to a single set of docs per minor release, e.g. 1.24, 1.23 and 1.22. (#5163, @skriss) For a fresh install of Contour, consult the . To upgrade an existing Contour installation, please consult the . Contour v1.25.0 is tested against Kubernetes 1.25 through 1.27. Were immensely grateful for all the community contributions that help make Contour even better! For this release, we would like to give a special shoutout to the folks who joined our ContribFest at KubeCon EU 2023: @padlar @IdanAtias @owayss @shayyxi @bhavaniMiro @umutkocasarac We'd also like to thank the other contributors to this release: @Jean-Daniel @arjunsalyan @clayton-gonsalves @ecordell @fangfpeng @izturn @liangyuanpeng @lvyanru8200 @nsimons @pnbrown @rajatvig @relu @yangyy93 If you're using Contour and want to add your organization to our adopters list, please visit this . If you prefer to keep your organization name anonymous but still give us feedback into your usage and scenarios for Contour, please post on this .