Skip to content

fix: default backend TLS max version to 1.3 - #9412

Merged
arkodg merged 2 commits into
envoyproxy:mainfrom
nokia:fix/backend-tls-default-max-version-9395
Jul 12, 2026
Merged

arkodg merged 2 commits into
envoyproxy:mainfrom
nokia:fix/backend-tls-default-max-version-9395

Conversation

@vishwas-bm

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This bug fix applies the documented defaults (min TLS 1.2, max TLS 1.3) in applyBackendTLSSetting when the versions are not configured.

Which issue(s) this PR fixes:
Fixes #9395


PR Checklist

  • Authorship & ownership: Coding agents / AI assistants are welcome, but I have reviewed every change, understand how and why it works, can explain and maintain it, and take full responsibility for this PR. I have not submitted generated output I do not understand.
  • DCO: All commits are signed off (git commit -s). See DCO: Sign your work.
  • API agreed first: If this PR contains API changes (changes under /api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.
  • Required checks pass: make generate gen-check, make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, but gen-check, lint, and coverage MUST pass.)
  • Tests added/updated: New/changed code is covered by appropriate tests. N/A if this PR does not contain code changes.
  • Docs: User-facing changes update the docs, either in this PR or a follow-up PR. N/A if this PR does not contain user-facing changes.
  • Release notes: For any non-trivial change, added a release-note fragment under release-notes/current/<section>/<pr-number>-<slug>.md (see release-notes/current/README.md for sections and naming). N/A if this PR does not contain non-trivial changes.
  • Generated files committed: Ran make gen-check and committed the result if API/helm charts/modules changed.
  • Scope & compatibility: The PR is reasonably scoped (no unrelated changes) and preserves backward compatibility, or any breaking change is called out above and documented in release-notes/current/breaking_changes/.
  • Codex review: Requested a Codex review and addressed all of its comments.
  • Copilot review: Requested a Copilot review and addressed all of its comments.

Backend (upstream) TLS connections were silently capped at TLS 1.2.
Apply the defaults (min 1.2, max 1.3) in applyBackendTLSSetting when not configured.

Fixes envoyproxy#9395

Signed-off-by: vishwas-bm <[email protected]>
@vishwas-bm
vishwas-bm requested a review from a team as a code owner July 3, 2026 12:24
@netlify

netlify Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 056f539
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6a4e4d8271dd580008cf094a
😎 Deploy Preview https://deploy-preview-9412--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@zirain

zirain commented Jul 3, 2026

Copy link
Copy Markdown
Member

@guydc is this a breaking change? should we fix the document instead?

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e369633d80

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread internal/gatewayapi/listener_test.go Resolved
@codecov

codecov Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.37%. Comparing base (688ade8) to head (056f539).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9412      +/-   ##
==========================================
+ Coverage   75.35%   75.37%   +0.01%     
==========================================
  Files         252      252              
  Lines       41492    41496       +4     
==========================================
+ Hits        31266    31276      +10     
+ Misses       8113     8107       -6     
  Partials     2113     2113              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vishwas-bm
vishwas-bm force-pushed the fix/backend-tls-default-max-version-9395 branch from e369633 to d7d8a30 Compare July 3, 2026 12:56
@jukie

jukie commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

I suspect this was a misunderstanding based on the envoy docs: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto

tls_maximum_protocol_version
(extensions.transport_sockets.tls.v3.TlsParameters.TlsProtocol) Maximum TLS protocol version. By default, it’s TLSv1_2 for clients and TLSv1_3 for servers.

I don't think there's a scenario where a connection that previously succeeded would now fail so I think bugfix is right vs breaking change.

@jukie
jukie requested review from a team and zirain July 3, 2026 19:15
@vishwas-bm

Copy link
Copy Markdown
Contributor Author

@zirain
Any further changes needed on this ?

@arkodg arkodg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@arkodg
arkodg merged commit 581a9c5 into envoyproxy:main Jul 12, 2026
38 checks passed
@vishwas-bm
vishwas-bm deleted the fix/backend-tls-default-max-version-9395 branch July 16, 2026 09:45
jukie pushed a commit to jukie/gateway that referenced this pull request Jul 22, 2026
Backend (upstream) TLS connections were silently capped at TLS 1.2.
Apply the defaults (min 1.2, max 1.3) in applyBackendTLSSetting when not configured.

Fixes envoyproxy#9395

Signed-off-by: vishwas-bm <[email protected]>
(cherry picked from commit 581a9c5)
Signed-off-by: jukie <[email protected]>
jukie added a commit that referenced this pull request Jul 22, 2026
* detect ipv6 literal hosts in url2cluster and token endpoint check (#9165)

* detect ipv6 literal hosts in url2cluster and token endpoint check

Signed-off-by: dxbjavid <[email protected]>

* add release note for ipv6 literal endpoint fix

Signed-off-by: dxbjavid <[email protected]>

---------

Signed-off-by: dxbjavid <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: Javid Khan <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit 30d456e)
Signed-off-by: jukie <[email protected]>

* Revert LuaPerRoute source materialization for Lua (#9426)

* Revert "[xds] stabilize listener-level Lua XDS filters to avoid listener drain (#8598)"

This reverts commit 80b2762.

Why:
- Back out the LuaPerRoute stabilization layer together with #8355 while
  investigating the Gateway-scoped Lua memory regression from #9355.
- #8598 only stabilizes per-route Lua HCM slot names; it still leaves Lua
  source materialized per route, so it is not sufficient for the memory issue.

Test plan:
- `go test ./internal/xds/translator`

Signed-off-by: Arko Dasgupta <[email protected]>

* Revert "refactor/perf: use LuaPerRoute instead of FilterConfig (#8355)"

This reverts commit f31ac4e.

Why:
- #8355 materialized Gateway-targeted Lua as per-route LuaPerRoute source code.
- With large route tables, identical Gateway-scoped scripts are duplicated across
  route entries and worker Lua runtime state, matching the memory regression
  reported in #9355.
- Restoring listener-level Lua source avoids scaling the Gateway-scoped script
  with route count.

Test plan:
- `go test ./internal/xds/translator`

Fixes #9355

Signed-off-by: Arko Dasgupta <[email protected]>

* add filterContext in per route level

Signed-off-by: Arko Dasgupta <[email protected]>

* [xds] scope Lua revert to translator changes

Remove unrelated Gateway API status-merge and redirect regression files that were accidentally included with the filterContext follow-up.

Add a breaking-change fragment documenting the listener-level Lua source layout and filter-key migration for EnvoyPatchPolicy and extension consumers.

Test: make test
Signed-off-by: Arko Dasgupta <[email protected]>

---------

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 76bd888)
Signed-off-by: jukie <[email protected]>

* fix: default backend TLS max version to 1.3 (#9412)

Backend (upstream) TLS connections were silently capped at TLS 1.2.
Apply the defaults (min 1.2, max 1.3) in applyBackendTLSSetting when not configured.

Fixes #9395

Signed-off-by: vishwas-bm <[email protected]>
(cherry picked from commit 581a9c5)
Signed-off-by: jukie <[email protected]>

* fix: add default retry policy for Envoy wasm module fetch (#9462)

add default retry policy for Envoy wasm module fetch

Signed-off-by: jukie <[email protected]>
(cherry picked from commit 3e18557)
Signed-off-by: jukie <[email protected]>

* fix/refactor: deep copy status in translator for all resources (#9458)

Signed-off-by: Rudrakh Panigrahi <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit e51b417)
Signed-off-by: jukie <[email protected]>

* fix(logs): restore ISO 8601 timestamp format (#9493)

* fix(logs): restore ISO 8601 timestamp format

Signed-off-by: Florian Wiegand <[email protected]>

* fix(logs): add release note for ISO 8601 timestamp fix

Signed-off-by: Florian Wiegand <[email protected]>

---------

Signed-off-by: Florian Wiegand <[email protected]>
(cherry picked from commit 2621405)
Signed-off-by: jukie <[email protected]>

* fix: unreferenced Secret events trigger reconciliation when HTTPRouteFilter CRD exists (#9488)

* fix: unreferenced Secret events trigger reconciliation when HTTPRouteFilter CRD exists

isHTTPRouteFilterReferencingSecret returned true on both branches, so with
the HTTPRouteFilter CRD installed (the default), every Secret write in the
cluster passed validateSecretForReconcile and enqueued a full reconcile.
Any high-frequency Secret writer (secret sync controllers, cert rotation)
drives the controller to reconcile continuously.

Return false when no HTTPRouteFilter references the Secret, matching the
other is*ReferencingSecret helpers. Enable hrfCRDExists in the predicate
test so the existing unreferenced-Secret case guards this path, and add
positive/negative cases for HTTPRouteFilter credential injection refs.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: James Hong <[email protected]>
(cherry picked from commit 4d7686c)
Signed-off-by: jukie <[email protected]>

---------

Signed-off-by: dxbjavid <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: Javid Khan <[email protected]>
Signed-off-by: jukie <[email protected]>
Signed-off-by: Arko Dasgupta <[email protected]>
Signed-off-by: vishwas-bm <[email protected]>
Signed-off-by: Rudrakh Panigrahi <[email protected]>
Signed-off-by: Florian Wiegand <[email protected]>
Signed-off-by: James Hong <[email protected]>
Co-authored-by: Javid Khan <[email protected]>
Co-authored-by: zirain <[email protected]>
Co-authored-by: Arko Dasgupta <[email protected]>
Co-authored-by: vishwas-bm <[email protected]>
Co-authored-by: Rudrakh Panigrahi <[email protected]>
Co-authored-by: Florian Wiegand <[email protected]>
Co-authored-by: James Hong <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Gateway API Extensions

4 participants