Skip to content

Commit 35e58fb

Browse files
committed
Merge branch 'main' into clustertrustbundles
2 parents c56eb6c + e8fefff commit 35e58fb

File tree

259 files changed

+6491
-1405
lines changed

Some content is hidden

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

259 files changed

+6491
-1405
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
- uses: ./tools/github-actions/setup-deps
3737

3838
- name: Initialize CodeQL
39-
uses: github/codeql-action/init@39edc492dbe16b1465b0cafca41432d857bdb31a # v3.29.1
39+
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4040
with:
4141
languages: ${{ matrix.language }}
4242

4343
- name: Autobuild
44-
uses: github/codeql-action/autobuild@39edc492dbe16b1465b0cafca41432d857bdb31a # v3.29.1
44+
uses: github/codeql-action/autobuild@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4545

4646
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@39edc492dbe16b1465b0cafca41432d857bdb31a # v3.29.1
47+
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4848
with:
4949
category: "/language:${{matrix.language}}"

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
retention-days: 5
4141

4242
- name: "Upload to code-scanning"
43-
uses: github/codeql-action/upload-sarif@39edc492dbe16b1465b0cafca41432d857bdb31a # v3.29.1
43+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4444
with:
4545
sarif_file: results.sarif

.github/workflows/trivy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
IMAGE=envoy-proxy/gateway-dev TAG=${{ github.sha }} make image
2626
2727
- name: Run Trivy vulnerability scanner
28-
uses: aquasecurity/trivy-action@76071ef0d7ec797419534a183b498b4d6366cf37 # v0.31.0
28+
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # v0.32.0
2929
with:
3030
image-ref: envoy-proxy/gateway-dev:${{ github.sha }}
3131
exit-code: '1'

api/v1alpha1/envoyproxy_types.go

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,32 @@ type EnvoyProxySpec struct {
158158
// +optional
159159
PreserveRouteOrder *bool `json:"preserveRouteOrder,omitempty"`
160160

161-
// DisableLuaValidation disables the Lua script validation for Lua EnvoyExtensionPolicies
162-
// +kubebuilder:default=false
161+
// LuaValidation determines strictness of the Lua script validation for Lua EnvoyExtensionPolicies
162+
// Default: Strict
163163
// +optional
164-
DisableLuaValidation *bool `json:"disableLuaValidation,omitempty"`
164+
LuaValidation *LuaValidation `json:"luaValidation,omitempty"`
165165
}
166166

167+
// +kubebuilder:validation:Enum=Strict;Disabled
168+
type LuaValidation string
169+
170+
const (
171+
// LuaValidationStrict is the default level and checks for issues during script execution.
172+
// Recommended if your scripts only use the standard Envoy Lua stream handle API.
173+
// For supported APIs, see: https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter#stream-handle-api
174+
LuaValidationStrict LuaValidation = "Strict"
175+
176+
// LuaValidationSyntax checks for syntax errors in the Lua script.
177+
// Note that this is not a full runtime validation and does not check for issues during script execution.
178+
// This is recommended if your scripts use external libraries that are not supported by Lua runtime validation.
179+
LuaValidationSyntax LuaValidation = "Syntax"
180+
181+
// LuaValidationDisabled disables all validations of Lua scripts.
182+
// Scripts will be accepted and executed without any validation checks.
183+
// This is not recommended unless both runtime and syntax validations are failing unexpectedly.
184+
LuaValidationDisabled LuaValidation = "Disabled"
185+
)
186+
167187
// RoutingType defines the type of routing of this Envoy proxy.
168188
type RoutingType string
169189

api/v1alpha1/timeout_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,10 @@ type HTTPClientTimeout struct {
8181
//
8282
// +optional
8383
IdleTimeout *gwapiv1.Duration `json:"idleTimeout,omitempty"`
84+
85+
// The stream idle timeout defines the amount of time a stream can exist without any upstream or downstream activity.
86+
// Default: 5 minutes.
87+
//
88+
// +optional
89+
StreamIdleTimeout *gwapiv1.Duration `json:"streamIdleTimeout,omitempty"`
8490
}

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/gateway-addons-helm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ The Envoy Gateway must be installed before installing this chart.
4141
Once Helm has been set up correctly, install the chart from dockerhub:
4242

4343
``` shell
44-
helm install eg-addons oci://docker.io/envoyproxy/gateway-addons-helm --version v0.0.0-latest -n monitoring --create-namespace
44+
helm install eg-addons oci://docker.io/envoyproxy/gateway-addons-helm --version v0.0.0-latest -n monitoring --create-namespace
4545
```
4646

4747
You can find all helm chart release in [Dockerhub](https://hub.docker.com/r/envoyproxy/gateway-addons-helm/tags)
4848

4949
To uninstall the chart:
5050

5151
``` shell
52-
helm uninstall eg-addons -n monitoring
52+
helm uninstall eg-addons -n monitoring
5353
```
5454

5555
## Values

charts/gateway-crds-helm/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,20 @@ If you do, make sure that you don't install the CRDs again when installing the E
1717
Once Helm has been set up correctly, install the chart from dockerhub:
1818

1919
``` shell
20-
helm install gateway-crds oci://docker.io/envoyproxy/gateway-crds-helm --version v0.0.0-latest -n envoy-gateway-system --create-namespace
20+
helm template eg-crds oci://docker.io/envoyproxy/gateway-crds-helm \
21+
--version v0.0.0-latest | kubectl apply --server-side -f -
2122
```
2223

24+
**Note**: We're using `helm template` piped into `kubectl apply` instead of `helm install` due to a [known Helm limitation](https://github.com/helm/helm/pull/12277)
25+
related to large CRDs in the `templates/` directory.
26+
2327
You can find all helm chart release in [Dockerhub](https://hub.docker.com/r/envoyproxy/gateway-crds-helm/tags)
2428

2529
To uninstall the chart:
2630

2731
``` shell
28-
helm uninstall gateway-crds -n envoy-gateway-system
32+
helm template eg-crds oci://docker.io/envoyproxy/gateway-crds-helm \
33+
--version v0.0.0-latest | kubectl delete --server-side -f -
2934
```
3035

3136
## Values

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_clienttrafficpolicies.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,12 @@ spec:
726726
initiation and stops when either the last byte of the request is sent upstream or when the response begins.
727727
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
728728
type: string
729+
streamIdleTimeout:
730+
description: |2-
731+
The stream idle timeout defines the amount of time a stream can exist without any upstream or downstream activity.
732+
Default: 5 minutes.
733+
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
734+
type: string
729735
type: object
730736
tcp:
731737
description: Timeout settings for TCP.

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_envoyproxies.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ spec:
270270
the number of cpuset threads on the platform.
271271
format: int32
272272
type: integer
273-
disableLuaValidation:
274-
default: false
275-
description: DisableLuaValidation disables the Lua script validation
276-
for Lua EnvoyExtensionPolicies
277-
type: boolean
278273
extraArgs:
279274
description: |-
280275
ExtraArgs defines additional command line options that are provided to Envoy.
@@ -442,6 +437,14 @@ spec:
442437
and the log level is the value. If unspecified, defaults to "default: warn".
443438
type: object
444439
type: object
440+
luaValidation:
441+
description: |-
442+
LuaValidation determines strictness of the Lua script validation for Lua EnvoyExtensionPolicies
443+
Default: Strict
444+
enum:
445+
- Strict
446+
- Disabled
447+
type: string
445448
mergeGateways:
446449
description: |-
447450
MergeGateways defines if Gateway resources should be merged onto the same Envoy Proxy Infrastructure.

0 commit comments

Comments
 (0)