Skip to content

Commit c9294f8

Browse files
authored
Merge branch 'main' into tests/add-fail-fast
2 parents a33568d + 5d1a655 commit c9294f8

File tree

247 files changed

+15398
-797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+15398
-797
lines changed

.github/CHANGELOG_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ KNOWN ISSUES:
2929

3030
COMPATIBILITY:
3131

32-
- The Gateway API version: ``
32+
- Gateway API version: ``
3333
- NGINX version: ``
3434
- NGINX Plus version: ``
3535
- Kubernetes version: ``

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
- name: Authenticate to Google Cloud
8484
id: auth
85-
uses: google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2 # v2.1.4
85+
uses: google-github-actions/auth@62cf5bd3e4211a0a0b51f2c6d6a37129d828611d # v2.1.5
8686
with:
8787
token_format: access_token
8888
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY }}
@@ -162,15 +162,15 @@ jobs:
162162
163163
- name: Scan SBOM
164164
id: scan
165-
uses: anchore/scan-action@bc9adf64917dd9444d6cf4dd68620c34ca3a5f69 # v4.1.1
165+
uses: anchore/scan-action@64a33b277ea7a1215a3c142735a1091341939ff5 # v4.1.2
166166
with:
167167
sbom: "sbom-${{ inputs.image }}.json"
168168
only-fixed: true
169169
add-cpes-if-none: true
170170
fail-build: false
171171

172172
- name: Upload scan result to GitHub Security tab
173-
uses: github/codeql-action/upload-sarif@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
173+
uses: github/codeql-action/upload-sarif@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
174174
continue-on-error: true
175175
with:
176176
sarif_file: ${{ steps.scan.outputs.sarif }}

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
.github/.cache/buster-for-binary
148148
149149
- name: Create/Update Draft
150-
uses: lucacome/draft-release@8a63d32c79a171ae6048e614a8988f0ac3ed56d4 # v1.1.0
150+
uses: lucacome/draft-release@5d29432a46bff6c122cd4b07a1fb94e1bb158d34 # v1.1.1
151151
with:
152152
minor-label: "enhancement"
153153
major-label: "change"
@@ -159,7 +159,7 @@ jobs:
159159
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
160160

161161
- name: Download Syft
162-
uses: anchore/sbom-action/download-syft@ab9d16d4b419c9d1a02df5213fa0ebe965ca5a57 # v0.17.1
162+
uses: anchore/sbom-action/download-syft@61119d458adab75f756bc0b9e4bde25725f86a7a # v0.17.2
163163
if: github.ref_type == 'tag'
164164

165165
- name: Install Cosign

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
# Initializes the CodeQL tools for scanning.
5454
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
55+
uses: github/codeql-action/init@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
5656
with:
5757
languages: ${{ matrix.language }}
5858
build-mode: ${{ matrix.build-mode }}
@@ -64,6 +64,6 @@ jobs:
6464
# queries: security-extended,security-and-quality
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
67+
uses: github/codeql-action/analyze@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
6868
with:
6969
category: "/language:${{matrix.language}}"

.github/workflows/conformance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
working-directory: ./tests
156156

157157
- name: Upload profile to release
158-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
158+
if: ${{ startsWith(github.ref, 'refs/tags/') && inputs.enable-experimental == 'true' }}
159159
env:
160160
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161161
run: gh release upload ${{ github.ref_name }} conformance-profile.yaml --clobber

.github/workflows/docs-build-push.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,30 @@ on:
1818
paths:
1919
- "site/**"
2020

21+
concurrency:
22+
group: ${{ github.ref_name }}-docs-push
23+
cancel-in-progress: true
24+
2125
permissions:
2226
contents: read
2327

2428
jobs:
29+
vars:
30+
runs-on: ubuntu-22.04
31+
outputs:
32+
azure_creds: ${{ steps.vars.outputs.defined }}
33+
steps:
34+
- name: Check if variable is set
35+
id: vars
36+
env:
37+
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
38+
if: "${{ env.AZURE_CREDENTIALS != '' }}"
39+
run: echo "defined=true" >> $GITHUB_OUTPUT
40+
2541
call-docs-build-push:
26-
if: ${{ github.event.repository.fork == false }}
27-
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@03a9a3808fcb77cd0c19d7fa5d59b25565dd1d6d # v1.0.2
42+
needs: [vars]
43+
if: ${{ github.event.repository.fork == false && needs.vars.outputs.azure_creds == 'true' }}
44+
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@a733e84a262f8d5d885bfc8eac80bc85928da322 # v1.0.3
2845
permissions:
2946
pull-requests: write # needed to write preview url comment to PR
3047
contents: read

.github/workflows/mend.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- "v[0-9]+.[0-9]+.[0-9]+*"
79
paths-ignore:
810
- design/**
911
- deploy**
@@ -25,10 +27,13 @@ jobs:
2527
steps:
2628
- name: Checkout Repository
2729
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
30+
2831
- name: Download agent
2932
run: curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
33+
3034
- name: Verify JAR
3135
run: jarsigner -verify wss-unified-agent.jar
36+
3237
- name: Scan and upload
3338
env:
3439
PRODUCT_NAME: nginx-gateway-fabric_${{ github.ref_name }}

.github/workflows/nfr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Authenticate to Google Cloud
7777
id: auth
78-
uses: google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2 # v2.1.4
78+
uses: google-github-actions/auth@62cf5bd3e4211a0a0b51f2c6d6a37129d828611d # v2.1.5
7979
with:
8080
token_format: access_token
8181
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY }}

.github/workflows/release-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Get Release Notes
3737
id: notes
38-
uses: lucacome/draft-release@8a63d32c79a171ae6048e614a8988f0ac3ed56d4 # v1.1.0
38+
uses: lucacome/draft-release@5d29432a46bff6c122cd4b07a1fb94e1bb158d34 # v1.1.1
3939
with:
4040
config-path: .github/release-notes.yml
4141
dry-run: true

.github/workflows/scorecards.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060

6161
# Upload the results to GitHub's code scanning dashboard.
6262
- name: "Upload to code-scanning"
63-
uses: github/codeql-action/upload-sarif@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
63+
uses: github/codeql-action/upload-sarif@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
6464
with:
6565
sarif_file: results.sarif

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ linters:
5353
enable:
5454
- asasalint
5555
- asciicheck
56+
- copyloopvar
5657
- dupword
5758
- errcheck
5859
- errname
5960
- errorlint
60-
- exportloopref
6161
- fatcontext
6262
- ginkgolinter
6363
- gocheckcompilerdirectives

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
- javascript
4242

4343
- repo: https://github.com/golangci/golangci-lint
44-
rev: v1.59.1
44+
rev: v1.60.2
4545
hooks:
4646
- id: golangci-lint-full
4747
name: golangci-lint-root

CHANGELOG.md

+57-10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,53 @@ This document includes a curated changelog for each release. We also publish a c
44
a [GitHub release](https://github.com/nginxinc/nginx-gateway-fabric/releases), which, by contrast, is auto-generated
55
and includes links to all PRs that went into the release.
66

7+
## Release 1.4.0
8+
9+
_August 20, 2024_
10+
11+
FEATURES:
12+
13+
- Support IPv6. [2190](https://github.com/nginxinc/nginx-gateway-fabric/pull/2190)
14+
- Add support for TLS Passthrough using TLSRoutes. [2356](https://github.com/nginxinc/nginx-gateway-fabric/pull/2356)
15+
- Support cross-namespace routing with TLSRoutes. [2379](https://github.com/nginxinc/nginx-gateway-fabric/pull/2379)
16+
- Added server_zone metrics for NGINX Plus users. [2360](https://github.com/nginxinc/nginx-gateway-fabric/pull/2360)
17+
18+
BUG FIXES:
19+
20+
- Fixed issue where NGF Pod cannot recover if NGINX master process fails without cleaning up. [2131](https://github.com/nginxinc/nginx-gateway-fabric/pull/2131)
21+
- Leader election couldn't be disabled. [2307](https://github.com/nginxinc/nginx-gateway-fabric/pull/2307)
22+
- Disallow routes from attaching to listeners if not present in allowed routes. [2314](https://github.com/nginxinc/nginx-gateway-fabric/pull/2314)
23+
- Honor ReferenceGrants that allow GRPCRoutes to reference Services in different namespaces. [2337](https://github.com/nginxinc/nginx-gateway-fabric/pull/2337)
24+
- Fixed an issue that prevented ClientSettingsPolicies and ObservabilityPolicies from working when attached to an HTTPRoute where matching conditions were defined. [2318](https://github.com/nginxinc/nginx-gateway-fabric/pull/2318)
25+
- Replace TODO route condition with an Accepted/False condition. [2228](https://github.com/nginxinc/nginx-gateway-fabric/pull/2228)
26+
27+
DOCUMENTATION:
28+
29+
- Enhanced the troubleshooting guide with more details and scenarios. [2141](https://github.com/nginxinc/nginx-gateway-fabric/pull/2141)
30+
- Update kubectl exec syntax to remove deprecation warning. [2218](https://github.com/nginxinc/nginx-gateway-fabric/pull/2218). Thanks [aknot242](https://github.com/aknot242).
31+
- Add info on setting up host network access. [2263](https://github.com/nginxinc/nginx-gateway-fabric/pull/2263). Thanks [fardarter](https://github.com/fardarter).
32+
33+
HELM CHART:
34+
35+
- The version of the Helm chart is now 1.4.0
36+
- Add capability to set resource requests and limits on nginx-gateway deployment. [2216](https://github.com/nginxinc/nginx-gateway-fabric/pull/2216). Thanks to [anwbtom](https://github.com/anwbtom).
37+
- Add capability to configure custom annotations for the nginx-gateway-fabric pod(s). [2250](https://github.com/nginxinc/nginx-gateway-fabric/pull/2250). Thanks to [Robsta86](https://github.com/Robsta86).
38+
- Add helm chart examples. [2292](https://github.com/nginxinc/nginx-gateway-fabric/pull/2292)
39+
- Add seccompProfile. [2323](https://github.com/nginxinc/nginx-gateway-fabric/pull/2323)
40+
41+
COMPATIBILITY:
42+
43+
- Gateway API version: `1.1.0`
44+
- NGINX version: `1.27.1`
45+
- NGINX Plus version: `R32`
46+
- Kubernetes version: `1.25+`
47+
48+
CONTAINER IMAGES:
49+
50+
- Control plane: `ghcr.io/nginxinc/nginx-gateway-fabric:1.4.0`
51+
- Data plane: `ghcr.io/nginxinc/nginx-gateway-fabric/nginx:1.4.0`
52+
- Data plane with NGINX Plus: `private-registry.nginx.com/nginx-gateway-fabric/nginx-plus:1.4.0`
53+
754
## Release 1.3.0
855

956
_June 11, 2024_
@@ -63,7 +110,7 @@ KNOWN ISSUES:
63110

64111
COMPATIBILITY:
65112

66-
- The Gateway API version: `1.1.0`. This release is not compatible with v1.0.0 of the Gateway API. See the UPGRADE section above for instructions on how to upgrade.
113+
- Gateway API version: `1.1.0`. This release is not compatible with v1.0.0 of the Gateway API. See the UPGRADE section above for instructions on how to upgrade.
67114
- NGINX version: `1.27.0`
68115
- NGINX Plus version: `R32`
69116
- Kubernetes version: `1.25+`
@@ -116,7 +163,7 @@ KNOWN ISSUES:
116163

117164
COMPATIBILITY:
118165

119-
- The Gateway API version: `1.0.0`
166+
- Gateway API version: `1.0.0`
120167
- NGINX version: `1.25.4`
121168
- NGINX Plus version: `R31`
122169
- Kubernetes version: `1.23+`
@@ -165,7 +212,7 @@ UPGRADE:
165212

166213
COMPATIBILITY:
167214

168-
- The Gateway API version: `1.0.0`
215+
- Gateway API version: `1.0.0`
169216
- NGINX version: `1.25.3`
170217
- Kubernetes version: `1.23+`
171218

@@ -206,7 +253,7 @@ DOCUMENTATION:
206253

207254
COMPATIBILITY:
208255

209-
- The Gateway API version: `0.8.1`
256+
- Gateway API version: `0.8.1`
210257
- NGINX version: `1.25.2`
211258
- Kubernetes version: `1.23+`
212259

@@ -239,7 +286,7 @@ DOCUMENTATION:
239286

240287
COMPATIBILITY:
241288

242-
- The Gateway API version: `0.8.0`
289+
- Gateway API version: `0.8.0`
243290
- NGINX version: `1.25.2`
244291
- Kubernetes version: `1.23+`
245292

@@ -268,7 +315,7 @@ BUG FIXES:
268315

269316
COMPATIBILITY:
270317

271-
- The Gateway API version: `0.7.1`
318+
- Gateway API version: `0.7.1`
272319
- NGINX version: `1.25.x` \*
273320
- Kubernetes version: `1.21+`
274321

@@ -327,7 +374,7 @@ DEPENDENCIES:
327374

328375
COMPATIBILITY:
329376

330-
- The Gateway API version: `0.7.1`
377+
- Gateway API version: `0.7.1`
331378
- NGINX version: `1.25.x` \*
332379
- Kubernetes version: `1.21+`
333380

@@ -373,7 +420,7 @@ DEPENDENCIES:
373420

374421
COMPATIBILITY:
375422

376-
- The Gateway API version: `0.6.2`
423+
- Gateway API version: `0.6.2`
377424
- NGINX version: `1.23.x` \*
378425
- Kubernetes version: `1.21+`
379426

@@ -411,7 +458,7 @@ DEPENDENCIES:
411458

412459
COMPATIBILITY:
413460

414-
- The Gateway API version: `0.5.1`
461+
- Gateway API version: `0.5.1`
415462
- NGINX version: `1.21.x` \*
416463
- Kubernetes version: `1.21+`
417464

@@ -448,7 +495,7 @@ the [README](https://github.com/nginxinc/nginx-gateway-fabric) to learn how.
448495

449496
COMPATIBILITY:
450497

451-
- The Gateway API version: `0.5.0`
498+
- Gateway API version: `0.5.0`
452499
- NGINX version: `1.21.3`
453500
- Kubernetes version: `1.19+`
454501

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can find the comprehensive NGINX Gateway Fabric user documentation on the [N
3434
We publish NGINX Gateway Fabric releases on GitHub. See
3535
our [releases page](https://github.com/nginxinc/nginx-gateway-fabric/releases).
3636

37-
The latest release is [1.3.0](https://github.com/nginxinc/nginx-gateway-fabric/releases/tag/v1.3.0).
37+
The latest release is [1.4.0](https://github.com/nginxinc/nginx-gateway-fabric/releases/tag/v1.4.0).
3838

3939
The edge version is useful for experimenting with new features that are not yet published in a release. To use, choose
4040
the _edge_ version built from the [latest commit](https://github.com/nginxinc/nginx-gateway-fabric/commits/main)
@@ -45,7 +45,7 @@ to the correct versions:
4545

4646
| Version | Description | Installation Manifests | Documentation and Examples |
4747
|----------------|------------------------------------------|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
48-
| Latest release | For production use | [Manifests](https://github.com/nginxinc/nginx-gateway-fabric/tree/v1.3.0/deploy). | [Documentation](https://docs.nginx.com/nginx-gateway-fabric). [Examples](https://github.com/nginxinc/nginx-gateway-fabric/tree/v1.3.0/examples). |
48+
| Latest release | For production use | [Manifests](https://github.com/nginxinc/nginx-gateway-fabric/tree/v1.4.0/deploy). | [Documentation](https://docs.nginx.com/nginx-gateway-fabric). [Examples](https://github.com/nginxinc/nginx-gateway-fabric/tree/v1.4.0/examples). |
4949
| Edge | For experimental use and latest features | [Manifests](https://github.com/nginxinc/nginx-gateway-fabric/tree/main/deploy). | [Documentation](https://github.com/nginxinc/nginx-gateway-fabric/tree/main/site/content). [Examples](https://github.com/nginxinc/nginx-gateway-fabric/tree/main/examples). |
5050

5151
### Versioning
@@ -66,7 +66,8 @@ The following table lists the software versions NGINX Gateway Fabric supports.
6666

6767
| NGINX Gateway Fabric | Gateway API | Kubernetes | NGINX OSS | NGINX Plus |
6868
|----------------------|-------------|------------|-----------|------------|
69-
| Edge | 1.1.0 | 1.25+ | 1.27.0 | R32 |
69+
| Edge | 1.1.0 | 1.25+ | 1.27.1 | R32 |
70+
| 1.4.0 | 1.1.0 | 1.25+ | 1.27.1 | R32 |
7071
| 1.3.0 | 1.1.0 | 1.25+ | 1.27.0 | R32 |
7172
| 1.2.0 | 1.0.0 | 1.23+ | 1.25.4 | R31 |
7273
| 1.1.0 | 1.0.0 | 1.23+ | 1.25.3 | n/a |

build/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.8
2-
FROM golang:1.22 AS builder
2+
FROM golang:1.23 AS builder
33

44
WORKDIR /go/src/github.com/nginxinc/nginx-gateway-fabric
55

@@ -9,7 +9,7 @@ RUN go mod download
99
COPY . /go/src/github.com/nginxinc/nginx-gateway-fabric
1010
RUN make build
1111

12-
FROM golang:1.22 AS ca-certs-provider
12+
FROM golang:1.23 AS ca-certs-provider
1313

1414
FROM alpine:3.20 AS capabilizer
1515
RUN apk add --no-cache libcap

build/Dockerfile.nginx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.8
2-
FROM nginx:1.27.0-alpine-otel
2+
FROM nginx:1.27.1-alpine-otel
33

44
ARG NJS_DIR
55
ARG NGINX_CONF_DIR

charts/nginx-gateway-fabric/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: nginx-gateway-fabric
33
description: NGINX Gateway Fabric
44
type: application
5-
version: 1.3.0
5+
version: 1.4.0
66
appVersion: "edge"
77
kubeVersion: ">= 1.25.0-0"
88
home: https://github.com/nginxinc/nginx-gateway-fabric

charts/nginx-gateway-fabric/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# NGINX Gateway Fabric Helm Chart
33

4-
![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![AppVersion: edge](https://img.shields.io/badge/AppVersion-edge-informational?style=flat-square)
4+
![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square) ![AppVersion: edge](https://img.shields.io/badge/AppVersion-edge-informational?style=flat-square)
55

66
- [NGINX Gateway Fabric Helm Chart](#nginx-gateway-fabric-helm-chart)
77
- [Introduction](#introduction)

0 commit comments

Comments
 (0)