Skip to content

perf: store upstream CA bundles once per gateway - #10072

Merged
zhaohuabing merged 7 commits into
envoyproxy:mainfrom
zhaohuabing:fix/share-immutable-tls-cert-bytes
Sep 28, 2026
Merged

zhaohuabing merged 7 commits into
envoyproxy:mainfrom
zhaohuabing:fix/share-immutable-tls-cert-bytes

Conversation

@zhaohuabing

@zhaohuabing zhaohuabing commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Fixes the CA part of #10069

@netlify

netlify Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 2e9fbfc
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6ab9b7231607f30008824fbe
😎 Deploy Preview https://deploy-preview-10072--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.

@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.55556% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.39%. Comparing base (9175177) to head (2e9fbfc).

Files with missing lines Patch % Lines
internal/gatewayapi/backendtlspolicy.go 95.16% 3 Missing ⚠️
internal/xds/translator/ca_registry.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10072      +/-   ##
==========================================
+ Coverage   81.37%   81.39%   +0.01%     
==========================================
  Files         265      266       +1     
  Lines       41079    41150      +71     
==========================================
+ Hits        33427    33493      +66     
- Misses       7651     7656       +5     
  Partials        1        1              

☔ 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.

@zhaohuabing

Copy link
Copy Markdown
Member Author

/retest

@zhaohuabing
zhaohuabing force-pushed the fix/share-immutable-tls-cert-bytes branch 2 times, most recently from 13fc2c8 to e868833 Compare September 23, 2026 09:04
@zhaohuabing zhaohuabing added this to the v1.10.0-rc.1 Release milestone Sep 23, 2026
@zhaohuabing
zhaohuabing marked this pull request as ready for review September 23, 2026 09:48
@zhaohuabing
zhaohuabing requested a review from a team as a code owner September 23, 2026 09:48
@zhaohuabing
zhaohuabing requested a review from zirain September 23, 2026 10:02
@guydc

guydc commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Nice. What about TLS client certs? When using EnvoyProxy BackendTLS, all the routes will reuse that client cert as well. While CA bundles are typically larger, caching client certs is also beneficial.

Comment thread internal/ir/deepcopy.go Resolved
@guydc

guydc commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

is there a way for this fix to collapse SDS secrets? basically, make k8s_secret:sds_secret 1:1 ? This can reduce XDS size and maybe also improve cluster warming?

@zhaohuabing
zhaohuabing force-pushed the fix/share-immutable-tls-cert-bytes branch 7 times, most recently from 6f7bc62 to 7833bb0 Compare September 24, 2026 07:40
Comment thread internal/gatewayapi/backendtlspolicy.go Resolved
Comment thread internal/gatewayapi/backendtlspolicy.go Resolved
@zhaohuabing
zhaohuabing marked this pull request as draft September 24, 2026 09:06
@zhaohuabing

zhaohuabing commented Sep 24, 2026 •

Copy link
Copy Markdown
Member Author

Nice. What about TLS client certs? When using EnvoyProxy BackendTLS, all the routes will reuse that client cert as well. While CA bundles are typically larger, caching client certs is also beneficial.

Yes, memory from client certs also shows up in the issue #10069.

I'll address it in a follow-up PR to keep this PR focused and review easier.

@zhaohuabing

zhaohuabing commented Sep 24, 2026 •

Copy link
Copy Markdown
Member Author

is there a way for this fix to collapse SDS secrets? basically, make k8s_secret:sds_secret 1:1 ? This can reduce XDS size and maybe also improve cluster warming?

Yeah, the entry's already content-addressed — the only thing left is the name. However, changing the sds secret name would be a breaking change, so I'd keep this PR byte-identical on the wire and do the rename in a minor release.

Tracked in #10100

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.

4 participants