Skip to content

Commit 268a3d2

Browse files
authored
Merge branch 'main' into client-overall-tracing-sampling
2 parents 32a43f5 + 632dca5 commit 268a3d2

64 files changed

Lines changed: 1139 additions & 175 deletions

File tree

Some content is hidden

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

.github/workflows/build_and_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
outputs:
2828
run_test_workflow: ${{ steps.check-changes.outputs.run_test_workflow }}
2929
steps:
30-
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
30+
- uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
3131
id: check-changes
3232
# A dependent job will be automatically skipped if its parent job is skipped.
3333
# So we skip this step in pull_request event if the changes are not relevant.
@@ -368,7 +368,7 @@ jobs:
368368

369369
# build and push image
370370
- name: Login to DockerHub
371-
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
371+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
372372
with:
373373
username: ${{ vars.DOCKERHUB_USERNAME }}
374374
password: ${{ secrets.DOCKERHUB_PASSWORD }}

.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@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
39+
uses: github/codeql-action/init@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v3.29.5
4040
with:
4141
languages: ${{ matrix.language }}
4242

4343
- name: Autobuild
44-
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
44+
uses: github/codeql-action/autobuild@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v3.29.5
4545

4646
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
47+
uses: github/codeql-action/analyze@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v3.29.5
4848
with:
4949
category: "/language:${{matrix.language}}"

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
} >> "$GITHUB_ENV"
108108
109109
- name: Login to DockerHub
110-
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
110+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
111111
with:
112112
username: ${{ vars.DOCKERHUB_USERNAME }}
113113
password: ${{ secrets.DOCKERHUB_PASSWORD }}

.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@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
43+
uses: github/codeql-action/upload-sarif@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v3.29.5
4444
with:
4545
sarif_file: results.sarif

api/v1alpha1/authorization_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ type Principal struct {
164164
//
165165
// If multiple entries are specified, one of the ClientIPGeoLocation entries must match for the rule to match.
166166
//
167-
// The client IP is inferred from the X-Forwarded-For header or a custom header.
167+
// The client IP is inferred from the X-Forwarded-For header, a custom header, or the
168+
// direct downstream connection source address (the TCP peer of the connection terminated by Envoy).
168169
// You can use the `ClientIPDetection` field in the `ClientTrafficPolicy` to configure the client IP detection.
169170
//
170171
// +optional

api/v1alpha1/clienttrafficpolicy_types.go

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ const (
281281

282282
// ClientIPDetectionSettings provides configuration for determining the original client IP address for requests.
283283
//
284-
// +kubebuilder:validation:XValidation:rule="!(has(self.xForwardedFor) && has(self.customHeader))",message="customHeader cannot be used in conjunction with xForwardedFor"
284+
// Exactly one of XForwardedFor, CustomHeader, or DirectSourceIP must be set.
285+
// +kubebuilder:validation:XValidation:rule="[has(self.xForwardedFor), has(self.customHeader), has(self.directSourceIP)].filter(x, x).size() == 1",message="exactly one of xForwardedFor, customHeader, or directSourceIP must be set"
285286
type ClientIPDetectionSettings struct {
286287
// XForwardedForSettings provides configuration for using X-Forwarded-For headers for determining the client IP address.
287288
//
@@ -294,8 +295,25 @@ type ClientIPDetectionSettings struct {
294295
//
295296
// +optional
296297
CustomHeader *CustomHeaderExtensionSettings `json:"customHeader,omitempty"`
298+
// DirectSourceIP configures the geoip filter to use the downstream connection
299+
// source address (the TCP peer of the connection terminated by Envoy) as the client IP.
300+
//
301+
// Use this in L4-transparent topologies where a load balancer preserves the original
302+
// client source IP at TCP level and does not populate XFF or a custom header — for
303+
// example, AWS NLB with target-type=instance + externalTrafficPolicy=Local, or
304+
// Azure Standard Load Balancer.
305+
//
306+
// Mutually exclusive with XForwardedFor and CustomHeader.
307+
//
308+
// +optional
309+
DirectSourceIP *DirectSourceIPSettings `json:"directSourceIP,omitempty"`
297310
}
298311

312+
// DirectSourceIPSettings configures client IP detection from the downstream
313+
// connection source address. It currently has no fields; its presence opts the listener
314+
// into using the TCP peer address as the client IP.
315+
type DirectSourceIPSettings struct{}
316+
299317
// XForwardedForSettings provides configuration for using X-Forwarded-For headers for determining the client IP address.
300318
// Refer to https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#x-forwarded-for
301319
// for more details.

api/v1alpha1/zz_generated.deepcopy.go

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

charts/gateway-addons-helm/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ dependencies:
1919
version: 1.3.1
2020
- name: opentelemetry-collector
2121
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
22-
version: 0.159.2
23-
digest: sha256:2b45964580ba403a616a6546a3f544878c757dddb72854509294fd970d2d2794
24-
generated: "2026-07-01T04:22:11.232246258Z"
22+
version: 0.164.0
23+
digest: sha256:a382a12fb2d3fdf05ab3fbac1139ff026afbd19af55d897af5950bf89254f56e
24+
generated: "2026-07-08T04:13:12.003862967Z"

charts/gateway-addons-helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ dependencies:
5151
condition: tempo.enabled
5252
- name: opentelemetry-collector
5353
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
54-
version: 0.159.2
54+
version: 0.164.0
5555
condition: opentelemetry-collector.enabled

charts/gateway-addons-helm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ An Add-ons Helm chart for Envoy Gateway
2626
| https://grafana.github.io/helm-charts | grafana | 10.5.15 |
2727
| https://grafana.github.io/helm-charts | loki | 7.0.0 |
2828
| https://grafana.github.io/helm-charts | tempo | 1.3.1 |
29-
| https://open-telemetry.github.io/opentelemetry-helm-charts | opentelemetry-collector | 0.159.2 |
29+
| https://open-telemetry.github.io/opentelemetry-helm-charts | opentelemetry-collector | 0.164.0 |
3030
| https://prometheus-community.github.io/helm-charts | prometheus | 29.10.1 |
3131

3232
## Usage
@@ -172,7 +172,7 @@ helm uninstall eg-addons -n monitoring
172172
| opentelemetry-collector.enabled | bool | `false` | |
173173
| opentelemetry-collector.fullnameOverride | string | `"otel-collector"` | |
174174
| opentelemetry-collector.image.repository | string | `"otel/opentelemetry-collector-contrib"` | |
175-
| opentelemetry-collector.image.tag | string | `"0.155.0"` | |
175+
| opentelemetry-collector.image.tag | string | `"0.156.0"` | |
176176
| opentelemetry-collector.mode | string | `"deployment"` | |
177177
| opentelemetry-collector.ports.datadog.containerPort | int | `8126` | |
178178
| opentelemetry-collector.ports.datadog.enabled | bool | `true` | |

0 commit comments

Comments
 (0)